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

fix(ui/token): token page failing to render #9827

Merged
merged 3 commits into from
Feb 14, 2024
Merged

Conversation

anshbansal
Copy link
Collaborator

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 the product PR or Issue related to the DataHub UI/UX label Feb 13, 2024
} = entity;
const displayNameSearchResult = info?.displayName || editableProperties?.displayName || entity.username;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool I know this is an improvement for sure. can we just call entityRegistry.getDisplayName(entity.type, entity) here though?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, we can simplify it by using entityRegistry.getDisplayName(entity.type, entity). Updated as per your suggestion.

Copy link
Collaborator

@chriscollins3456 chriscollins3456 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved, but one final change I would like to see made, just not blocking

info: { displayName },
} = entity;
const { editableProperties } = entity;
const displayNameSearchResult = entityRegistry.getDisplayName(EntityType.CorpUser, entity);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we always know this will be a corpuser or could it be a corpGroup? I would just pass in entity.type instead of hardcoding EntityType.CorpUser

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we always showing corp users data in dropdown.

@anshbansal anshbansal merged commit 4b645e1 into master Feb 14, 2024
37 checks passed
@anshbansal anshbansal deleted the ab-fix-setting-page branch February 14, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product PR or Issue related to the DataHub UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants