-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add missing_since file/folder field and add verify and purge missing tasks #7126
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
WithoutPants
wants to merge
23
commits into
stashapp:develop
Choose a base branch
from
WithoutPants:clean-overhaul
base: develop
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 12 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
3e2ed0f
Add missing_since field to file/folder database schema
WithoutPants dee4938
Add missing_since field to graphql schema
WithoutPants cbf5656
Add verifyPaths and purgeMissing tasks. Deprecated metadataClean now …
WithoutPants b86c114
Add missing_since to file/folder queries
WithoutPants 78790c2
Clear missing flag for found files/folders during scan
WithoutPants a6bcc64
Add filter and sort for missing_since
WithoutPants fb8ffa1
Replace clean with verify files in ui
WithoutPants 1c5afa5
Add purge missing task to ui
WithoutPants 9cf6e08
Backport #7077 change
WithoutPants 210abef
Update docs
WithoutPants 47af721
Add dialog headings
WithoutPants 26dcb60
Clarify dialog message
WithoutPants 81d5ce5
Fix typo
DogmaDragon 7f9c9ce
Fix formatting, typos
DogmaDragon 6de3333
Refactor code for progress increment handling
WithoutPants ecb7bee
Use read transaction for missing files query
WithoutPants 60bb607
Use dryRun values
WithoutPants 4f021a8
Regenerate test mocks
WithoutPants d051f47
Fix unit test error
WithoutPants 8aa5d6b
Remove unused fields
WithoutPants d474fc7
Fix missing_since comment
WithoutPants 37b06a1
Fix message labels
WithoutPants 30cf456
Load defaults for purge missing
WithoutPants 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,9 @@ type Folder { | |
| "Returns direct sub-folders" | ||
| sub_folders: [Folder!]! | ||
|
|
||
| "If not null, indicates when the folder was detected as missing. Set by the clean task" | ||
| missing_since: Time | ||
|
|
||
| mod_time: Time! | ||
|
|
||
| created_at: Time! | ||
|
|
@@ -36,6 +39,9 @@ interface BaseFile { | |
| parent_folder: Folder! | ||
| zip_file: BasicFile | ||
|
|
||
| "If not null, indicates when the folder was detected as missing. Set by the clean task" | ||
| missing_since: Time | ||
|
|
||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed |
||
| mod_time: Time! | ||
| size: Int64! | ||
|
|
||
|
|
@@ -57,6 +63,9 @@ type BasicFile implements BaseFile { | |
| parent_folder: Folder! | ||
| zip_file: BasicFile | ||
|
|
||
| "If not null, indicates when the folder was detected as missing. Set by the clean task" | ||
| missing_since: Time | ||
|
|
||
| mod_time: Time! | ||
| size: Int64! | ||
|
|
||
|
|
@@ -78,6 +87,9 @@ type VideoFile implements BaseFile { | |
| parent_folder: Folder! | ||
| zip_file: BasicFile | ||
|
|
||
| "If not null, indicates when the folder was detected as missing. Set by the clean task" | ||
| missing_since: Time | ||
|
|
||
| mod_time: Time! | ||
| size: Int64! | ||
|
|
||
|
|
@@ -110,6 +122,9 @@ type ImageFile implements BaseFile { | |
| parent_folder: Folder! | ||
| zip_file: BasicFile | ||
|
|
||
| "If not null, indicates when the folder was detected as missing. Set by the clean task" | ||
| missing_since: Time | ||
|
|
||
| mod_time: Time! | ||
| size: Int64! | ||
|
|
||
|
|
@@ -139,6 +154,9 @@ type GalleryFile implements BaseFile { | |
| parent_folder: Folder! | ||
| zip_file: BasicFile | ||
|
|
||
| "If not null, indicates when the folder was detected as missing. Set by the clean task" | ||
| missing_since: Time | ||
|
|
||
| mod_time: Time! | ||
| size: Int64! | ||
|
|
||
|
|
||
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
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.
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.
Agreed