Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to add local tags to an event using the API. #5215

Merged
merged 1 commit into from
Sep 26, 2019

Conversation

ancailliau
Copy link

What does it do?

The current API does not allow users to add local tags to an event.

Questions

  • Does it require a DB change?
  • Are you using it in production?
  • Does it require a change in the API (PyMISP for example)?

Release Type:

  • Major
  • Minor
  • Patch

@ancailliau ancailliau force-pushed the add_localtag_api branch 2 times, most recently from ee61c94 to 76c397e Compare September 24, 2019 16:05
@coveralls
Copy link

coveralls commented Sep 24, 2019

Coverage Status

Coverage remained the same at ?% when pulling 453a54c on ancailliau:add_localtag_api into 22b4c87 on MISP:2.4.

@coveralls
Copy link

Coverage Status

Coverage remained the same at ?% when pulling 76c397e on ancailliau:add_localtag_api into cebe7de on MISP:2.4.

@@ -894,7 +894,7 @@ private function __findObjectByUuid($object_uuid, &$type)
return $object;
}

public function attachTagToObject($uuid = false, $tag = false)
public function attachTagToObject($uuid = false, $tag = false, $local = 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not to use $local variable as boolean?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, I mapped what was in the database. I'll update tomorrow with Boolean values unless someone complain :-)

@ancailliau ancailliau force-pushed the add_localtag_api branch 2 times, most recently from 6a3140b to c65840f Compare September 25, 2019 09:17
ancailliau pushed a commit to ancailliau/PyMISP that referenced this pull request Sep 26, 2019
Requires MISP/MISP#5215 to be merged first.
@iglocska iglocska merged commit 90e1b88 into MISP:2.4 Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants