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

Move update_annotation to the annotation service #7930

Closed
wants to merge 3 commits into from

Conversation

jon-betts
Copy link
Contributor

@jon-betts jon-betts commented Apr 6, 2023

raise ValidationError(
"group scope: "
+ _("Annotations for this target URI are not allowed in this group")
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a different formulation than the original because when done this way it can be re-used for create_annotation

for key, value in data.items():
# Don't set complex things
if key in ("document", "extra"):
continue
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the previous version we relied on popping values at certain point, which coupled the code and made changing seemingly unconnected line order break the method.

Now these methods are separate, and can be thought of independently.

@jon-betts jon-betts force-pushed the storage-update-annotation branch 3 times, most recently from 01152e6 to baf47b8 Compare April 6, 2023 14:40
@jon-betts jon-betts closed this Apr 20, 2023
@jon-betts jon-betts deleted the storage-update-annotation branch April 20, 2023 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant