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(structuredProperties): add hide property and show as badge validators #12099

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chriscollins3456
Copy link
Collaborator

Adds two validators:

Validates that if hide property is set in the settings, then we will not allow other show settings to be set
Validates that only a single property is set with show as badge. Does a search across all structured properties for any matching with showAsAssetBadge and if it finds more than one considers it an invalid state and immediately rejects or if there is only one then we verify that we're not waiting on eventual consistency in Elastic by querying the DB to make sure the property is still set.

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions github-actions bot added product PR or Issue related to the DataHub UI/UX devops PR or Issue related to DataHub backend & deployment labels Dec 11, 2024
@datahub-cyborg datahub-cyborg bot added the needs-review Label for PRs that need review from a maintainer. label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops PR or Issue related to DataHub backend & deployment pending-submitter-merge product PR or Issue related to the DataHub UI/UX release-0.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants