-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[App Menu Standardization] Handle export funcionality #248556
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
[App Menu Standardization] Handle export funcionality #248556
Conversation
|
Pinging @elastic/appex-sharedux (Team:SharedUX) |
b099a37 to
1ee1314
Compare
1772b5e to
f388ff2
Compare
f388ff2 to
d3630a5
Compare
⏳ Build in-progress, with failures
Failed CI StepsTest Failures
History
|
| if ( | ||
| !derivative || | ||
| derivative.shareType !== 'integration' || | ||
| derivative.groupId !== 'exportDerivatives' | ||
| ) { | ||
| return null; | ||
| } |
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 should be sufficient to check no derivative was found here
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.
Yeah this is redundant, changed. Thanks
| const exportIntegration = menuItems.find( | ||
| (item) => item.shareType === 'integration' && item.id === exportId | ||
| ); |
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.
Since export derivatives has it's own handler, do we want to exclude export derivatives here?
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.
That's true, changed the implementation to exclude derivatives. Thanks.
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.
Sorry man... I think I should have phrased the initial suggestion properly, it's best we specifically select for integrations of groupId export, especially that it's technically possible to have integrations have the same id as long as they specify different groupIds
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.
Got it, I'll update it.
eokoneyo
left a comment
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.
Code changes LGTM
Summary
This PR:
sepErator->sepArator,top-navprefixed test subjects in app menu toapp-menuprefix,popoverTestIdproperty,anchorElement) popoverCloses: https://github.com/elastic/kibana-team/issues/2618