-
Notifications
You must be signed in to change notification settings - Fork 3k
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(policies): Make policies searchable by privilege, type, status or editable fields #9877
Conversation
…r editable fields
...ade/src/main/java/com/linkedin/datahub/upgrade/system/entity/steps/BackfillPolicyFields.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/linkedin/datahub/upgrade/system/entity/steps/BackfillPolicyFieldsStep.java
Outdated
Show resolved
Hide resolved
@Searchable = { | ||
"/*": { | ||
"fieldType": "KEYWORD", | ||
"addToFilters": true |
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.
What doesaddToFilters
allow us to do?
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.
See https://datahubproject.io/docs/next/metadata-modeling/extending-the-metadata-model/#searchable - This is to allow the array values to be used as filters from what I understand.
Adds searchable annotations to DataHubPolicyInfo fields:
privilege
,type
,status
andeditable
fields so that we can use these fields for filtering in graphQL queries + a filter parameter when listing policies.For backfilling pre-existing policies, adds a system update step to RESTATE existing policies. This is enabled by default so the mae processor updates documents in ES for all pre-existing DataHub policies.
Tested it works by checking elasticsearch directly to see new properties are available:
And that using the graphQL command I am able to filter by the new features:
Checklist