Skip to content

[Discover][Field caps] Align with the ES responses for closed indices#199717

Merged
jughosta merged 16 commits intoelastic:mainfrom
jughosta:199413-closed-index-fix
Nov 19, 2024
Merged

[Discover][Field caps] Align with the ES responses for closed indices#199717
jughosta merged 16 commits intoelastic:mainfrom
jughosta:199413-closed-index-fix

Conversation

@jughosta
Copy link
Copy Markdown
Contributor

@jughosta jughosta commented Nov 11, 2024

@jughosta jughosta added release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t// backport:prev-minor labels Nov 11, 2024
@jughosta jughosta self-assigned this Nov 11, 2024
@jughosta jughosta changed the title [Discover] Align with the ES responses for closed indices [Discover][Field caps] Align with the ES responses for closed indices Nov 11, 2024
@jughosta
Copy link
Copy Markdown
Contributor Author

/ci

@jughosta jughosta marked this pull request as ready for review November 14, 2024 09:21
@jughosta jughosta requested a review from a team as a code owner November 14, 2024 09:21
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

Copy link
Copy Markdown
Contributor

@lukasolson lukasolson left a comment

Choose a reason for hiding this comment

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

LGTM, just a couple of minor comments below

indices: [],
});

await supertest
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we make this a new test since the description for the existing one is returns 200 when index is closed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@lukasolson Sure, I split them in 2 tests ffa49aa, thanks!

Comment on lines +253 to +257
.expect((response) => {
if (response.statusCode !== 200) {
log.debug(response.body);
}
})
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this intentionally left in the test or was this just for debugging?

Copy link
Copy Markdown
Contributor Author

@jughosta jughosta Nov 18, 2024

Choose a reason for hiding this comment

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

I left it so we can see it in logs if it ever fails again in the future.

@jughosta jughosta enabled auto-merge (squash) November 19, 2024 08:52
@jughosta jughosta merged commit f61c043 into elastic:main Nov 19, 2024
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/11911343769

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

cc @jughosta

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 19, 2024
…elastic#199717)

- Closes: elastic#199413
- Related: elastic#199654
- Related ES PR: elastic/elasticsearch#116021
- Related ES PR: elastic/elasticsearch#116656

## Summary

This PR unskips tests and updates the Kibana API to the updated ES
responses.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit f61c043)
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Nov 20, 2024
@kibanamachine
Copy link
Copy Markdown
Contributor

Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.

kibanamachine added a commit that referenced this pull request Nov 20, 2024
…ndices (#199717) (#200697)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Discover][Field caps] Align with the ES responses for closed indices
(#199717)](#199717)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Julia
Rechkunova","email":"julia.rechkunova@elastic.co"},"sourceCommit":{"committedDate":"2024-11-19T10:42:28Z","message":"[Discover][Field
caps] Align with the ES responses for closed indices (#199717)\n\n-
Closes: https://github.com/elastic/kibana/issues/199413\r\n- Related:
https://github.com/elastic/kibana/pull/199654\r\n- Related ES PR:
https://github.com/elastic/elasticsearch/pull/116021\r\n- Related ES PR:
https://github.com/elastic/elasticsearch/pull/116656\r\n\r\n##
Summary\r\n\r\nThis PR unskips tests and updates the Kibana API to the
updated ES\r\nresponses.\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"f61c043bf6b00c26a2226537d6d7ad14a1dbc1c9","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:DataDiscovery","backport:prev-minor"],"title":"[Discover][Field
caps] Align with the ES responses for closed
indices","number":199717,"url":"https://github.com/elastic/kibana/pull/199717","mergeCommit":{"message":"[Discover][Field
caps] Align with the ES responses for closed indices (#199717)\n\n-
Closes: https://github.com/elastic/kibana/issues/199413\r\n- Related:
https://github.com/elastic/kibana/pull/199654\r\n- Related ES PR:
https://github.com/elastic/elasticsearch/pull/116021\r\n- Related ES PR:
https://github.com/elastic/elasticsearch/pull/116656\r\n\r\n##
Summary\r\n\r\nThis PR unskips tests and updates the Kibana API to the
updated ES\r\nresponses.\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"f61c043bf6b00c26a2226537d6d7ad14a1dbc1c9"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199717","number":199717,"mergeCommit":{"message":"[Discover][Field
caps] Align with the ES responses for closed indices (#199717)\n\n-
Closes: https://github.com/elastic/kibana/issues/199413\r\n- Related:
https://github.com/elastic/kibana/pull/199654\r\n- Related ES PR:
https://github.com/elastic/elasticsearch/pull/116021\r\n- Related ES PR:
https://github.com/elastic/elasticsearch/pull/116656\r\n\r\n##
Summary\r\n\r\nThis PR unskips tests and updates the Kibana API to the
updated ES\r\nresponses.\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"f61c043bf6b00c26a2226537d6d7ad14a1dbc1c9"}}]}]
BACKPORT-->

Co-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>
@kibanamachine kibanamachine added v8.17.0 and removed backport missing Added to PRs automatically when the are determined to be missing a backport. labels Nov 20, 2024
paulinashakirova pushed a commit to paulinashakirova/kibana that referenced this pull request Nov 26, 2024
…elastic#199717)

- Closes: elastic#199413
- Related: elastic#199654
- Related ES PR: elastic/elasticsearch#116021
- Related ES PR: elastic/elasticsearch#116656

## Summary

This PR unskips tests and updates the Kibana API to the updated ES
responses.


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Dec 12, 2024
…elastic#199717)

- Closes: elastic#199413
- Related: elastic#199654
- Related ES PR: elastic/elasticsearch#116021
- Related ES PR: elastic/elasticsearch#116656

## Summary

This PR unskips tests and updates the Kibana API to the updated ES
responses.


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
@jughosta jughosta deleted the 199413-closed-index-fix branch July 28, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t// v8.17.0 v9.0.0

Projects

None yet

4 participants