-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat: option for data approval level #657
Conversation
"Learn more" is not clickable.
The authorities values are store within the user object in the store
This is a special type of option, as it's not always available in the UI and it should not be saved in the AO. It should be passed to the analytics api also when downloading the data.
The const is defined in the ApprovalLevel option component and imported in App.js.
1671209
to
26b5a31
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except for comments the code LGTM. Haven't pulled and tested though.
packages/app/src/components/VisualizationOptions/Options/ApprovalLevel.js
Outdated
Show resolved
Hide resolved
packages/app/src/components/VisualizationOptions/Options/ApprovalLevel.js
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Bug came up after adding ApprovalLevel option after CompletedOnly.
# [34.2.0](v34.1.0...v34.2.0) (2020-02-17) ### Features * option for data approval level ([#657](#657)) ([3b7d274](3b7d274))
🎉 This PR is included in version 34.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This is a special option, only shown if the user has authority to see unapproved data and the analytics system setting "Max number of years to hide unapproved data in analytics" is set.
In that case the
approvalLevel
with the value set via the UI should be sent as query parameter in the analytics request.