Skip to content

fix(opencloud): show account storage usage - #321

Merged
gnacho merged 2 commits into
mainfrom
fix/opencloud-account-quota
Nov 7, 2026
Merged

gnacho merged 2 commits into
mainfrom
fix/opencloud-account-quota

Conversation

@gnacho

@gnacho gnacho commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

OpenCloud account cards now read quota from GET /graph/v1.0/me/drives and sum usage across the drives visible to the account. Nextcloud keeps using the OCS user endpoint.

The shared quota parser preserves the existing handling of missing, negative and unlimited values. The total is reported only when every drive has a finite positive total. Missing quota leaves the usage line empty as before.

The account card also shows the number of synchronized files from the local .nextsync/state.db journals. SQLite is opened read-only and reads run off the main thread. Missing or unreadable journals contribute zero files. No remote recursive listing is needed.

Tests cover drive aggregation, partial and missing quota, unlimited totals, provider endpoint selection, file aggregation across temporary journals, missing journals and English/Spanish labels.

Validation:

  • cargo build --workspace
  • cargo test --workspace: 774 passed, 0 failed, 3 ignored
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo fmt --all -- --check
  • Translation catalog parity

Closes #320

@gnacho
gnacho merged commit 4da846c into main Nov 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenCloud account cards do not show storage usage

1 participant