Skip to content

Conversation

@glennsarti
Copy link
Contributor

@glennsarti glennsarti commented Aug 1, 2019

Fixes #163

Previously, to get all metadata information, the sidecar would need to be called
multiple times, however, with the puppetstrings featureflag, we can now evaluate
the metadata all at once.


This PR adds an AggregateMetadata object and two new tasks default_aggregate and workspace_aggregate

This commit adds some whitespace to fix a rubocop warning.
@glennsarti glennsarti added this to the 0.21.0 milestone Aug 1, 2019
@glennsarti glennsarti self-assigned this Aug 1, 2019
Previously, to get all metadata information, the sidecar would need to be called
multiple times, however, with the puppetstrings featureflag, we can now evaluate
the metadata all at once.

This commit adds a new object called AggregateMetadata which can hold all of the
metadata objects (classes etc.) This commit also adds tests to ensure that it
can be serialised and deserialised correctly.

And finally this commit changes the puppetstrings helper to use the new
aggregate instead of a standard hashtable.
Previously the AggregateMetadata sidecar protocol object was added.  This commit
adds a default_aggregate and workspace_aggregate sidecar action which will
gather all of the metadata in one call. These actions will only be valid with
the puppetstrings featureflag.

This commt also adds integration tests for these new actions, with and without
the featureflag set.
@glennsarti glennsarti changed the title {WIP} Add aggregate metadata {WIP}(GH-163) Add aggregate metadata sidecar object and tasks Aug 1, 2019
@glennsarti glennsarti force-pushed the add-aggregate-metadata branch from 7c0f922 to 7e6ac3b Compare August 1, 2019 13:44
@glennsarti glennsarti changed the title {WIP}(GH-163) Add aggregate metadata sidecar object and tasks (GH-163) Add aggregate metadata sidecar object and tasks Aug 1, 2019
@glennsarti
Copy link
Contributor Author

Self merging.

@glennsarti glennsarti merged commit 5bdcc4f into puppetlabs:master Aug 1, 2019
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.

Add aggregate sidecar tasks

1 participant