From 9c3636251a51d7d15b830359ed01bf282b094a92 Mon Sep 17 00:00:00 2001 From: Anass Bouassaba Date: Fri, 8 Nov 2024 11:28:55 +0100 Subject: [PATCH] fix(misc): several inconsistencies (#370) --- api/client/mosaic_client/mosaic_client.go | 6 +- api/docs/index.html | 10 +- api/docs/swagger.yaml | 6 +- api/router/file_router.go | 26 +-- api/router/insights_router.go | 20 +- api/router/mosaic_router.go | 22 +-- api/router/user_router.go | 8 +- api/service/mosaic_service.go | 8 +- idp/docs/index.html | 53 ++--- idp/docs/swagger.json | 57 +++--- idp/qodana.yaml | 3 +- idp/src/app.ts | 2 +- idp/src/infra/admin-requests.ts | 48 ----- idp/src/user/repo.ts | 8 +- idp/src/user/router.ts | 110 +++++------ idp/src/user/service.ts | 52 +++-- mosaic/docs/index.html | 16 +- mosaic/docs/swagger.yaml | 10 +- mosaic/router/mosaic_router.go | 16 +- mosaic/service/mosaic_service.go | 6 +- ui/src/client/console/console.ts | 184 +++++++----------- ui/src/client/idp/user.ts | 56 +++--- .../edit-picture/account-upload-picture.tsx | 3 +- ui/src/components/app-bar/app-bar-search.tsx | 6 +- ui/src/components/console/console-button.tsx | 10 +- .../console/console-confirmation-modal.tsx | 4 +- .../console/console-exit-button.tsx | 30 --- .../console/console-rename-modal.tsx | 98 +++++----- ui/src/components/file/file-menu.tsx | 3 +- ...rch-filter.tsx => file-search-filters.tsx} | 4 +- ui/src/components/file/file-toolbar.tsx | 18 +- ui/src/components/layout/layout-console.tsx | 2 +- ui/src/components/sharing/sharing-groups.tsx | 3 +- ui/src/components/sharing/sharing-users.tsx | 3 +- ui/src/components/task/task-item.tsx | 3 +- ui/src/components/upload/upload-item.tsx | 3 +- .../viewer/drawer/drawer-download-button.tsx | 2 +- ui/src/components/viewer/viewer-mosaic.tsx | 2 +- .../workspace/workspace-edit-name.tsx | 2 +- .../workspace-edit-storage-capacity.tsx | 2 +- ui/src/lib/helpers/picture.ts | 6 +- ui/src/pages/account/account-layout.tsx | 3 +- .../pages/account/account-settings-page.tsx | 16 +- .../console-panel-database-indexes.tsx | 9 - ui/src/pages/console/console-panel-groups.tsx | 77 +++----- .../console/console-panel-invitations.tsx | 9 +- .../console/console-panel-organization.tsx | 20 +- .../console/console-panel-organizations.tsx | 88 +++------ ui/src/pages/console/console-panel-user.tsx | 46 +++-- ui/src/pages/console/console-panel-users.tsx | 34 ++-- .../console/console-panel-workspaces.tsx | 83 +++----- ui/src/pages/group/group-settings-page.tsx | 17 +- .../organization-settings-page.tsx | 20 +- .../pages/workspace/workspace-files-page.tsx | 2 +- .../workspace/workspace-settings-page.tsx | 17 +- ui/src/store/ui/index.ts | 2 - ui/src/store/ui/indexes.ts | 35 ---- 57 files changed, 571 insertions(+), 838 deletions(-) delete mode 100755 idp/src/infra/admin-requests.ts delete mode 100644 ui/src/components/console/console-exit-button.tsx rename ui/src/components/file/{file-search-filter.tsx => file-search-filters.tsx} (99%) delete mode 100644 ui/src/store/ui/indexes.ts diff --git a/api/client/mosaic_client/mosaic_client.go b/api/client/mosaic_client/mosaic_client.go index 1861db3ef..40e9ed42e 100644 --- a/api/client/mosaic_client/mosaic_client.go +++ b/api/client/mosaic_client/mosaic_client.go @@ -185,12 +185,12 @@ type MosaicDownloadTileOptions struct { S3Bucket string `json:"s3Bucket"` ZoomLevel int `json:"zoomLevel"` Row int `json:"row"` - Col int `json:"col"` - Ext string `json:"ext"` + Column int `json:"column"` + Extension string `json:"extension"` } func (cl *MosaicClient) DownloadTileBuffer(opts MosaicDownloadTileOptions) (*bytes.Buffer, error) { - resp, err := http.Get(fmt.Sprintf("%s/v3/mosaics/%s/%s/zoom_level/%d/row/%d/col/%d/ext/%s", cl.config.MosaicURL, opts.S3Bucket, opts.S3Key, opts.ZoomLevel, opts.Row, opts.Col, opts.Ext)) + resp, err := http.Get(fmt.Sprintf("%s/v3/mosaics/%s/%s/zoom_level/%d/row/%d/column/%d/extension/%s", cl.config.MosaicURL, opts.S3Bucket, opts.S3Key, opts.ZoomLevel, opts.Row, opts.Column, opts.Extension)) if err != nil { return nil, err } diff --git a/api/docs/index.html b/api/docs/index.html index 50b3522f4..def4c6741 100644 --- a/api/docs/index.html +++ b/api/docs/index.html @@ -12,7 +12,7 @@ margin: 0; } - - -