Skip to content

Conversation

@juliaElastic
Copy link
Contributor

@juliaElastic juliaElastic commented Sep 22, 2022

Summary

Fixing #136092

Similarly to force unenroll, added action doc on update tags action, and the corresponding success or error action results. This helps seeing the trace in Agent activity.

To verify:

  • update tags on agents
  • verify that the update tags action shows up in Agent activity

image

Added another improvement to update the selected list of tags immediately if the bulk update tags is async (for >10k agents). This helps to see the result immediately, because on the backend it takes 20-30s for the update tags to be done.

To verify:

  • create >10k agent docs with create_agents script
  • select all agents, apply a tag from the list
  • check that the tag change is immediately visible in the list

Checklist

@juliaElastic juliaElastic requested a review from a team as a code owner September 22, 2022 10:32
@juliaElastic juliaElastic self-assigned this Sep 22, 2022
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Sep 22, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@juliaElastic juliaElastic added the release_note:skip Skip the PR/issue when compiling release notes label Sep 22, 2022
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious, are these strings translated? Is it something that we should do in this context?

Copy link
Contributor Author

@juliaElastic juliaElastic Sep 22, 2022

Choose a reason for hiding this comment

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

using them in a FormattedMessage component here, though it might not be best to translate like this. The challenge is that there is a combination of statuses and action types, so writing them out separately would create about 20 strings.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for clarifying. I think that this could be handled in a separate ticket, as it's potentially so complex.

<FormattedMessage
id="xpack.fleet.agentActivityFlyout.failureDescription"
defaultMessage=" A problem occured during this operation."
defaultMessage=" A problem occurred during this operation."
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed spelling #141384

@juliaElastic
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Contributor

@criamico criamico left a comment

Choose a reason for hiding this comment

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

Code LGTM

@kibana-ci
Copy link

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
fleet 914.0KB 914.3KB +339.0B

History

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

cc @juliaElastic

Copy link
Member

@kpollich kpollich left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@juliaElastic juliaElastic merged commit 30d5ed5 into elastic:main Sep 23, 2022
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 23, 2022
* update tags: added action doc and results, updating selected list immediately

* fix tests, fix tag rename and delete

* added unit test

(cherry picked from commit 30d5ed5)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.5

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Sep 23, 2022
* update tags: added action doc and results, updating selected list immediately

* fix tests, fix tag rename and delete

* added unit test

(cherry picked from commit 30d5ed5)

Co-authored-by: Julia Bardi <[email protected]>
@juliaElastic juliaElastic mentioned this pull request Sep 26, 2022
3 tasks
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:Fleet Team label for Observability Data Collection Fleet team v8.5.0 v8.6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants