Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-2450

Display scopes while GETTING domain quotas

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • master
    • master
    • mailbox, webadmin
    • None

    Description

      Description

      The quota of a user is defined as follow:

      • If a quota is defined at the user level use it
      • Else, rely on the domain level quota
      • Else, rely on the global level quota

      To be noted that count and size quota are resolved independently.

      Hence, the quota applicable by default to a domain is defined by the *global* and *domain* scopes. However, from the domain quota endpoint, this information can not be retrieved.

      Note that OpenPaaS ADMIN needs consolidated information for this a part of https://ci.linagora.com/linagora/lgs/openpaas/linagora.esn.admin/issues/438

      Expected result

      We should return:

      {
       "global": {"count":52,"size":42}
       "domain": {"count":25,"size":142}
       "computed": {"count":25,"size":142}
      }
      

      That would be consistant with user's `curl -XGET http://ip:port/quota/users/usernameToBeUsed`

      Current behaviour

      We return only:

      {"count":25,"size":142}
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            btellier Benoit Tellier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: