-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Split LimitCollectionCreationDeletion
into two database columns
#4709
Split LimitCollectionCreationDeletion
into two database columns
#4709
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4709 +/- ##
=======================================
Coverage 41.80% 41.81%
=======================================
Files 1320 1320
Lines 62687 62689 +2
Branches 5774 5774
=======================================
+ Hits 26209 26211 +2
Misses 35267 35267
Partials 1211 1211 ☔ View full report in Codecov by Sentry. |
New Issues
Fixed Issues
|
f0d5365
to
44278dd
Compare
@r-tome @eliykat @vincentsalucci This isn't ready for merge yet. I want to get a bit further and manually test. That said: if anyone finds time for a review I'd appreciate it. I haven't done a formally processed EDD migration yet, and I do not want to miss anything. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to refresh OrganizationView
after adding the column; but this otherwise looks right to me, including EDD considerations.
To confirm, I expect the timeline would be:
- Merge this PR
-- rc cut -- - Update the code to use the new column
-- rc cut -- - Drop the old column
Thanks! I added a refresh to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
c79d627
to
0f44cb7
Compare
LimitCollectionCreation
& deprecate LimitCollectionCreationDeletion
Organization.Settings
& deprecate LimitCollectionCreationDeletion
c32c1a2
to
78dcd6d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me! Thanks for taking the time to navigate EDD issues.
baf2684
to
24be4d2
Compare
I rebased this on No functional changes were made. |
I'd also like to ignore the failing SonarCloud action run on this PR. It seems mostly upset about tests, but this is entirely database operations. |
I opened up the Sonar report finding, and there's one thing listed: It suggests a |
Thank you @withinfocus, that's helpful and did give me an idea. I do want to update every record on the table, so a @eliykat this does mark a small functional change since review. When you get to it: please give a review to the very small change on c37f77f. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, also note my recent database changes in #4701 just in case you need to re-do any of your EF migrations. (You may have already done this)
c37f77f
to
af50aac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
🎟️ Tracking
🧵 Jira Ticket: PM-10863
📚 Stacked PRs
server
: SplitLimitCollectionCreationDeletion
into two database columns #4709⬆️ YOU ARE HERE
server
: SplitOrganization.LimitCollectionCreationDeletion
into two separate business rules #4730clients
: SplitOrganization.LimitCollectionCreationDeletion
into two separate business rules clients#11223server
: Turn onLimitCollectionCreationDeletionSplit
for self host #4808server
: [PM-14821] [PM-14822] RemoveLimitCollectionCreationDeletionSplit
feature flag #4809clients
: [PM-14821] RemoveLimitCollectionCreationDeletionSplit
feature flag clients#11258server
: DropLimitCollectionCreationDeletion
from the database #4810📔 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 pull request submits an initial migration & a transition migration for
introducing a
dbo.Organization.LimitCollectionCreation
column and adbo.Organization.LimitCollectionDeletion
column that will splitdbo.Organization.LimitCollectionCreationDeletion
into two individual datapoints.
I've include the data-syncing
UPDATE
script that copies the existingcolumn's data over to the new column as a separate script from the initial
migration. This
UPDATE
script seems like it might fit the criteria of a"transition" phase migration in EDD. I think it would be fine to run with the
initial migration, but I am unsure if (quoting the contributing docs)
It seems like it wouldn't be too much to me, but let me know!
The same updates have been made to the entity framework database
implementations. The entity fields are synced by a hand written migration,
and are
get
andset
to pull fromLimitCollectionCreationDeletion
untilthe next phase of this work that will fade that field out of use in the
server project.
🧮 Side Effects
EF migrations from being properly handled by tests.
LimitCollectionCreationDeletion
fromtrue
tofalse
in Entity Framework. This is already the default inMSSQL, and I think it was missed in EF.
📸 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 changes