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

User assertions: Allow flag reasons/comments to be edited by the flagger or resolver #619

Open
peggynewman opened this issue Sep 25, 2024 · 1 comment

Comments

@peggynewman
Copy link

Person X flags a record, then a few minutes later realises they left out some important information or context. If they want to add this, however, they’re forced to make a second flag; their first flag is uneditable. Allowing flag comments to be edited seems like a very simple solution.

cc @tmesaglio for testing

@adam-collins
Copy link
Contributor

Specification for this enhancement

  • For the "User flagged issues" section, e.g. https://biocache.ala.org.au/occurrences/62e61052-0310-4965-b1c2-e3297fd09d84#userAnnotationsDiv, add an "Edit" button.
  • The button will only be visible and enabled when a user is logged in and one of the "User flagged issue" is of the same account.
  • The edit button will appear in front of, or instead of, the "Verify this annotation" button.
  • The edit button will display the same "Flag an issue" dialog that appears after clicking the "Flag an issue" button that appears at the top of the page. It will be prefilled with the issue type and comment. The title will be "Edit a flag". The buttons at the bottom of the dialog will be "Save" and "Cancel".
  • Saving changes will send a request to biocache-service, with authentication, to update the data store and index, if required.

Out of scope

  • Logic to limit usage of Edit for the user, e.g. dates, resolution, subsequent assertions.
  • Ability for Admin users to use Edit for other user annotations.
  • Changes for downstream usage e.g. modified date.

@adam-collins adam-collins transferred this issue from AtlasOfLivingAustralia/biocache-service Sep 26, 2024
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

No branches or pull requests

2 participants