-
Notifications
You must be signed in to change notification settings - Fork 3.3k
feat: Allow users to add multiple Applications to entities #15160
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
base: master
Are you sure you want to change the base?
feat: Allow users to add multiple Applications to entities #15160
Conversation
|
🔴 Meticulous spotted visual differences in 331 of 1134 screens tested: view and approve differences detected. Meticulous evaluated ~8 hours of user flows against your PR. Last updated for commit 53c201a. This comment will update as new commits are pushed. |
Bundle ReportChanges will increase total bundle size by 300 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: datahub-react-web-esmAssets Changed:
Files in
|
| ...entityDomain | ||
| } | ||
| application { | ||
| applications { |
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.
so, this constitutes a minor, but still real, breaking change. lets make sure we include this in the next version release notes
| button={application ? <EditOutlinedIcon /> : <AddRoundedIcon />} | ||
| onClick={(event) => { | ||
| button={applications.length > 0 ? <EditOutlinedIcon /> : <AddRoundedIcon />} | ||
| onClick={(event: React.MouseEvent) => { |
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.
why type this out of curiosity? isn't the implicit typing enough?
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.
it was claude :) and it's unnecessary, ideally typing should be done at the props level.
| DataPlatformInstanceAspectMapper.map(context, new DataPlatformInstance(dataMap)))); | ||
| mappingHelper.mapToResult( | ||
| "applications", (dataset, dataMap) -> mapApplicationAssociation(context, dataset, dataMap)); |
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.
aren't you removing the call to mapApplicationAssociation here? how does mapApplicationAssociation ever get called
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.
we're already calling it on lines 150-152
Previously, it was designed to only allow 1 application per asset. This PR allows setting multiple applications per asset. The changes include:
Adding applications:
https://github.com/user-attachments/assets/3a00e706-f35f-4e56-a4d1-0dab3dd2041c
Removing applications:
https://github.com/user-attachments/assets/406efa6a-5a8a-4b16-a382-888dec4b3015