-
Notifications
You must be signed in to change notification settings - Fork 7
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
RN-632: Show Data-Tables in the Admin-Panel #4175
Conversation
@@ -121,6 +122,11 @@ export const ROUTES = [ | |||
to: '/indicators', | |||
component: IndicatorsPage, | |||
}, | |||
{ | |||
label: 'Data-Tables', |
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.
Do we like this naming style? With the -
? I kinda like it as it makes clear that Data-Tables
is a single concept, but it's not particularly convention with Tupaia to use -
...
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.
I don't get it sorry 😆
But it's just a label, - or no -, it's a + to me
const getPermissionListWithWildcard = async accessPolicy => { | ||
const userPermissionGroups = accessPolicy.getPermissionGroups(); | ||
return ['*', ...userPermissionGroups]; | ||
}; |
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.
This code isn't the DRY-est... it's copy pasted from dataElements permissions stuff. It's a bit awkward to consolidate, but I could make more of an effort if the reviewer feels it's worth it
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.
Sure no DRY is fine here
Issue RN-632:
Just display data-tables for now, as we don't want users editing/deleting the internal ones. Next up is to add an interface to view the data-table data in the Admin-Panel in RN-647