Skip to content

Commit

Permalink
PMM-12913 migrate /v1/platform
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Apr 11, 2024
1 parent f85a909 commit 6b6d5ab
Show file tree
Hide file tree
Showing 24 changed files with 576 additions and 835 deletions.
4 changes: 2 additions & 2 deletions api-tests/server/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,11 @@ func TestBasicAuthPermissions(t *testing.T) {
{userType: "editor", login: editor, apiKey: editorAPIKey, statusCode: 401},
{userType: "admin", login: admin, apiKey: adminAPIKey, statusCode: 200},
}},
{name: "platform-connect", url: "/v1/platform/Connect", method: "POST", userCase: []userCase{
{name: "platform-connect", url: "/v1/platform:connect", method: "POST", userCase: []userCase{
{userType: "default", login: none, statusCode: 401},
{userType: "viewer", login: viewer, apiKey: viewerAPIKey, statusCode: 401},
{userType: "editor", login: editor, apiKey: editorAPIKey, statusCode: 401},
{userType: "admin", login: admin, apiKey: adminAPIKey, statusCode: 400}, // We send bad request, but have access to endpoint
{userType: "admin", login: admin, apiKey: adminAPIKey, statusCode: 400}, // We send a bad request, but have access to endpoint
}},
}

Expand Down
16 changes: 8 additions & 8 deletions api/MIGRATION_TO_V3.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ POST /v1/role/SetDefault POST /v1/accesscontrol/roles
POST /v1/role/Update PUT /v1/accesscontrol/roles/{role_id} ✅

**QANService** **QANService**
POST /v1/qan/Filters/Get POST /v1/qan/metrics:getFilters accepts a bunch of params, incl. an array
POST /v1/qan/Filters/Get POST /v1/qan/metrics:getFilters
POST /v1/qan/GetMetricsNames POST /v1/qan/metrics:getNames Note: it accepts no params, but hard to make it a GET
POST /v1/qan/GetReport POST /v1/qan/metrics:getReport
POST /v1/qan/ObjectDetails/ExplainFingerprintByQueryId POST /v1/qan:explainFingerprint
Expand All @@ -161,13 +161,13 @@ POST /v1/qan/ObjectDetails/QueryExists GET /v1/qan/query/{query_id}
POST /v1/qan/ObjectDetails/SchemaByQueryId POST /v1/qan/query:getSchema

**PlatformService** **PlatformService**
POST /v1/platform/Connect POST /v1/platform:connect
POST /v1/platform/Disconnect POST /v1/platform:disconnect
POST /v1/platform/GetContactInformation GET /v1/platform/contact
POST /v1/platform/SearchOganizationEntitlemenets GET /v1/platform/organization/entitlements
POST /v1/platform/SearchOganizationTickets GET /v1/platform/organization/tickets
POST /v1/platform/ServerInfo GET /v1/platform/server
POST /v1/platform/UserInfo GET /v1/platform/user
POST /v1/platform/Connect POST /v1/platform:connect
POST /v1/platform/Disconnect POST /v1/platform:disconnect
POST /v1/platform/GetContactInformation GET /v1/platform/contact
POST /v1/platform/SearchOganizationEntitlemenets GET /v1/platform/organization/entitlements
POST /v1/platform/SearchOganizationTickets GET /v1/platform/organization/tickets
POST /v1/platform/ServerInfo GET /v1/platform/server
POST /v1/platform/UserInfo GET /v1/platform/user

// TODO: rename `period_start_from` to `start_from` and `period_start_to` to `start_to`
// TODO: refactor the primitive types in alerting.proto
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6b6d5ab

Please sign in to comment.