Skip to content
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

fix: add keywords to editable fields(MAPCO-5673) #244

Merged
merged 2 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/models/rasterCatalog/rasterCatalogUpsertRequest.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { Link } from '../common';
import { LayerMetadata } from '../layerMetadata';
import { LayerMetadata, PycswLayerCatalogRecord } from '../layerMetadata';

export type UpdateLayerMetadata = Partial<
Pick<LayerMetadata, 'classification' | 'productName' | 'productSubType' | 'description' | 'producerName' | 'region' | 'scale'>
export type EditLayerMetadata = Partial<
Pick<
CL-SHLOMIKONCHA marked this conversation as resolved.
Show resolved Hide resolved
PycswLayerCatalogRecord,
'classification' | 'productName' | 'productSubType' | 'description' | 'producerName' | 'region' | 'scale' | 'keywords'
>
>;

export interface IRasterCatalogUpsertRequestBody {
Expand All @@ -11,5 +14,5 @@ export interface IRasterCatalogUpsertRequestBody {
}

export interface IRasterCatalogEditRequestBody {
metadata: UpdateLayerMetadata;
metadata: EditLayerMetadata;
}
3 changes: 3 additions & 0 deletions src/yaml/editLayerMetadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ components:
type: integer
minimum: 0
maximum: 100000000
keywords:
type: string
description: The keywords of the product
Loading