-
Notifications
You must be signed in to change notification settings - Fork 4
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
[QOL-8518] [QOL-8612] Multiple fixes (Redis ignore exceptions, speed improvements, cleanup s3 acl flags) #80
Conversation
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
Member
duttonw
commented
Feb 9, 2022
- Add plugin features to manage S3 visibility
- Ensure old resources can be hidden via property flag
- Allow non-referenced resources be removed just like an upload with same name.
- Don't crash on full redis server when link download is being requested (ignore error on put/get/delete)
- Skip initialising s3 sub-system when url already exists in redis when download link is requested
- Cache is_private flag for dataset to skip after_package updates when no change occurred. (Since Validation and XLoader Plugins causes dataset/package to be updated from enqueued jobs)
- link resources may create a FileStorage object representing a zero-length binary stream, but they should not be treated as uploads
- attributes cannot be asserted directly, use 'hasattr' with assert_false - combine near-identical tests that only use different resource inputs
[QOL-8518] handle link resources using placeholder empty FileStorage
- this makes it easier to wipe the 'all objects' cache when uploading a new object
… ckan this is fine but with Archiver, Validator and QA the meta data is Huge
…date-all-resource-visibility Feature/qol 8612 add cli to update all resource visibility
- ACLs can have a very long expiry, since they should only change when a resource or dataset is changed, will will override the cache settings anyway.
…ensure still works on python2
QOL-8612 make non-current S3 objects private
- otherwise the Redis helper will ignore it
- don't provide a 'queue' arg unless we have a value - 'on_failure' and 'failure_ttl' require newer rq, so they only work on CKAN 2.9+ - 'title' should be passed at the top level, not injected into 'kwargs' or 'rq_kwargs'
- looks like the default is set before our tests can intercept the config
- CKAN 2.7 can't accept 'rq_kwargs' at all - even CKAN 2.9 doesn't have new enough RQ to accept 'on_failure'
QOL-8612 fix enqueuing of visibility updates
… so not inside S3FilestoreCommands class
QOL-8612 tweak class structure
duttonw
requested review from
ThrawnCA,
devonpis,
kundupz,
ganapavz,
chris-randall-qol,
tonymcneil and
RossWebsterWork
February 9, 2022 04:13
ThrawnCA
approved these changes
Feb 9, 2022
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.
Looks good to me, but then again I wrote most of it, so we should get someone else's opinion for it to be a proper peer review.
chris-randall-qol
approved these changes
Feb 11, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.