-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1543 fix file management refactor migration (#1555)
* Fix file management refactor DB migration [Re #1543] We needed to take into account dash characters among the allowed/expected file names when building the temporal image tables for the "image" and "thumbnail" properties during the DB migration related to already stored GCS images for the different resource types. Otherwise, the file name string generation ends up with an empty value, which violates the NOT NULL constraint in the File table's Name column. After further checking the code and both Prod and Test Env DBs, we are confident that these are the only changes needed to fix the issue and avoid any other surprises (since we know how the code is building the image urls when uploading them to GCS). * Fix formatting of misc. files
- Loading branch information
1 parent
17b7ff2
commit fd0d204
Showing
3 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,7 @@ | |
unapproved (new-stakeholder db 2 "[email protected]" "USER" "SUBMITTED")] | ||
|
||
(are [expected auth-header] | ||
(= expected (auth/get-user-info db auth-header)) | ||
(= expected (auth/get-user-info db auth-header)) | ||
|
||
;; Anonymous user | ||
{:approved? false :user nil} {:authenticated? false} | ||
|