-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Fleet] Bulk update agent tags improvements #141376
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
Conversation
|
Pinging @elastic/fleet (Team:Fleet) |
6a54b25 to
d3f8f55
Compare
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.
Just curious, are these strings translated? Is it something that we should do in this context?
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.
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.
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.
Thanks for clarifying. I think that this could be handled in a separate ticket, as it's potentially so complex.
...eet/public/applications/fleet/sections/agents/agent_list_page/components/tags_add_remove.tsx
Outdated
Show resolved
Hide resolved
d3f8f55 to
c4a4d5c
Compare
| <FormattedMessage | ||
| id="xpack.fleet.agentActivityFlyout.failureDescription" | ||
| defaultMessage=" A problem occured during this operation." | ||
| defaultMessage=" A problem occurred during this operation." |
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.
Fixed spelling #141384
|
@elasticmachine merge upstream |
criamico
left a comment
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.
Code LGTM
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
kpollich
left a comment
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.
LGTM 🚀
* 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)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
* 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]>
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:
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_agentsscriptChecklist