Commands to help manage remote uploads #6
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.
feat(commands): added commands to help manage remote uploads;
list-linked-uploadscommand.list-unlinked-uploadscommand.remove-unlinked-uploadscommand.list-missing-uploadscommand.These are just some utility commands to help sys admins manage their storage containers and remote uploads to them. There are some cases in ckan in which uploads would not be deleted (there are discussions ongoing related to that in ckan core).
The main one, is that when deleting a dataset/package, it does not delete the resources along with it, which means that the uploads for the resources do not get cleared. So the
list-unlinked-uploadsandremove-unlinked-uploadswould help with this.There have been a few cases in which files fail to upload to the storage containers, and either users do not notice it or do not report it. So the
list-missing-uploadscommand helps with that.The
listtype commands have an option to output useful data to a csv file. Otherwise it just outputs the number of uploads found, along with the total space used in the storage container.