Skip to content

Conversation

@mbondyra
Copy link
Contributor

@mbondyra mbondyra commented Dec 10, 2019

Summary

By passing indexPatternId to the component <ChangeIndexPattern/> we can see which index pattern is selected.

Before & after:

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@mbondyra mbondyra requested a review from a team December 10, 2019 11:00
@mbondyra mbondyra changed the title Lens: pass indexPatternId prop to ChangeIndexPattern to display selection of current index pattern Lens: pass indexPatternId prop to ChangeIndexPattern to display selected current index pattern Dec 10, 2019
@mbondyra mbondyra added release_note:skip Skip the PR/issue when compiling release notes Feature:Lens Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// labels Dec 10, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@mbondyra mbondyra force-pushed the pass-index-pattern-id-for-datapanel branch from f68d4eb to d5f4078 Compare December 10, 2019 11:15
'data-test-subj': 'indexPattern-switch-link',
className: 'lnsInnerIndexPatternDataPanel__triggerButton',
}}
indexPatternId={currentIndexPatternId}
Copy link
Contributor

Choose a reason for hiding this comment

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

Any tests for this?

Copy link
Contributor Author

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 🤔

@mbondyra
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@wylieconlon wylieconlon left a comment

Choose a reason for hiding this comment

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

LGTM

@mbondyra mbondyra merged commit a97d264 into elastic:master Dec 13, 2019
@mbondyra mbondyra deleted the pass-index-pattern-id-for-datapanel branch December 13, 2019 17:01
mbondyra added a commit to mbondyra/kibana that referenced this pull request Dec 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Lens release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v7.6.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants