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

feat(UI): disable access management ui when no roles are linked to entity #9610

Merged
merged 8 commits into from
Mar 22, 2024
2 changes: 1 addition & 1 deletion datahub-web-react/src/app/entity/dataset/DatasetEntity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export class DatasetEntity implements Entity<Dataset> {
component: AccessManagement,
display: {
visible: (_, _1) => this.appconfig().config.featureFlags.showAccessManagement,
enabled: (_, _2) => true,
enabled: (_, dataset: GetDatasetQuery) => !!dataset?.dataset?.access,
githendrik marked this conversation as resolved.
Show resolved Hide resolved
},
},
]}
Expand Down
7 changes: 7 additions & 0 deletions datahub-web-react/src/graphql/dataset.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ fragment nonSiblingDatasetFields on Dataset {
assertions(start: 0, count: 1) {
total
}
access {
roles {
role {
urn
}
}
}
operations(limit: 1) {
timestampMillis
lastUpdatedTimestamp
Expand Down
Loading