-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
[data view editor] Fix data view timestamp validation #150398
[data view editor] Fix data view timestamp validation #150398
Conversation
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
Hi @mattkime, Please check this scenario:
|
💚 Build Succeeded
Metrics [docs]Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @mattkime |
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 👍
Thanks for addressing the comment.
## Summary Previously - If you changed a data view's index pattern AND the new pattern didn't contain the timestamp field, you'd see a blank timestamp field and it would let you save. The data view would have been saved with the previous timestamp field which doesn't exist. Now - The timestamp validator checks to make sure the selected timestamp field is in the list of available options. This is helpful because it keeps the previous timestamp value in case you do select an index pattern that contains it. Closes: elastic#150219 (cherry picked from commit 646539c)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…#160990) # Backport This will backport the following commits from `main` to `8.9`: - [[data view editor] Fix data view timestamp validation (#150398)](#150398) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Matthew Kime","email":"matt@mattki.me"},"sourceCommit":{"committedDate":"2023-06-30T12:29:44Z","message":"[data view editor] Fix data view timestamp validation (#150398)\n\n## Summary\r\n\r\nPreviously - If you changed a data view's index pattern AND the new\r\npattern didn't contain the timestamp field, you'd see a blank timestamp\r\nfield and it would let you save. The data view would have been saved\r\nwith the previous timestamp field which doesn't exist.\r\n\r\nNow - The timestamp validator checks to make sure the selected timestamp\r\nfield is in the list of available options. This is helpful because it\r\nkeeps the previous timestamp value in case you do select an index\r\npattern that contains it.\r\n\r\nCloses: #150219 Views","Feature:Kibana Management","Team:DataDiscovery","backport:prev-minor","v8.10.0"],"number":150398,"url":"#150398 view editor] Fix data view timestamp validation (#150398)\n\n## Summary\r\n\r\nPreviously - If you changed a data view's index pattern AND the new\r\npattern didn't contain the timestamp field, you'd see a blank timestamp\r\nfield and it would let you save. The data view would have been saved\r\nwith the previous timestamp field which doesn't exist.\r\n\r\nNow - The timestamp validator checks to make sure the selected timestamp\r\nfield is in the list of available options. This is helpful because it\r\nkeeps the previous timestamp value in case you do select an index\r\npattern that contains it.\r\n\r\nCloses: #150219 view editor] Fix data view timestamp validation (#150398)\n\n## Summary\r\n\r\nPreviously - If you changed a data view's index pattern AND the new\r\npattern didn't contain the timestamp field, you'd see a blank timestamp\r\nfield and it would let you save. The data view would have been saved\r\nwith the previous timestamp field which doesn't exist.\r\n\r\nNow - The timestamp validator checks to make sure the selected timestamp\r\nfield is in the list of available options. This is helpful because it\r\nkeeps the previous timestamp value in case you do select an index\r\npattern that contains it.\r\n\r\nCloses: #150219"}}]}] BACKPORT--> Co-authored-by: Matthew Kime <matt@mattki.me>
Summary
Previously - If you changed a data view's index pattern AND the new pattern didn't contain the timestamp field, you'd see a blank timestamp field and it would let you save. The data view would have been saved with the previous timestamp field which doesn't exist.
Now - The timestamp validator checks to make sure the selected timestamp field is in the list of available options. This is helpful because it keeps the previous timestamp value in case you do select an index pattern that contains it.
Closes: #150219
Checklist