-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Discover] Hide time picker when an indexpattern without timefield is selected #62134
[Discover] Hide time picker when an indexpattern without timefield is selected #62134
Conversation
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.
Tested in Chrome and works, LGTM 👍
Couldn't find enableTimeRangeSelector
anywhere else in the discover code, is this a leftover of the migration?
Also, while testing for this PR I noticed that the error handling is broken when the last used index pattern doesn't exist (unrelated to this PR) - will create a separate issue for that.
@flash1293 yes, seems to be a leftover, I've added a functional test for that |
await esArchiver.unload('index_pattern_without_timefield'); | ||
}); | ||
|
||
it('should not display a timepicker', async function() { |
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.
nit: When we have this test we should only check whether it's shown correctly when there is a timefield
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.
you mean: we should also check if it's displayed correctly when there is a timefield, right?
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.
Yes, that's what I meant
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.
totally, agree, will do!
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.
implemented this test, and finally Jenkins is green :)
…-01-fix-discover-index-pattern-without-timefield
…ttern-without-timefield
@elasticmachine merge upstream |
…ttern-without-timefield
@elasticmachine merge upstream |
…ttern-without-timefield
@elasticmachine merge upstream |
…ttern-without-timefield
@elasticmachine merge upstream |
…ttern-without-timefield
…-timefield' of github.com:kertal/kibana into kertal-pr-2020-04-01-fix-discover-index-pattern-without-timefield
@elasticmachine merge upstream |
…ttern-without-timefield
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
… selected (elastic#62134) * Assign valid value whether the timepicker should be displayed * Add functional tests
… selected (elastic#62134) * Assign valid value whether the timepicker should be displayed * Add functional tests
…chore/put-all-xjson-together * 'master' of github.com:elastic/kibana: [EPM] Update UI copy to use `integration` (elastic#63077) [NP] Inline buildPointSeriesData and buildHierarchicalData dependencies (elastic#61575) [Maps] create NOT EXISTS filter for tooltip property with no value (elastic#62849) [Endpoint] Add link to Logs UI to the Host Details view (elastic#62852) [UI COPY] Fixes typo in max_shingle_size for search_as_you_type (elastic#63071) [APM] docs: add alerting examples for APM (elastic#62864) [EPM] Change PACKAGES_SAVED_OBJECT_TYPE id (elastic#62818) docs: fix rendering of bulleted list (elastic#62855) Exposed AddMessageVariables as separate component (elastic#63007) Add Data - Adding cloud reset password link to cloud instructions (elastic#62835) [ML] DF Analytics: update memory estimate after adding exclude fields (elastic#62850) [Table Vis] Fix visualization overflow (elastic#62630) [Endpoint][EPM] Endpoint depending on ingest manager to initialize (elastic#62871) [Remote clusters] Fix flaky jest tests (elastic#58768) [Discover] Hide time picker when an indexpattern without timefield is selected (elastic#62134) Move search source parsing and serializing to data (elastic#59919) [ML] Functional tests - stabilize typing in mml input (elastic#63091) [data.search.aggs]: Clean up TimeBuckets implementation (elastic#62123) [ML] Functional transform tests - stabilize source selection (elastic#63087) add embed flag to saved object url as well (elastic#62926) # Conflicts: # x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/es_index.tsx
Summary
After selecting an indexpattern without timefield, the timepicker shouldn't be displayed. This PR implements this expected behavior
Fixes: #62417
Checklist