Skip to content

Commit

Permalink
fix: pp islivecycleenvolved in layerrecord tuning (#230)
Browse files Browse the repository at this point in the history
* fix: layerrecord lifecycle fields tunning

* chore: cleanup few remarks
  • Loading branch information
alebinson authored Nov 13, 2024
1 parent aa60fed commit d316873
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/models/layerMetadata/layerMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
mappingType: TsTypes.DATE,
})
@graphql({
nullable: true,
nullable: false,
})
@fieldConfig({
category: FieldCategory.MAIN,
Expand Down Expand Up @@ -465,7 +465,7 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
mappingType: TsTypes.NUMBER,
})
@graphql({
nullable: false, //keep it true like in min?
nullable: false,
})
@fieldConfig({
category: FieldCategory.GEO_INFO,
Expand Down Expand Up @@ -512,7 +512,7 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
mappingType: TsTypes.NUMBER,
})
@graphql({
nullable: true,
nullable: false,
})
@fieldConfig({
category: FieldCategory.GEO_INFO,
Expand Down Expand Up @@ -883,13 +883,13 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
mappingType: TsTypes.NUMBER,
})
@graphql({
nullable: false, //keep it true like in max?
nullable: false,
})
@fieldConfig({
category: FieldCategory.MAIN,
infoMsgCode: [
'info-field-tooltip.minResolutionDeg.tooltip',
'info-general-tooltip.required', // is it required?
'info-general-tooltip.required',
'info-field-tooltip.minResolutionDeg.min',
'info-field-tooltip.minResolutionDeg.max',
],
Expand All @@ -909,6 +909,7 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
max: VALIDATIONS.resolutionDeg.max,
},
],
isLifecycleEnvolved: true,
})
//#endregion
public minResolutionDeg: number | undefined = undefined;
Expand Down Expand Up @@ -981,10 +982,10 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
mappingType: TsTypes.NUMBER,
})
@graphql({
nullable: true,
nullable: false,
})
@fieldConfig({
category: FieldCategory.MAIN, // is it required?
category: FieldCategory.MAIN,
infoMsgCode: ['info-general-tooltip.required', 'info-field-tooltip.minResolutionMeter.min', 'info-field-tooltip.minResolutionMeter.max'],
validation: [
{
Expand Down

0 comments on commit d316873

Please sign in to comment.