Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

Re-fetch quota when it makes sense #6930

Closed

Description

@kulmann

Steps to reproduce

  1. Look at personal quota (user-menu) or project space quota (right sidebar)
  2. Upload or delete files / folders
  3. Repeat step 1

Expected behaviour

The respective quota info should reflect the changes made in (2)

Actual behaviour

Quota info remains unchanged

Possible solutions

  • we could re-fetch the respective quota after IO batches of operations are done
  • we could use the client-side available filesize info to re-calculate the quota info instead of re-fetcing the quota to save network requests

Activity

  1. added
    Type:Bug
    Priority:p3-medium
    on May 10, 2022
  2. pascalwengerter commented on May 13, 2022

    @pascalwengerter
    Contributor

    Tried doing some investigation. Some finds

    • we do fetch the quota upon completed upload on - however, this only works in oC10 for me, oCIS seems to always return the same (relative) quota; it also sometimes sends a lot of requests to re-fetch user/quota information
    • we should probably fetch it after emptying the (personal) trashbin or deleting resources there. Other web client interactions than uploading and (ultimately) deleting resources don't have implications on the quota, amirite?
  3. tbsbdr commented on Jul 27, 2022

    @tbsbdr

    decision: refetch quota after upload has finished.

  4. AlexAndBear commented on Aug 8, 2022

    @AlexAndBear
    Contributor

    @tbsbdr whats about deleting files?

  5. self-assigned this
    on Aug 8, 2022
  6. tbsbdr commented on Aug 8, 2022

    @tbsbdr

    iirc @kulmann and I discussed that the problem is, that we don't want to generate too many requests just to have the quota up-to-date.

    refetch quota after deletion of a file would be cool, sure but in case of batch-delete we would need some debounce I guess.

    So: the quota should get updated after delete-operation only if the costs are low I'd say. whats your opinion, @kulmann ?

  7. AlexAndBear commented on Aug 8, 2022

    @AlexAndBear
    Contributor

    Checked that, the cost is low, as I only make one request after batch delete

  8. AlexAndBear commented on Aug 8, 2022

    @AlexAndBear
    Contributor

    Relative (that's the percentage view) in ocis gets wrong calculated, see owncloud/ocis#4357

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

Metadata

Metadata

Assignees

Labels

Priority:p3-mediumType:Bug

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions