Skip to content

fix: don't preselect a quota for several items with different quotas - #4205

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/batch-quota-no-preselect
Nov 5, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/batch-quota-no-preselect

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

The batch "Edit quota" dialog no longer preselects the first item's quota when the selected users or spaces have different quotas, so one click can't overwrite all of them by accident. Confirm stays disabled until a value is picked.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: mixed quotas start without a selection and keep Confirm disabled; picking a value or No restriction applies it to all items; equal quotas are still preselected
  • test case 2: browser: users and spaces with mixed quotas (desktop and Pixel 7), picked, No restriction and typed values saved for all items; single item and equal quotas unchanged

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear merged commit 6c971f5 into main Nov 5, 2026
29 checks passed
@AlexAndBear
AlexAndBear deleted the fix/batch-quota-no-preselect branch November 5, 2026 09:30
@openclouders openclouders mentioned this pull request Nov 5, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Batch quota dialog preselects the first item's quota

2 participants