-
Notifications
You must be signed in to change notification settings - Fork 43
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
Storage AutoYaST backward compatibility #1284
Merged
ancorgs
merged 15 commits into
agama-project:master
from
ancorgs:legacy_autoyast_storage
Jun 6, 2024
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
70b1fb0
service: Add Storage1.Devices D-Bus interface
joseivanlopez ef5106c
service: Add Storage1.Devices D-Bus interface
joseivanlopez 885dd39
service: D-Bus interface for calculating autoyast proposal
joseivanlopez ea7e944
service: Backend implementation of AutoYaST proposal
ancorgs 670854d
rust: Allow ignoring settings
joseivanlopez 61a5e02
rust: Process 'legacy_autoyast_storage' section
joseivanlopez 7d727ee
rust: Fix settings merge
joseivanlopez 70ea6ef
service: Do not export autoyast proposal
joseivanlopez 5d170c1
web: Avoid error if there is no proposal
joseivanlopez 6474488
service: Add missing documentation
joseivanlopez 213db47
service: Remove obsolete method
joseivanlopez 66741f0
service: Add unit tests
joseivanlopez 45ded6d
service: Remove unused API from storage client
joseivanlopez ccecdb3
rust: Fix some typos found on code review
ancorgs 5e9794d
Changelog entries
ancorgs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
//! Implements support for handling the storage AutoYaST settings | ||
pub mod store; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
//! Implements the store for the storage AutoYaST settings. | ||
|
||
use crate::error::ServiceError; | ||
use crate::storage::StorageClient; | ||
use zbus::Connection; | ||
|
||
/// Stores the storage AutoYaST settings to the D-Bus service. | ||
/// | ||
/// NOTE: The AutoYaST settings are not loaded from D-Bus because they cannot be modified. The only | ||
/// way of using the storage AutoYaST settings is by loading a JSON config file. | ||
pub struct StorageAutoyastStore<'a> { | ||
storage_client: StorageClient<'a>, | ||
} | ||
|
||
impl<'a> StorageAutoyastStore<'a> { | ||
pub async fn new(connection: Connection) -> Result<StorageAutoyastStore<'a>, ServiceError> { | ||
Ok(Self { | ||
storage_client: StorageClient::new(connection).await?, | ||
}) | ||
} | ||
|
||
pub async fn store(&self, settings: &str) -> Result<(), ServiceError> { | ||
self.storage_client.calculate_autoyast(settings).await?; | ||
Ok(()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Sadly, this code will go away in a matter of hours or days 😅 (we are dropping
agama-derive
andagama-settings
).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.
Ces't la vie.