From 66f13e06a9d6c6b575726ca29dd4b9d71baaaf06 Mon Sep 17 00:00:00 2001 From: Anass Bouassaba Date: Fri, 8 Nov 2024 08:59:46 +0100 Subject: [PATCH] fix(misc): several inconsistencies --- 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/src/app.ts | 2 +- idp/src/infra/admin-requests.ts | 48 --------- idp/src/user/router.ts | 100 +++++++++---------- idp/src/user/service.ts | 36 +++++-- 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/idp/user.ts | 52 +++++----- ui/src/components/viewer/viewer-mosaic.tsx | 2 +- ui/src/lib/helpers/picture.ts | 6 +- ui/src/pages/console/console-panel-user.tsx | 13 +-- ui/src/pages/console/console-panel-users.tsx | 22 +--- 21 files changed, 189 insertions(+), 246 deletions(-) delete mode 100755 idp/src/infra/admin-requests.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; } - -