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/backend/openapi/docs) : Add support for Business Attributes #9863

Merged

Conversation

deepgarg-visa
Copy link
Contributor

This PR is the implementation for the following RFC
datahub-project/rfcs#6

Screenshots:
businessattribute-button

businessattribute-create

businessattribute-associate-datasetschemafield

dataset-inherits-businessattribute-properties

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • 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.

deepgarg-visa and others added 30 commits December 18, 2023 00:04
business-attribute: Created initial version of Business Attribute Scr…
Business Attribute related entities and css
Cypress Test Cases, Preview Test Case, updating delete BA api, Removi…
# Conflicts:
#	buildSrc/src/main/java/io/datahubproject/OpenApiEntities.java
#	datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/GmsGraphQLEngine.java
#	datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/GmsGraphQLEngineArgs.java
#	datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/MeResolver.java
#	datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/deprecation/UpdateDeprecationResolver.java
#	datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/mutate/AddTagsResolver.java
#	datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/mutate/BatchAddTagsResolver.java
#	datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/mutate/DescriptionUtils.java
#	datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/mutate/UpdateDescriptionResolver.java
#	datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/mutate/UpdateNameResolver.java
#	datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/mutate/util/LabelUtils.java
#	datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/common/mappers/UrnToEntityMapper.java
#	datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/dataset/DatasetType.java
#	datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/dataset/mappers/EditableSchemaFieldInfoMapper.java
#	datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/entitytype/EntityTypeMapper.java
#	datahub-graphql-core/src/main/resources/entity.graphql
#	datahub-web-react/src/App.tsx
#	datahub-web-react/src/Mocks.tsx
#	datahub-web-react/src/app/entity/Entity.tsx
#	datahub-web-react/src/app/entity/shared/tabs/Dataset/Schema/SchemaTable.tsx
#	datahub-web-react/src/app/entity/shared/tabs/Dataset/Schema/utils/useTagsAndTermsRenderer.tsx
#	datahub-web-react/src/graphql/fragments.graphql
#	li-utils/src/main/java/com/linkedin/metadata/Constants.java
#	metadata-io/src/main/java/com/linkedin/metadata/search/utils/ESUtils.java
#	metadata-io/src/main/java/com/linkedin/metadata/timeline/eventgenerator/EditableSchemaMetadataChangeEventGenerator.java
#	metadata-jobs/mae-consumer/src/main/java/com/linkedin/metadata/kafka/hook/event/EntityChangeEventGeneratorHook.java
#	metadata-service/factories/src/main/java/com/linkedin/gms/factory/graphql/GraphQLEngineFactory.java
#	metadata-service/factories/src/main/java/com/linkedin/gms/factory/timeline/eventgenerator/EntityChangeEventGeneratorRegistryFactory.java
#	metadata-service/openapi-entity-servlet/src/main/java/io/datahubproject/openapi/delegates/EntityApiDelegateImpl.java
#	metadata-utils/src/main/java/com/linkedin/metadata/authorization/PoliciesConfig.java
amit-visa and others added 6 commits April 3, 2024 03:47
…tes-feature-flag-implementation

Business Attributes: UI Show|Hide Feature Flag Implementation | Modified Test Cases
feat(search): Add SchemaFieldEntity to search functionality
…ustomized-business-attribute-urns

Business Attributes: Customized URNs Support for Business Attributes
@david-leifker
Copy link
Collaborator

Please update this branch, looking to get the tests passing for merging. LMK if you need some help!

# Conflicts:
#	datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/GmsGraphQLEngine.java
#	datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/search/SearchUtils.java
#	datahub-web-react/src/app/entity/shared/tabs/Dataset/AccessManagement/__tests__/AccessManagement.test.ts
@deepgarg-visa
Copy link
Contributor Author

Hi @david-leifker, branch has been updated and conflicts has been resolved. Still 3 tests are failing and we are not sure about the reason as they are not seems to be related with our functionality. Please suggest


getCustomCardUrlPath = () => PageRoutes.BUSINESS_ATTRIBUTE;

isBrowseEnabled = () => true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

i actually believe we want this to be false since the browse sidebar is not built to browse for business attribute entities. and this being true is what is actually breaking the failing frontend tests currently

Copy link
Collaborator

@david-leifker david-leifker left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

@david-leifker david-leifker merged commit c35f360 into datahub-project:master Apr 15, 2024
63 of 64 checks passed
sleeperdeep pushed a commit to sleeperdeep/datahub that referenced this pull request Jun 25, 2024
…atahub-project#9863)

Co-authored-by: ppurswan <ppurswan@visa.com>
Co-authored-by: PrithviVISA <140717353+PrithviVISA@users.noreply.github.com>
Co-authored-by: aditigup <aditigup@visa.com>
Co-authored-by: Bharti, Aakash <aabharti@visa.com>
Co-authored-by: Singh, Himanshu <hisingh@visa.com>
Co-authored-by: Shukla, Amit <amishukl@visa.com>
Co-authored-by: Kartikey Khandelwal <kakhande@visa.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution PR or Issue raised by member(s) of DataHub Community devops PR or Issue related to DataHub backend & deployment docs Issues and Improvements to docs product PR or Issue related to the DataHub UI/UX smoke_test Contains changes related to smoke tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants