Skip to content

Commit

Permalink
created ShareSavedQueries endpoint and updated openapi docs
Browse files Browse the repository at this point in the history
BED-4537 db methods by Mike

BED-4537 added database functionality to query for all scopes, integration tests for that

BED-4537 linter fix for error

BED-4537 added ability to delete saved query permissions and integration tests for it

BED-4537 added ability to delete saved query permissions, bulk create saved query permissions, and integration tests

BED-4537 forgot to push batch changes, whoops!

BED-4537 fix linting error

Addressed PR feedback, corrected yaml files and unit tests

Address PR feedback and optimization changes

Refactored control flow logic, added TONS of unit tests, added some integration tests, and altered some database functions

Refactored logic, added unit/integration tests, handled merge conflicts

Addressed previous PR feedback and adjusted unit tests

Corrected openapi stuff

Changed the endpoint url

More openapi corrections and file name change

Addressed PR feedback and fixed unit/integration tests
  • Loading branch information
mistahj67 committed Aug 23, 2024
1 parent f076a01 commit 5f7a1f5
Show file tree
Hide file tree
Showing 15 changed files with 2,394 additions and 681 deletions.
1 change: 1 addition & 0 deletions cmd/api/src/api/registration/v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ func NewV2API(cfg config.Configuration, resources v2.Resources, routerInst *rout
routerInst.PUT(fmt.Sprintf("/api/v2/saved-queries/{%s}", api.URIPathVariableSavedQueryID), resources.UpdateSavedQuery).RequirePermissions(permissions.SavedQueriesWrite),
routerInst.DELETE(fmt.Sprintf("/api/v2/saved-queries/{%s}", api.URIPathVariableSavedQueryID), resources.DeleteSavedQuery).RequirePermissions(permissions.SavedQueriesWrite),
routerInst.DELETE(fmt.Sprintf("/api/v2/saved-queries/{%s}/permissions", api.URIPathVariableSavedQueryID), resources.DeleteSavedQueryPermissions).RequirePermissions(permissions.SavedQueriesWrite),
routerInst.PUT(fmt.Sprintf("/api/v2/saved-queries/{%s}/permissions", api.URIPathVariableSavedQueryID), resources.ShareSavedQueries).RequirePermissions(permissions.SavedQueriesWrite),

// Azure Entity API
routerInst.GET("/api/v2/azure/{entity_type}", resources.GetAZEntity).RequirePermissions(permissions.GraphDBRead),
Expand Down
90 changes: 0 additions & 90 deletions cmd/api/src/api/v2/saved_queries_permissions.go

This file was deleted.

295 changes: 0 additions & 295 deletions cmd/api/src/api/v2/saved_queries_permissions_test.go

This file was deleted.

Loading

0 comments on commit 5f7a1f5

Please sign in to comment.