Skip to content

fix(notifications): Fix Size Analysis feature flag filter typo#107418

Merged
dashed merged 1 commit intomasterfrom
fix/size-analysis-notification-filter-typo
Feb 2, 2026
Merged

fix(notifications): Fix Size Analysis feature flag filter typo#107418
dashed merged 1 commit intomasterfrom
fix/size-analysis-notification-filter-typo

Conversation

@dashed
Copy link
Member

@dashed dashed commented Feb 2, 2026

Summary

Fixes a bug introduced in PR #106940 where the Size Analysis notification setting was appearing for all users regardless of the expose-category-size-analysis feature flag.

The issue was a typo in the feature flag filter:

  • Filter checked for quotaSizeAnalysis (singular, with 'i')
  • Actual field name is quotaSizeAnalyses (plural, with 'e')

Since 'quotaSizeAnalyses'.startsWith('quotaSizeAnalysis') returns false, the filter never matched.

Simplified the filter to quotaSize to prevent similar typos in the future.

Test plan

  • Existing notification settings tests pass (13 tests)
  • Pre-commit hooks pass

The filter was checking for 'quotaSizeAnalysis' (singular) but the
actual field name is 'quotaSizeAnalyses' (plural). This caused the
filter to never match, allowing the Size Analysis notification setting
to appear for all users regardless of the feature flag.

Simplified the filter to 'quotaSize' to prevent similar typos.
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 2, 2026
@dashed dashed marked this pull request as ready for review February 2, 2026 16:37
@dashed dashed requested a review from a team as a code owner February 2, 2026 16:37
@dashed dashed self-assigned this Feb 2, 2026
@dashed dashed requested a review from a team February 2, 2026 16:38
@dashed dashed merged commit 532435d into master Feb 2, 2026
57 checks passed
@dashed dashed deleted the fix/size-analysis-notification-filter-typo branch February 2, 2026 17:00
shellmayr pushed a commit that referenced this pull request Feb 4, 2026
## Summary

Fixes a bug introduced in PR #106940 where the Size Analysis
notification setting was appearing for all users regardless of the
`expose-category-size-analysis` feature flag.

The issue was a typo in the feature flag filter:
- Filter checked for `quotaSizeAnalysis` (singular, with 'i')
- Actual field name is `quotaSizeAnalyses` (plural, with 'e')

Since `'quotaSizeAnalyses'.startsWith('quotaSizeAnalysis')` returns
`false`, the filter never matched.

Simplified the filter to `quotaSize` to prevent similar typos in the
future.

## Test plan

- [x] Existing notification settings tests pass (13 tests)
- [x] Pre-commit hooks pass
@github-actions github-actions bot locked and limited conversation to collaborators Feb 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants