-
Notifications
You must be signed in to change notification settings - Fork 29
Make Realpath Scans More Resilient #9019
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
Open
fm3
wants to merge
24
commits into
master
Choose a base branch
from
realpath-scan
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 22 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
7bca872
Merge RemoteSourceDescriptorService into DataVaultService
fm3 188d316
don’t pass redundant baseDir
fm3 7bf68a3
Merge branch 'master' into refactor-datavault-service
fm3 f0c484e
Merge branch 'master' into refactor-datavault-service
fm3 f28cb7a
Merge branch 'master' into refactor-datavault-service
fm3 dc2fc33
Make allowScalar always explicit. Remove mag paths relative to layer
fm3 401443d
don’t abort when one realpath didn’t work
fm3 69c1b80
separate scan from report
fm3 1f31825
update realpaths by original path; collect failures
fm3 fab76e3
adapt mag paths when getting datasources from dirs
fm3 3f4f462
WIP attachments
fm3 a72b002
Merge branch 'master' into refactor-datavault-service
fm3 5a13552
Merge branch 'refactor-datavault-service' into realpath-scan
fm3 1fd5143
evolutions
fm3 fff7515
changelog
fm3 35f0ca3
Merge branch 'master' into refactor-datavault-service
fm3 a361420
Merge branch 'refactor-datavault-service' into realpath-scan
fm3 da0acb6
Merge branch 'master' into realpath-scan
fm3 362e3fe
Merge branch 'master' into realpath-scan
fm3 bbb4f3e
wip also scan attachments
fm3 76601d6
restructure scan
fm3 5c74222
log realpath scan failures
fm3 961de3f
do not resolve mag paths when processing uploaded dataset with dataso…
fm3 27c12bc
fix typo, add attachment path absolute assertion
fm3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| START TRANSACTION; | ||
|
|
||
| do $$ begin if (select schemaVersion from webknossos.releaseInformation) <> 144 then raise exception 'Previous schema version mismatch'; end if; end; $$ language plpgsql; | ||
|
|
||
| ALTER TABLE webknossos.dataset_layer_attachments ADD COLUMN realPath TEXT; | ||
| ALTER TABLE webknossos.dataset_layer_attachments ADD COLUMN hasLocalData BOOLEAN NOT NULL DEFAULT false; | ||
|
|
||
| UPDATE webknossos.releaseInformation SET schemaVersion = 145; | ||
|
|
||
| COMMIT TRANSACTION; |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| START TRANSACTION; | ||
|
|
||
| do $$ begin if (select schemaVersion from webknossos.releaseInformation) <> 145 then raise exception 'Previous schema version mismatch'; end if; end; $$ language plpgsql; | ||
|
|
||
| ALTER TABLE webknossos.dataset_layer_attachments DROP COLUMN realPath; | ||
| ALTER TABLE webknossos.dataset_layer_attachments DROP COLUMN hasLocalData; | ||
|
|
||
| UPDATE webknossos.releaseInformation SET schemaVersion = 144; | ||
|
|
||
| COMMIT TRANSACTION; |
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| ### Added | ||
| - Added registering attachment realpaths next to mag realpsths. | ||
|
|
||
| ### Fixed | ||
| - Fixed that scanning realpaths of dataset mags would stop if a single mag didn’t exist. | ||
|
|
||
| ### Postgres Evolutions | ||
| - [145-attachment-realpaths.sql](conf/evolutions/145-attachment-realpaths.sql) | ||
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.