Skip to content

[PM-17154] Limit item deletion feature flag removal #15094

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 10, 2025

Conversation

r-tome
Copy link
Contributor

@r-tome r-tome commented Jun 5, 2025

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-17154

📔 Objective

Remove the feature flag LimitItemDeletion and all fallback logic.

Server PR

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

r-tome added 3 commits June 5, 2025 11:42
This commit simplifies the logic in various components by removing the limitItemDeletion feature flag. The conditions for displaying restore and delete actions are now based solely on the cipher's permissions, enhancing code clarity and maintainability.
…ion ID dependency

This commit updates the cipher deletion logic across multiple components and services by removing the unnecessary dependency on collection IDs. The `canDeleteCipher$` method now solely relies on the cipher's permissions, simplifying the code and improving maintainability.
@r-tome r-tome marked this pull request as ready for review June 5, 2025 13:48
@r-tome r-tome requested review from a team as code owners June 5, 2025 13:48
@r-tome r-tome requested review from JimmyVo16 and gbubemismith June 5, 2025 13:48
Copy link
Contributor

github-actions bot commented Jun 5, 2025

Logo
Checkmarx One – Scan Summary & Detailsdb5775b4-02f7-44b7-888b-04306bdef543

Great job, no security vulnerabilities found in this Pull Request

Copy link

codecov bot commented Jun 5, 2025

Codecov Report

Attention: Patch coverage is 36.84211% with 12 lines in your changes missing coverage. Please review.

Project coverage is 36.87%. Comparing base (a368b70) to head (f39e8fc).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...lt/components/vault-items/vault-items.component.ts 0.00% 5 Missing ⚠️
...p/components/vault-v2/view-v2/view-v2.component.ts 66.66% 0 Missing and 1 partial ⚠️
apps/cli/src/commands/restore.command.ts 0.00% 1 Missing ⚠️
...sktop/src/vault/app/vault/item-footer.component.ts 0.00% 1 Missing ⚠️
...s/vault-item-dialog/vault-item-dialog.component.ts 0.00% 1 Missing ⚠️
...mponents/vault-items/vault-cipher-row.component.ts 0.00% 1 Missing ⚠️
...ibs/angular/src/vault/components/view.component.ts 0.00% 1 Missing ⚠️
...src/vault/services/cipher-authorization.service.ts 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #15094      +/-   ##
==========================================
- Coverage   36.87%   36.87%   -0.01%     
==========================================
  Files        3210     3210              
  Lines       92664    92610      -54     
  Branches    13910    13899      -11     
==========================================
- Hits        34171    34148      -23     
+ Misses      57088    57057      -31     
  Partials     1405     1405              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@r-tome r-tome added the needs-qa Marks a PR as requiring QA approval label Jun 9, 2025
@r-tome r-tome removed the needs-qa Marks a PR as requiring QA approval label Jun 10, 2025
Copy link

@r-tome r-tome merged commit b5bddd0 into main Jun 10, 2025
98 of 99 checks passed
@r-tome r-tome deleted the ac/pm-17154/limit-item-deletion-feature-flag-removal branch June 10, 2025 08:57
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.

3 participants