Skip to content

Storage service applies the product's configuration#312

Merged
imobachgs merged 2 commits intomasterfrom
product-change
Nov 17, 2022
Merged

Storage service applies the product's configuration#312
imobachgs merged 2 commits intomasterfrom
product-change

Conversation

@imobachgs
Copy link
Contributor

@imobachgs imobachgs commented Nov 16, 2022

The storage service takes the selected product into account before performing the probing. It fixes #311.

PS: we should do something similar for the network service, but there is no network configuration in the YAML file, so we can keep it as it is now.

@coveralls
Copy link

coveralls commented Nov 16, 2022

Coverage Status

Coverage decreased (-0.006%) to 74.824% when pulling f93be66 on product-change into bca356b on master.

# Probes storage devices and performs an initial proposal
def probe
start_progress(4)
config.pick_product(software.selected_product)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't like to have this here. Note that this class does not need the config at all. The config is used by Storage::Proposal and Security, so I would expect that classes retrieve the current config somehow. I think we need to re-think the config approach completely.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I agree. I would keep the changes to the bare minimum, but it is clear that we need to evolve the configuration handling. I will add this information to #189.

@imobachgs imobachgs merged commit 39faba3 into master Nov 17, 2022
@imobachgs imobachgs deleted the product-change branch November 17, 2022 13:53
@imobachgs imobachgs mentioned this pull request Nov 17, 2022
@imobachgs imobachgs restored the product-change branch November 23, 2022 09:03
@imobachgs imobachgs deleted the product-change branch November 23, 2022 09:04
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.

Security/storage settings are not changed when a product is selected

4 participants