Skip to content

Update all entities to have displayName #527 - #754

Merged
sureshms merged 1 commit into
open-metadata:mainfrom
pemmasanikrishna:main
Oct 13, 2021
Merged

sureshms merged 1 commit into
open-metadata:mainfrom
pemmasanikrishna:main

Conversation

@pemmasanikrishna

Copy link
Copy Markdown

@ayush-shah
ayush-shah requested a review from sureshms October 13, 2021 05:53
@sureshms

sureshms commented Oct 13, 2021 •

Copy link
Copy Markdown
Contributor

Thank you @pemmasanikrishna for this contribution. Currently only schemas have display name, but there is some work needed at the backend and create requests:

  1. Corresponding create requests for the entity needs displayName field as in https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/api/teams/createUser.json
  2. The displayName passed in the request must be used while handling the request as shown below from UserResource.java in the corresponding entities while handling POST and PUT requests.
User user = new User().withId(UUID.randomUUID()).withName(create.getName()).withEmail(create.getEmail())
            ---->.withDisplayName(create.getDisplayName()).withIsBot(create.getIsBot()).withIsAdmin(create.getIsAdmin())
            .withProfile(create.getProfile()).withTimezone(create.getTimezone());
  1. Finally if displayName is not set, we can set it to name (a mandatory field).

Do you want to create an issue for this and post a pull request?

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