-
Notifications
You must be signed in to change notification settings - Fork 1
new prov metadata endpoint #786
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
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
ee75d15
Initial commit introducing /prov-metadata endpoint, EntityWorker, and…
kburke b0e10df
Misc cleanup of initial commit, and revised Smart API YAML for new /p…
kburke 4f39cf9
Misc cleanup of initial commit, and revised Smart API YAML for new /p…
kburke 8e90a09
Merge remote-tracking branch 'origin/main' into karlburke/NewProvMeta…
kburke 07f9c09
Final comments before PR.
kburke 476bce8
Remove print statements in init() method. Remove support for filterin…
kburke b16a7ca
Final PR comment requests. Align endpoint name to /datasets/<id>/pro…
kburke 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| # Exceptions used internally by the service, typically for anticipated exceptions. | ||
| # Knowledge of Flask, HTTP codes, and formatting of the Response should be | ||
| # closer to the endpoint @app.route() methods rather than throughout service. | ||
| class EntityConfigurationException(Exception): | ||
| """Exception raised when problems loading the service configuration are encountered.""" | ||
| def __init__(self, message='There were problems loading the configuration for the service.'): | ||
| self.message = message | ||
| super().__init__(self.message) | ||
|
|
||
| class EntityRequestAuthorizationException(Exception): | ||
| """Exception raised for authorization info on a Request.""" | ||
| def __init__(self, message='Request authorization problem.'): | ||
| self.message = message | ||
| super().__init__(self.message) | ||
|
|
||
| class EntityUnauthorizedException(Exception): | ||
| """Exception raised when authorization for a resource fails.""" | ||
| def __init__(self, message='Authorization failed.'): | ||
| self.message = message | ||
| super().__init__(self.message) | ||
|
|
||
| class EntityForbiddenException(Exception): | ||
| """Exception raised when authorization for a resource is forbidden.""" | ||
| def __init__(self, message='Access forbidden.'): | ||
| self.message = message | ||
| super().__init__(self.message) | ||
|
|
||
| class EntityNotFoundException(Exception): | ||
| """Exception raised when entity retrieval returns no results.""" | ||
| def __init__(self, message='Not found.'): | ||
| self.message = message | ||
| super().__init__(self.message) | ||
|
|
||
| class EntityBadRequestException(Exception): | ||
| """Exception raised when entity retrieval is flagged as a bad request.""" | ||
| def __init__(self, message='Bad request.'): | ||
| self.message = message | ||
| super().__init__(self.message) | ||
|
|
||
| class EntityServerErrorException(Exception): | ||
| """Exception raised when entity retrieval causes an internal server error.""" | ||
| def __init__(self, message='Internal server error.'): | ||
| self.message = message | ||
| super().__init__(self.message) |
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.