-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Search] [Playground] [Bug] Add playground index validation #201032
[Search] [Playground] [Bug] Add playground index validation #201032
Conversation
thanks for fixing this quickly! |
|
||
useEffect(() => { | ||
if (isIndicesLoaded) { | ||
setValidIndices(indices.filter((index) => unvalidatedIndices.includes(index))); |
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.
useQueryIndices gets the top 10 indices, what happens if its not in this list but does exist?
I would do an explicit API call for all the unvalidatedIndices to see if they exist.
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.
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.
blocking this until comment resolved.
db822c5
to
7b0a9df
Compare
7b0a9df
to
9f61325
Compare
💔 Build Failed
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
History
|
efb27bd
to
f132064
Compare
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/12018786643 |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…201032) (#201750) # Backport This will backport the following commits from `main` to `8.16`: - [[Search] [Playground] [Bug] Add playground index validation (#201032)](#201032) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Yan Savitski","email":"yan.savitski@elastic.co"},"sourceCommit":{"committedDate":"2024-11-25T21:06:54Z","message":"[Search] [Playground] [Bug] Add playground index validation (#201032)\n\nFix bug when localStorage has invalid index, then playground chat page\r\nopens with empty source.","sha":"d99431e51ea976baa69d51d4f7ba30592adecf7e","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Search","backport:prev-minor"],"number":201032,"url":"https://github.com/elastic/kibana/pull/201032","mergeCommit":{"message":"[Search] [Playground] [Bug] Add playground index validation (#201032)\n\nFix bug when localStorage has invalid index, then playground chat page\r\nopens with empty source.","sha":"d99431e51ea976baa69d51d4f7ba30592adecf7e"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201032","number":201032,"mergeCommit":{"message":"[Search] [Playground] [Bug] Add playground index validation (#201032)\n\nFix bug when localStorage has invalid index, then playground chat page\r\nopens with empty source.","sha":"d99431e51ea976baa69d51d4f7ba30592adecf7e"}}]}] BACKPORT-->
…201032) Fix bug when localStorage has invalid index, then playground chat page opens with empty source.
…201032) Fix bug when localStorage has invalid index, then playground chat page opens with empty source.
Fix bug when localStorage has invalid index, then playground chat page opens with empty source.