Skip to content
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

use PIT search for savedObjectTagging plugin #120476

Merged
merged 7 commits into from
Dec 8, 2021

Conversation

pgayvallet
Copy link
Contributor

Summary

Part of #93770

Use PITbased searches instead of using perPage: 10k for SOT plugin

@pgayvallet pgayvallet added Feature:Saved Object Tagging Saved Objects Tagging feature release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v8.1.0 labels Dec 6, 2021
Comment on lines +53 to +58
httpCode: 403,
expectResponse: ({ body }) => {
expect(body).to.eql({
tags: [],
error: 'Forbidden',
message: 'unauthorized',
statusCode: 403,
Copy link
Contributor Author

@pgayvallet pgayvallet Dec 6, 2021

Choose a reason for hiding this comment

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

openPointInTimeForType throws with a 403 when the user don't have the permissions to access any of the searched types, where find returns an empty list instead (which is more consistent with how most of the other SO apis behave). see #109062 (comment) for more context

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@pgayvallet pgayvallet marked this pull request as ready for review December 7, 2021 12:21
@pgayvallet pgayvallet requested a review from a team as a code owner December 7, 2021 12:21
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@pgayvallet pgayvallet merged commit 6fb7325 into elastic:main Dec 8, 2021
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Dec 8, 2021
TinLe pushed a commit to TinLe/kibana that referenced this pull request Dec 22, 2021
* use PIT search for savedObjectTagging plugin

* fixing FTR tests

* foo is the new grep

* fix tests

* fix tests again
gbamparop pushed a commit to gbamparop/kibana that referenced this pull request Jan 12, 2022
* use PIT search for savedObjectTagging plugin

* fixing FTR tests

* foo is the new grep

* fix tests

* fix tests again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Saved Object Tagging Saved Objects Tagging feature release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants