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

CLDR-17776 disallow reports if vetting closed #3840

Merged

Conversation

srl295
Copy link
Member

@srl295 srl295 commented Jul 2, 2024

Back end side:

  • Change CheckCLDR.Phase.getShowRowAction() to allow pathValueInfo and pathHeader to be optional (null)
  • add convenience functions on StatusAction
  • Report API returns 403 forbidden if NOT in phase where voting is allowed.

CLDR-17776

  • This PR completes the ticket.

ALLOW_MANY_COMMITS=true

Back end side:
- Change CheckCLDR.Phase.getShowRowAction() to allow pathValueInfo and pathHeader to be optional (null)
- add convenience functions on StatusAction
- Report API returns 403 forbidden if NOT in phase where voting is allowed.
- pop up error on voting or read error
@srl295
Copy link
Member Author

srl295 commented Jul 2, 2024

Also, fix the popup message if an internal err comes up. (The final UI for reports is to hide the voting buttons if you can't vote.)

image

- UI: disable radio group if canVote is false.
- cldrReport: update API to expose canVote
- ReportAPI: expose canVote over REST if the user can vote on the report
@srl295
Copy link
Member Author

srl295 commented Jul 2, 2024

UI if voting is closed. (It still shows the voting status including your own vote)

image

@srl295 srl295 marked this pull request as ready for review July 2, 2024 21:27
@srl295 srl295 merged commit 2ea95b1 into unicode-org:main Jul 2, 2024
11 checks passed
@srl295 srl295 deleted the cldr-17776/disallow-reports-if-vetting-closed branch July 2, 2024 23:39
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.

2 participants