Skip to content

Commit

Permalink
fix: ingestion date 3d classification (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
alebinson authored Nov 1, 2023
1 parent 4750ec5 commit 68ad681
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/models/layerMetadata/bestMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ export class BestMetadata implements IBestMetadata, IMetadataCommonModel {
@graphql({
nullable: true,
})
@fieldConfig({
category: FieldCategory.MAIN,
isAutoGenerated: true,
})
//#endregion
public ingestionDate: Date | undefined = undefined;

Expand Down
1 change: 1 addition & 0 deletions src/models/layerMetadata/layer3DMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,7 @@ export class Layer3DMetadata implements ILayer3DMetadata, IMetadataCommonModel {
})
@fieldConfig({
category: FieldCategory.GENERAL,
isManuallyEditable: true,
infoMsgCode: ['info-general-tooltip.required'],
lookupTable: 'classification',
validation: [
Expand Down
4 changes: 4 additions & 0 deletions src/models/layerMetadata/layerMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,10 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
@graphql({
nullable: true,
})
@fieldConfig({
category: FieldCategory.MAIN,
isAutoGenerated: true,
})
//#endregion
public ingestionDate: Date | undefined = undefined;

Expand Down
6 changes: 6 additions & 0 deletions src/models/layerMetadata/pycsw3DCatalogRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ export class Pycsw3DCatalogRecord extends Layer3DMetadata implements IPycswCoreM
public anyText: string | undefined = '';

//#region CORE: insertDate
@pycsw({
profile: 'mc_3d',
xmlElement: 'mc:insertDate',
queryableField: 'mc:insertDate',
pycswField: 'pycsw:InsertDate',
})
@catalogDB({
columnType: ORMColumnType.CREATE_DATE_COLUMN,
column: {
Expand Down
2 changes: 1 addition & 1 deletion src/models/layerMetadata/vectorBestMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export class VectorBestMetadata implements IVectorBestMetadata {
nullable: true,
})
@fieldConfig({
category: FieldCategory.GENERAL,
category: FieldCategory.MAIN,
isAutoGenerated: true,
})
//#endregion
Expand Down

0 comments on commit 68ad681

Please sign in to comment.