Skip to content

Allow roll-up of duplicate IDs with different names in highstate output#61550

Merged
Ch3LL merged 9 commits intosaltstack:masterfrom
nicholasmhughes:add-state_compress_ids-highstate-output
Feb 4, 2022
Merged

Allow roll-up of duplicate IDs with different names in highstate output#61550
Ch3LL merged 9 commits intosaltstack:masterfrom
nicholasmhughes:add-state_compress_ids-highstate-output

Conversation

@nicholasmhughes
Copy link
Contributor

@nicholasmhughes nicholasmhughes commented Jan 30, 2022

What does this PR do?

This PR allows for rolling IDs with multiple names into a single state block for reporting purposes. This functionality is most useful for any "_id" state_output options, such as terse_id.

What issues does this PR fix or reference?

Fixes: #61549

Previous Behavior

See issue for details.

New Behavior

Enabling the new state_compress_ids option consolidates the state data by ID and result (e.g. success or failure). The earliest start time is chosen for display, duration is aggregated, and the total number of names if shown in parentheses to the right of the ID.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@nicholasmhughes nicholasmhughes requested a review from a team as a code owner January 30, 2022 19:53
@nicholasmhughes nicholasmhughes requested review from waynew and removed request for a team January 30, 2022 19:53
@Ch3LL Ch3LL merged commit b677222 into saltstack:master Feb 4, 2022
@nicholasmhughes nicholasmhughes deleted the add-state_compress_ids-highstate-output branch February 4, 2022 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE REQUEST] Allow roll-up of duplicate IDs with different names in highstate output

6 participants