Skip to content
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

Drop LimitCollectionCreationDeletion from the database #50

Open
wants to merge 3 commits into
base: ac/addison/pm-10863/remove-feature-toggle
Choose a base branch
from

Conversation

lizard-boy
Copy link

@lizard-boy lizard-boy commented Oct 19, 2024

🎟️ Tracking

🧵 Jira Ticket: PM-10863

📚 Stacked PRs

  1. server: Split LimitCollectionCreationDeletion into two database columns bitwarden/server#4709
  2. server: Split Organization.LimitCollectionCreationDeletion into two separate business rules bitwarden/server#4730
  3. clients: Split Organization.LimitCollectionCreationDeletion into two separate business rules bitwarden/clients#11223
  4. server: Turn on LimitCollectionCreationDeletionSplit for self host bitwarden/server#4808
  5. server: Remove LimitCollectionCreationDeletionSplit feature flag bitwarden/server#4809
  6. clients: Remove LimitCollectionCreationDeletionSplit feature flag bitwarden/clients#11258
  7. server: Drop LimitCollectionCreationDeletion from the database bitwarden/server#4810
    ⬆️ YOU ARE HERE

📔 Objective

🤳 The Bigger Picture

There is an option in the Admin Console that removes collection creation and
deletion controls from all organization members that are not in the Owner and
Admin roles. This PR stack splits this conjoined option into two separate
controls: one to block create operations and one to block delete
operations. This is a part of an effort to make these settings better align
with what customers expect it to do.

👉 This Pull Request 👍

This is the final pull request in this stack. This commit includes:

  1. Removal of the LimitCollectionCreationDeletion database column from all
    database providers.
  2. Removal of the use of LimitCollectionCreationDeletion from all MSSSQL
    views, stored procedures, etc.

📸 Screenshots

⏰ 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

Greptile Summary

This pull request removes the LimitCollectionCreationDeletion column from the Organization table across multiple database providers and updates related stored procedures and views.

  • Removed LimitCollectionCreationDeletion column from Organization table in SQL Server, MySQL, PostgreSQL, and SQLite
  • Updated stored procedures Organization_Create, Organization_Update, and Organization_ReadAbilities to remove references to the deprecated column
  • Modified views OrganizationUserOrganizationDetailsView and ProviderUserProviderOrganizationDetailsView to exclude the removed column
  • Added migration scripts for MySQL, PostgreSQL, and SQLite to handle the column removal
  • Updated Organization entity in Entity Framework Core model to reflect the database changes

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

17 file(s) reviewed, 3 comment(s)
Edit PR Review Bot Settings | Greptile

Comment on lines +1 to +2
// <auto-generated />
using System;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Remove BOM character from file

Comment on lines +1 to +2
// <auto-generated />
using System;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Remove BOM character

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