-
Notifications
You must be signed in to change notification settings - Fork 353
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
Gh-3254: Standardise Spring REST user authentication #3263
Merged
Merged
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
tb06904
added
enhancement
Improvement to existing functionality/feature
rest-api
Specific to/touches a part of the REST API
labels
Aug 1, 2024
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3263 +/- ##
==========================================
Coverage 67.52% 67.52%
Complexity 2591 2591
==========================================
Files 926 926
Lines 29771 29778 +7
Branches 3289 3289
==========================================
+ Hits 20103 20109 +6
- Misses 8220 8221 +1
Partials 1448 1448 ☔ View full report in Codecov by Sentry. |
tb06904
changed the title
Gh-3254: Sstandardise Spring REST user authentication
Gh-3254: Standardise Spring REST user authentication
Aug 1, 2024
p29876
previously approved these changes
Aug 5, 2024
cn337131
reviewed
Aug 7, 2024
rest-api/spring-rest/src/main/java/uk/gov/gchq/gaffer/rest/controller/JobController.java
Outdated
Show resolved
Hide resolved
…troller/JobController.java Co-authored-by: cn337131 <[email protected]>
cn337131
approved these changes
Aug 7, 2024
p29876
approved these changes
Aug 8, 2024
Quality Gate passedIssues Measures |
wb36499
added a commit
that referenced
this pull request
Aug 13, 2024
* prepare for next development iteration * prepare for next development iteration * prepare for next development iteration * Gh-3244 fix ci versioning (#3245) * move to revision property * update ci * update ignore * Gh-3085 Fix payloadOperation being exposed by getOperations (#3247) * Gh-3085 Fix payloadOperation being exposed by getOperations * headers * add test * Gh-3220: Standardise GafferPop Tests (#3243) * update graph IT tests * Rename GraphIT -> GraphTest * create graph IT * Create Modern Federated example graph run graph tests on multiple graph types * Update federated IT tests move non-federates specific tests to graph tests * tidying * remove public + spotless * sonarcloud * sonarcloud * Use allEdges/allEntities * tidy --------- Co-authored-by: wb36499 <[email protected]> * Gh-3237 Implement DeleteElements for Map Store (#3239) * Gh-3237 Implement DeleteElements for Map Store * remove unused param * spotless * codecov and sonarcloud * improve codecov and sonarcloud * reduce test duplication and add to federated store * checkstyle * remove unused properties and improve check * address PR comments and improve tests * fix indent * checkstyle * copyright * bump version * address comments * add comment --------- Co-authored-by: cn337131 <[email protected]> Co-authored-by: tb06904 <[email protected]> * Gh-3238: target delete accumulo (#3249) * Gh-3237 Implement DeleteElements for Map Store * remove unused param * spotless * wip * finish * checkstyle * codecov and sonarcloud * improve codecov and sonarcloud * reduce test duplication and add to federated store * checkstyle * remove unused properties and improve check * Gh-3238 Implement DeleteElements for Accumulo * add accumulo test to federated store * remove commented test * address comments * address comments * checkstyle * checkstyle * headers * code cov * remove public * remove AccumuloClient * code cov * checkystle * add test --------- Co-authored-by: cn337131 <[email protected]> * Gh-3246: Add an explain step and GafferPop to REST API (#3248) * basic rest controller for gremlin * basic websocket endpoint for gremlin inside the rest api * improvements to the gremlin ws endpoint * basic hooks for storing last chain * Add working explain endpoint and tidy websocket * Add open telementry reporting * overhaul gremlin user auth and move cypher translator * basic testing for gremlin controller * move to utils class * basic testing updates * update the options parsing and testing * test tweaks * updates from testing * tweaks * spotless * address comments --------- Co-authored-by: wb36499 <[email protected]> * Gh-3250: GetElementsWithinSet bug fix (#3251) * initial testing and changes * tidy up, remove bug test and copyright headers * fix commented out lines * additional federated tests * reduce duplicate tests * checkstyle * add inOutType * copyright * fix version variable * address comments --------- Co-authored-by: wb36499 <[email protected]> * Gh-3253 Fix custom types in gremlin (#3255) * add conversions so gafferpop edges and vertexes are graphson compliant * update testing * update testing * javadoc * make sure cypher types can be used correctly * typo * Gh-3259: Improve release process (#3260) * update release pipelines * simplify * release notes fix * remove comment * address comments * Make gremlin config message clearer (#3264) * Gh-3258: Sonarcloud Issues (#3261) * initial improvements * more test tidy up * more fixes * improve coverage * copyright * fix DeleteAllData test * checkstyle * address comments * address comments * checkstyle * checkstyle --------- Co-authored-by: wb36499 <[email protected]> * Gh-3254: Standardise Spring REST user authentication (#3263) * remove unnecessary controller interfaces and add http header setting * test tweaks * Update rest-api/spring-rest/src/main/java/uk/gov/gchq/gaffer/rest/controller/JobController.java Co-authored-by: cn337131 <[email protected]> --------- Co-authored-by: cn337131 <[email protected]> Co-authored-by: wb36499 <[email protected]> * prepare release gaffer2-2.3.0 --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: tb06904 <[email protected]> Co-authored-by: p29876 <[email protected]> Co-authored-by: wb36499 <[email protected]> Co-authored-by: cn337131 <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
Improvement to existing functionality/feature
rest-api
Specific to/touches a part of the REST API
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.
Some standarisation to the spring boot based REST API that enures any endpoints that execute operations on the graph have the HTTP headers correctly extracted from the request and set in the user factory before user creation.
Took the liberty to simplify the controller classes too removing the redundant controller interfaces which are not required and is really not recommended in spring boot. This means all the controller classes are fairly consistent now.
Related issue