-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Migration to delete entries in properties table with null value for fileid column and restrict null value in properties table #36084
Conversation
eb68943
to
b445fdc
Compare
In addition, double check that the migrations are always executed in the order we want. I think the |
b445fdc
to
32b003d
Compare
Codecov Report
@@ Coverage Diff @@
## master #36084 +/- ##
=======================================
Coverage 54% 54%
=======================================
Files 63 63
Lines 7403 7403
Branches 1307 1307
=======================================
Hits 3998 3998
Misses 3019 3019
Partials 386 386
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #36084 +/- ##
=======================================
Coverage 54.01% 54.01%
=======================================
Files 63 63
Lines 7404 7404
Branches 1309 1309
=======================================
Hits 3999 3999
Misses 3019 3019
Partials 386 386
Continue to review full report at Codecov.
|
I'll ping @DeepDiver1975 to check for the best practice here. |
32b003d
to
4112735
Compare
I have tested with DI and it's working on my instance. I have updated this PR with DI. |
4112735
to
6ee26c8
Compare
New migrations have been added to the dav app to acheive the following: 1. Delete the existing entries in properties table which have null fileid entries 2. Restrict null value entry for fileid in properties table. Signed-off-by: Sujith H <[email protected]>
6ee26c8
to
5d67c07
Compare
@sharidas |
New migrations have been added to the dav app to
acheive the following:
which have null fileid entries
Signed-off-by: Sujith H [email protected]
Description
Restrict the usage of null value added to fileids in the properties table. When null value is allowed to enter, the background job like
CleanProperties
would end up in an infinite loop. Hence this PR addresses the problem by fixing it in the db, level. This introduces 2 migrations:Related Issue
Motivation and Context
To fix the problem caused by entry of null value in the fileid, its better to attack the problem or fix the problem in the db.
How Has This Been Tested?
10.1.1
and10.3.0 alpha
a.txt
fileid
isNULL
fileid
is NULL.0.5.0
hence the migration changes will be applied cleanly.fileid
as shown below, it wont allow:Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: