Skip to content

Commit

Permalink
fix: tuning layermetadata and polygonpart (#227)
Browse files Browse the repository at this point in the history
* fix: tuning layermetadata and polygonpart

* fix: pp sourcename required
  • Loading branch information
alebinson authored Nov 12, 2024
1 parent 7c9ee84 commit 21ae991
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/models/layerMetadata/layerMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
mappingType: TsTypes.NUMBER,
})
@graphql({
nullable: false, //keep it true like in max?
nullable: true,
})
@fieldConfig({
category: FieldCategory.MAIN, // is it required?
Expand Down
9 changes: 8 additions & 1 deletion src/models/polygonParts/polygonPartRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface IPropPYCSWMapping extends IPYCSWMapping {

const POLYGON_PARTS_KEYS = keys<IPolygonPart>();
const POLYGON_PARTS_SERVED_KEYS =
keys<Omit<IPolygonPart, 'productId' | 'productType' | 'id' | 'catalogId' | 'productVersion' | 'ingestionDateUTC'>>();
keys<Omit<IPolygonPart, 'productId' | 'productType' | 'id' | 'catalogId' | 'productVersion' | 'ingestionDateUTC' | 'partId'>>();

@DBEntity({
table: 'records',
Expand Down Expand Up @@ -79,6 +79,13 @@ export class PolygonPartRecord implements IPolygonPart, IOrmCatalog {
@graphql()
@fieldConfig({
category: FieldCategory.MAIN,
infoMsgCode: ['info-general-tooltip.required'],
validation: [
{
errorMsgCode: 'validation-general.required',
required: true,
},
],
})
//#endregion
public sourceName!: string;
Expand Down

0 comments on commit 21ae991

Please sign in to comment.