-
Notifications
You must be signed in to change notification settings - Fork 105
Api save whitelist #5059
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
Merged
Merged
Api save whitelist #5059
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
b92045a
Basic whitelist for allowing 'save' objects
will-moore 39618ef
SaveView restricts PUT to can_put whitelist
will-moore c1b626a
Uppercase CAN_PUT, CAN_POST. Both allow P/D/S
will-moore c52550b
Add CAN_DELETE check into ObjectView.delete()
will-moore 756ae7d
Return status=405 'method not supported' for disallowed methods
will-moore afcf581
Add test to check POST, PUT & DELETE not supported for Images
will-moore a1a769c
flake8 fixes
will-moore 0303161
Remove 'Plate' from test_container_crud()
will-moore d1baadc
Tiny fix to test_api_images to avoid merge conflict
will-moore 34aeb5b
Merge remote-tracking branch 'origin/develop' into api_save_whitelist
will-moore fd204cc
Test handling of create, update & delete for unsupported types
will-moore da75513
Move test_crud_unsupported to test_api_containers.py
will-moore 17682f3
Remove comment
will-moore b7e936e
flake8 fix
will-moore ddd187a
Fix failing test_api_errors.py tests
will-moore 4b72827
Tidy api_exceptions imports
will-moore 102c6c9
Split test_crud_unsupported into separate tests
will-moore a377f3d
flake8 fix
will-moore 242c551
flake8 fix
will-moore eb18edc
ApiException base class to avoid code duplication
will-moore 4c73782
Merge remote-tracking branch 'origin/develop' into api_save_whitelist
will-moore 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
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.
Will you do that in another PR? i.e. TODO
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.
Yes. Hard to see that we need to support ConcurrencyException since we are doing very simple get/set queries now and no stateful services.