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

[ResponseOps][Cases] Get reporters and tags by aggregation #123362

Merged
merged 7 commits into from
Jan 25, 2022

Conversation

cnasikas
Copy link
Member

@cnasikas cnasikas commented Jan 19, 2022

Summary

Fixes: #98126

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@cnasikas cnasikas added technical debt Improvement of the software architecture and operational architecture Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) Feature:Cases Cases feature v8.1.0 labels Jan 19, 2022
@cnasikas cnasikas self-assigned this Jan 19, 2022
@cnasikas cnasikas marked this pull request as ready for review January 20, 2022 13:56
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops-cases (Feature:Cases)

@cnasikas cnasikas added the release_note:skip Skip the PR/issue when compiling release notes label Jan 20, 2022
Copy link
Contributor

@jonathan-buttner jonathan-buttner left a comment

Choose a reason for hiding this comment

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

Left a few comments about sorting, and I would reach out to Larry as we discussed about what to do with the ensureSavedObject... calls.

@@ -74,17 +74,17 @@ export default ({ getService }: FtrProviderContext): void => {
for (const scenario of [
{
user: globalRead,
expectedTags: ['sec', 'obs'],
expectedTags: ['obs', 'sec'],
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's try adding a sort to the aggregation to see if we can get the sorting consistent:

"order": { "_key": "asc" }

Copy link
Member Author

Choose a reason for hiding this comment

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

I added the _key. I am gonna leave the change of order of values in the tests as obs preceding sec alphabetically.

@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

cc @cnasikas

@cnasikas cnasikas merged commit 08f87f0 into elastic:main Jan 25, 2022
@cnasikas cnasikas deleted the fix_98126 branch January 25, 2022 15:18
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Jan 25, 2022
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:Cases Cases feature release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) technical debt Improvement of the software architecture and operational architecture v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Cases] Use SavedObject Aggregation API on routes
5 participants