Drop LimitCollectionCreationDeletion
from the database
#50
+8,947
−37
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🎟️ Tracking
🧵 Jira Ticket: PM-10863
📚 Stacked PRs
server
: SplitLimitCollectionCreationDeletion
into two database columns bitwarden/server#4709server
: SplitOrganization.LimitCollectionCreationDeletion
into two separate business rules bitwarden/server#4730clients
: SplitOrganization.LimitCollectionCreationDeletion
into two separate business rules bitwarden/clients#11223server
: Turn onLimitCollectionCreationDeletionSplit
for self host bitwarden/server#4808server
: RemoveLimitCollectionCreationDeletionSplit
feature flag bitwarden/server#4809clients
: RemoveLimitCollectionCreationDeletionSplit
feature flag bitwarden/clients#11258server
: DropLimitCollectionCreationDeletion
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 blockdelete
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:
LimitCollectionCreationDeletion
database column from alldatabase providers.
LimitCollectionCreationDeletion
from all MSSSQLviews, stored procedures, etc.
📸 Screenshots
⏰ Reminders before review
🦮 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 changesGreptile Summary
This pull request removes the
LimitCollectionCreationDeletion
column from the Organization table across multiple database providers and updates related stored procedures and views.LimitCollectionCreationDeletion
column from Organization table in SQL Server, MySQL, PostgreSQL, and SQLiteOrganization_Create
,Organization_Update
, andOrganization_ReadAbilities
to remove references to the deprecated columnOrganizationUserOrganizationDetailsView
andProviderUserProviderOrganizationDetailsView
to exclude the removed columnOrganization
entity in Entity Framework Core model to reflect the database changes