Comment 4 for bug 773271

Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Yes, currently there is this message in the protocol:

    416 message AccountInfo {
    417 optional uint64 purchased_bytes = 1;
    418 }

that, as far as I understand, can be sent from the server to the client with the new amount of "purchased_bytes".

We had a session about this yesterday (attendees, among others, were Lucio, Alecu, Martin, Chipaca and myself), and since the notes that Chipaca took seems to have gone away, I will repeat the action items we defined:

* foundations:
  - piggy-back on GetDelta message responses to send the free_space (or quota_used). Since the SV_NEW_GENERATION is already being sent to all the clients, and that triggers a GetDelta, we wouldn't be adding any overhead.
  - start using the AccountInfo message to notify clients when the storage space changes (either increases or decreases).

* desktop+ or foundations:
  - make syncdaemon send two different DBus signals, one for free space changes, and another for storage space changes.

* desktop+:
  - make control panel connect to the aforementioned DBus signals and update the UI accordingly.
  - analyze if some work is needed to update out of quota notifications.
  - add a new message to the message menu (later this will be the services applet) to inform the user that his/her plan downgraded (need confirmation on this item since I don't recall exactly what we agreed on).

* futures:
  - define account rest api v2 to clena up v1 and remove deprecated and unused fields/info.

* web:
  - enrich account rest call to also send the list of plans that the user is subscribed to. Also send information about plan frequency (monthly, etc)