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

RN-632: Show Data-Tables in the Admin-Panel #4175

Merged
merged 2 commits into from
Sep 16, 2022

Conversation

rohan-bes
Copy link
Collaborator

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

@@ -121,6 +122,11 @@ export const ROUTES = [
to: '/indicators',
component: IndicatorsPage,
},
{
label: 'Data-Tables',
Copy link
Collaborator Author

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 -...

Copy link
Contributor

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];
};
Copy link
Collaborator Author

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

Copy link
Contributor

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

@rohan-bes rohan-bes merged commit 4edddd1 into dev Sep 16, 2022
@rohan-bes rohan-bes deleted the rn-632-data-tables-admin-panel branch September 16, 2022 07:07
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