Skip to content

[SPACES] Get Personal spaces quota from GraphAPI #3874

Closed

Description

@jesmrec

Quota is displayed at the bottom of the side menu. Legacy and current behaviour is showing the personal space quota. So, we should always show the personal space quota in the drawer (the general quota for oC10).

Now, this value should be fetched from GraphAPI's drives endpoint in case of oCIS, and keeping the current behaviour for 0C10.

"quota" : {
            "remaining" : 2655551488,
            "state" : "normal",
            "total" : 0,
            "used" : 66351210
},

Docs: https://owncloud.dev/libre-graph-api/#/me.drives/ListMyDrives

TASKS

  • Research (if needed)
  • Create branch feature/personal_space_quota
  • Development tasks
    • Implement logic for oC10
    • Implement logic for oCIS
    • Implement unit tests (if needed)
  • Code review and apply changes requested
  • Design test plan
  • QA
  • Merge branch feature/personal_space_quota into master

Activity

  1. added this to the 4.0 - Current milestone on Feb 3, 2023
  2. abelgardep commented on Feb 23, 2023

    @abelgardep
    Contributor

    I understand the idea, but oCIS has compatibility with this AFAIT:
    Propfind Requesthttps://server/remote.php/dav/files/user

    <?xml version='1.0' encoding='UTF-8' ?>
    <propfind xmlns="DAV:" xmlns:CAL="urn:ietf:params:xml:ns:caldav" xmlns:CARD="urn:ietf:params:xml:ns:carddav" xmlns:SABRE="http://sabredav.org/ns" xmlns:OC="http://owncloud.org/ns">
        <prop>
            <quota-used-bytes />
            <quota-available-bytes />
        </prop>
    </propfind>
    

    Response:

    <d:multistatus xmlns:s="http://sabredav.org/ns" xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
        <d:response>
            <d:href>/remote.php/dav/files/user/</d:href>
            <d:propstat>
                <d:prop>
                    <d:quota-used-bytes>16996007</d:quota-used-bytes>
                    <d:quota-available-bytes>-2</d:quota-available-bytes>
                </d:prop>
                <d:status>HTTP/1.1 200 OK</d:status>
            </d:propstat>
        </d:response>
    </d:multistatus>
    

    Is it planned to remove the compatibility?
    Do we need to show something different here?

  3. michaelstingl commented on Feb 27, 2023

    @michaelstingl
    Contributor

    Spaces have quota information in the Graph endpoint. Better align quota handling across Personal Space and Project Spaces?

  4. added
    p3-medium
    p4-low
    and removed
    p3-medium
    on Apr 13, 2023
  5. JuancaG05 commented on Feb 20, 2024

    @JuancaG05
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions