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

Add configuration object #379

Merged
merged 22 commits into from
Oct 1, 2024
Merged

Add configuration object #379

merged 22 commits into from
Oct 1, 2024

Conversation

christoph-hamm
Copy link
Contributor

@christoph-hamm christoph-hamm commented Sep 17, 2024

Issues: #267

Definition of Done

The PR shall be merged only if all items mentioned in CONTRIBUTING.md have been followed. In case an item is not applicable as described, please provide a short explanation in the description.

Copy link
Contributor

@inf17101 inf17101 left a comment

Choose a reason for hiding this comment

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

First half of review is finished. Only the server part is left to review.

ank/src/filtered_complete_state.rs Outdated Show resolved Hide resolved
api/proto/ank_base.proto Outdated Show resolved Hide resolved
api/proto/ank_base.proto Outdated Show resolved Hide resolved
api/src/convert.rs Outdated Show resolved Hide resolved
api/src/convert.rs Outdated Show resolved Hide resolved
common/src/objects/config.rs Outdated Show resolved Hide resolved
common/src/objects/config.rs Outdated Show resolved Hide resolved
common/src/objects/config.rs Outdated Show resolved Hide resolved
common/src/objects/state.rs Show resolved Hide resolved
common/src/objects/stored_workload_spec.rs Outdated Show resolved Hide resolved
@inf17101
Copy link
Contributor

@christoph-hamm: With the current object construction the filtering of config items via filter masks is not possible.

common/src/test_utils.rs Outdated Show resolved Hide resolved
@inf17101
Copy link
Contributor

Review part II is done. Comments published.

christoph-hamm and others added 7 commits September 30, 2024 14:44
Co-authored-by: Oliver <42932060+inf17101@users.noreply.github.com>
Issue-Id: #267
Co-authored-by: Oliver <42932060+inf17101@users.noreply.github.com>
@inf17101
Copy link
Contributor

inf17101 commented Oct 1, 2024

@christoph-hamm: With the current object construction the filtering of config items via filter masks is not possible.

The filtering still does not work for config items. I will have a look.

@inf17101
Copy link
Contributor

inf17101 commented Oct 1, 2024

The filtering works but there is a serde flatten missing in the api/build.rs file. So the user has to enter the filter mask desiredState.configs.configs.config_item_key to filter for config values. I will fix that quickly.

@inf17101
Copy link
Contributor

inf17101 commented Oct 1, 2024

The filtering works but there is a serde flatten missing in the api/build.rs file. So the user has to enter the filter mask desiredState.configs.configs.config_item_key to filter for config values. I will fix that quickly.

Fixed by adding a flatten config into the build.rs file. Now the filtering works.

Copy link
Contributor

@inf17101 inf17101 left a comment

Choose a reason for hiding this comment

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

LGTM👍

@inf17101 inf17101 merged commit 009d568 into main Oct 1, 2024
10 checks passed
@inf17101 inf17101 deleted the 267_Add_configuration_object branch October 1, 2024 13:37
@inf17101 inf17101 added enhancement New feature or request. Issue will appear in the change log "Features" and removed ready for review labels Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request. Issue will appear in the change log "Features"
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants