Skip to content

Commit

Permalink
Adapt storage proposal to the new architecture (#1175)
Browse files Browse the repository at this point in the history
This PR implements an HTTP/JSON API for managing the storage proposal
and all the support methods needed by the corresponding web interface.

This works as a proxy over the real API which is implemented in D-Bus.
That comes with some problems (especially regarding performance) that
will need to be fixed in the future.

## Testing

- Existing unit tests adapted to the new API, except those related to
signals (`onDeprecate` and `onIssuesChange`).
- Tested manually

## References

https://trello.com/c/HOkBiVHp/
  • Loading branch information
joseivanlopez committed May 13, 2024
2 parents 3d66032 + 3c07a79 commit 471dd9e
Show file tree
Hide file tree
Showing 16 changed files with 1,921 additions and 1,476 deletions.
3 changes: 0 additions & 3 deletions rust/agama-lib/src/dbus.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
use anyhow::Context;
use std::collections::HashMap;
use zbus::zvariant::{self, OwnedValue, Value};

use crate::error::ServiceError;

/// Nested hash to send to D-Bus.
pub type NestedHash<'a> = HashMap<&'a str, HashMap<&'a str, zvariant::Value<'a>>>;
/// Nested hash as it comes from D-Bus.
Expand Down
4 changes: 2 additions & 2 deletions rust/agama-lib/src/storage.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! Implements support for handling the storage settings

pub mod client;
pub mod device;
mod proxies;
pub mod model;
pub mod proxies;
mod settings;
mod store;

Expand Down
Loading

0 comments on commit 471dd9e

Please sign in to comment.