[pbs-devel] applied: [PATCH proxmox-backup] api2/admin/datstore/status: improve status api call and restore compatibility

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Oct 29 12:32:49 CET 2020


On 29.10.20 11:51, Dominik Csapak wrote:
> by moving the properties of the storage status out again to the top
> level object
> 
> also introduce proper structs for the types used, to get type-safety
> and better documentation for the api calls
> 
> this changes the backup counts from an array of [groups,snapshots] to
> an object/struct with { groups, snapshots } and include 'other' types
> (though we do not have any at this moment)
> 
> this way it is better documented
> 
> this also adapts the ui code to cope with the api changes
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
> restores compatibility with client <=0.9.1 but breaks 0.9.2
>  src/api2/admin/datastore.rs      | 72 ++++++++++++++++----------------
>  src/api2/types/mod.rs            | 65 ++++++++++++++++++++++++++++
>  src/bin/proxmox-backup-client.rs |  2 +-
>  www/DataStoreSummary.js          | 26 ++++++------
>  4 files changed, 117 insertions(+), 48 deletions(-)
> 
>

applied, thanks!





More information about the pbs-devel mailing list