Skip to content

Comments

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

Merged
r-tome merged 6 commits intomainfrom
ac/pm-17154/limit-item-deletion-feature-flag-removal
Jun 10, 2025
Merged

[PM-17154] Limit item deletion feature flag logic removal#5925
r-tome merged 6 commits intomainfrom
ac/pm-17154/limit-item-deletion-feature-flag-removal

Conversation

@r-tome
Copy link
Contributor

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

🎟️ Tracking

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

📔 Objective

Removed LimitItemDeletion flag and enforced manage-only deletion across CipherService and CiphersController.
Deleted obsolete tests for edit-based deletion and updated remaining tests to reflect the new behavior.

Clients 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 2 commits June 5, 2025 14:36
…ureService dependency and associated feature flag checks. Cleaned up tests to reflect these changes, ensuring they focus on manage permissions without reliance on feature flags.
…cks for item deletion permissions. Updated tests to focus on user manage permissions without reliance on feature flags, ensuring cleaner and more maintainable code.
@r-tome r-tome marked this pull request as ready for review June 5, 2025 13:48
@r-tome r-tome requested a review from a team as a code owner June 5, 2025 13:48
@r-tome r-tome requested a review from shane-melton June 5, 2025 13:48
…ion ability checks. Updated test cases to ensure proper handling of item deletion permissions based on user roles and organization settings, improving test coverage and reliability.
@github-actions
Copy link
Contributor

github-actions bot commented Jun 5, 2025

Logo
Checkmarx One – Scan Summary & Details543dcc54-e379-4157-94d5-a64d2c1651d5

Great job, no security vulnerabilities found in this Pull Request

@codecov
Copy link

codecov bot commented Jun 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.66%. Comparing base (84e5ea1) to head (accb846).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5925      +/-   ##
==========================================
- Coverage   51.01%   47.66%   -3.35%     
==========================================
  Files        1665     1665              
  Lines       75074    75060      -14     
  Branches     6764     6759       -5     
==========================================
- Hits        38299    35781    -2518     
- Misses      35252    37825    +2573     
+ Partials     1523     1454      -69     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@r-tome r-tome removed the needs-qa label Jun 10, 2025
@sonarqubecloud
Copy link

@r-tome r-tome merged commit 021e69b into main Jun 10, 2025
39 of 40 checks passed
@r-tome r-tome deleted the ac/pm-17154/limit-item-deletion-feature-flag-removal branch June 10, 2025 08:57
mandreko-bitwarden pushed a commit that referenced this pull request Jun 13, 2025
* Refactor CiphersController and related tests by removing unused IFeatureService dependency and associated feature flag checks. Cleaned up tests to reflect these changes, ensuring they focus on manage permissions without reliance on feature flags.

* Refactor CipherService and related tests by removing feature flag checks for item deletion permissions. Updated tests to focus on user manage permissions without reliance on feature flags, ensuring cleaner and more maintainable code.

* Enhance CiphersControllerTests by adding user retrieval and organization ability checks. Updated test cases to ensure proper handling of item deletion permissions based on user roles and organization settings, improving test coverage and reliability.
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.

2 participants