-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Lens: pass indexPatternId prop to ChangeIndexPattern to display selected current index pattern
#52614
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
Lens: pass indexPatternId prop to ChangeIndexPattern to display selected current index pattern
#52614
Conversation
indexPatternId prop to ChangeIndexPattern to display selection of current index pattern indexPatternId prop to ChangeIndexPattern to display selected current index pattern
|
Pinging @elastic/kibana-app (Team:KibanaApp) |
f68d4eb to
d5f4078
Compare
| 'data-test-subj': 'indexPattern-switch-link', | ||
| className: 'lnsInnerIndexPatternDataPanel__triggerButton', | ||
| }} | ||
| indexPatternId={currentIndexPatternId} |
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.
Any tests for this?
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.
Both the datapanel.test.tsx and layerpanel.test.tsx test the behaviour of the inside of ChangeIndexPattern. The indexPatternId prop behaviour is already tested in layerpanel.test.tsx so I am not sure if the additional test is needed here 🤔
|
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
wylieconlon
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.
LGTM
Summary
By passing
indexPatternIdto the component<ChangeIndexPattern/>we can see which index pattern is selected.Before & after:

Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.[x] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support[x] Documentation was added for features that require explanation or tutorials[x] This was checked for keyboard-only and screenreader accessibilityFor maintainers
[ ] This was checked for breaking API changes and was labeled appropriately[ ] This includes a feature addition or change that requires a release note and was labeled appropriately