Merge remote-tracking branch 'origin/dmp-refactoring' into dmp-refactoring

This commit is contained in:
amentis 2024-06-05 17:40:22 +03:00
commit 313e20a32c
53 changed files with 57 additions and 57 deletions

View File

@ -180,7 +180,7 @@ public class AnnotationQuery extends QueryBase<AnnotationEntity> {
} }
public AnnotationQuery disableTracking() { public AnnotationQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -113,7 +113,7 @@ public class EntityUserQuery extends QueryBase<EntityUserEntity> {
} }
public EntityUserQuery disableTracking() { public EntityUserQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -126,7 +126,7 @@ public class QueueInboxQuery extends QueryBase<QueueInboxEntity> {
} }
public QueueInboxQuery disableTracking() { public QueueInboxQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -131,7 +131,7 @@ public class QueueOutboxQuery extends QueryBase<QueueOutboxEntity> {
} }
public QueueOutboxQuery disableTracking() { public QueueOutboxQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -74,7 +74,7 @@ public class TenantQuery extends QueryBase<TenantEntity> {
} }
public TenantQuery disableTracking() { public TenantQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -120,7 +120,7 @@ public class TenantUserQuery extends QueryBase<TenantUserEntity> {
} }
public TenantUserQuery disableTracking() { public TenantUserQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -131,7 +131,7 @@ public class UserCredentialQuery extends QueryBase<UserCredentialEntity> {
} }
public UserCredentialQuery disableTracking() { public UserCredentialQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -90,7 +90,7 @@ public class UserQuery extends QueryBase<UserEntity> {
} }
public UserQuery disableTracking() { public UserQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -164,7 +164,7 @@ public class ActionConfirmationQuery extends QueryBase<ActionConfirmationEntity>
} }
public ActionConfirmationQuery disableTracking() { public ActionConfirmationQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -217,7 +217,7 @@ public class DescriptionQuery extends QueryBase<DescriptionEntity> {
} }
public DescriptionQuery disableTracking() { public DescriptionQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -132,7 +132,7 @@ public class DescriptionReferenceQuery extends QueryBase<DescriptionReferenceEnt
} }
public DescriptionReferenceQuery disableTracking() { public DescriptionReferenceQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -121,7 +121,7 @@ public class DescriptionTagQuery extends QueryBase<DescriptionTagEntity> {
} }
public DescriptionTagQuery disableTracking() { public DescriptionTagQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -218,7 +218,7 @@ public class DescriptionTemplateQuery extends QueryBase<DescriptionTemplateEntit
} }
public DescriptionTemplateQuery disableTracking() { public DescriptionTemplateQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -111,7 +111,7 @@ public class DescriptionTemplateTypeQuery extends QueryBase<DescriptionTemplateT
} }
public DescriptionTemplateTypeQuery disableTracking() { public DescriptionTemplateTypeQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -164,7 +164,7 @@ public class DmpBlueprintQuery extends QueryBase<DmpBlueprintEntity> {
} }
public DmpBlueprintQuery disableTracking() { public DmpBlueprintQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -156,7 +156,7 @@ public class DmpDescriptionTemplateQuery extends QueryBase<DmpDescriptionTemplat
} }
public DmpDescriptionTemplateQuery disableTracking() { public DmpDescriptionTemplateQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -247,7 +247,7 @@ public class DmpQuery extends QueryBase<DmpEntity> {
} }
public DmpQuery disableTracking() { public DmpQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -122,7 +122,7 @@ public class DmpReferenceQuery extends QueryBase<DmpReferenceEntity> {
} }
public DmpReferenceQuery disableTracking() { public DmpReferenceQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -168,7 +168,7 @@ public class DmpUserQuery extends QueryBase<DmpUserEntity> {
} }
public DmpUserQuery disableTracking() { public DmpUserQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -166,7 +166,7 @@ public class EntityDoiQuery extends QueryBase<EntityDoiEntity> {
} }
public EntityDoiQuery disableTracking() { public EntityDoiQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -110,7 +110,7 @@ public class LanguageQuery extends QueryBase<LanguageEntity> {
} }
public LanguageQuery disableTracking() { public LanguageQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -144,7 +144,7 @@ public class LockQuery extends QueryBase<LockEntity> {
} }
public LockQuery disableTracking() { public LockQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -93,7 +93,7 @@ public class PrefillingSourceQuery extends QueryBase<PrefillingSourceEntity> {
} }
public PrefillingSourceQuery disableTracking() { public PrefillingSourceQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -126,7 +126,7 @@ public class QueueInboxQuery extends QueryBase<QueueInboxEntity> {
} }
public QueueInboxQuery disableTracking() { public QueueInboxQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -132,7 +132,7 @@ public class QueueOutboxQuery extends QueryBase<QueueOutboxEntity> {
} }
public QueueOutboxQuery disableTracking() { public QueueOutboxQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -184,7 +184,7 @@ public class ReferenceQuery extends QueryBase<ReferenceEntity> {
} }
public ReferenceQuery disableTracking() { public ReferenceQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -111,7 +111,7 @@ public class ReferenceTypeQuery extends QueryBase<ReferenceTypeEntity> {
} }
public ReferenceTypeQuery disableTracking() { public ReferenceTypeQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -118,7 +118,7 @@ public class StorageFileQuery extends QueryBase<StorageFileEntity> {
} }
public StorageFileQuery disableTracking() { public StorageFileQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -128,7 +128,7 @@ public class SupportiveMaterialQuery extends QueryBase<SupportiveMaterialEntity>
} }
public SupportiveMaterialQuery disableTracking() { public SupportiveMaterialQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -164,7 +164,7 @@ public class TagQuery extends QueryBase<TagEntity> {
} }
public TagQuery disableTracking() { public TagQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -126,7 +126,7 @@ public class TenantConfigurationQuery extends QueryBase<TenantConfigurationEntit
} }
public TenantConfigurationQuery disableTracking() { public TenantConfigurationQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -113,7 +113,7 @@ public class TenantQuery extends QueryBase<TenantEntity> {
} }
public TenantQuery disableTracking() { public TenantQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -118,7 +118,7 @@ public class TenantUserQuery extends QueryBase<TenantUserEntity> {
} }
public TenantUserQuery disableTracking() { public TenantUserQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -139,7 +139,7 @@ public class UserContactInfoQuery extends QueryBase<UserContactInfoEntity> {
} }
public UserContactInfoQuery disableTracking() { public UserContactInfoQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -102,7 +102,7 @@ public class UserCredentialQuery extends QueryBase<UserCredentialEntity> {
} }
public UserCredentialQuery disableTracking() { public UserCredentialQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -127,7 +127,7 @@ public class UserDescriptionTemplateQuery extends QueryBase<UserDescriptionTempl
} }
public UserDescriptionTemplateQuery disableTracking() { public UserDescriptionTemplateQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -131,7 +131,7 @@ public class UserQuery extends QueryBase<UserEntity> {
} }
public UserQuery disableTracking() { public UserQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -129,7 +129,7 @@ public class UserRoleQuery extends QueryBase<UserRoleEntity> {
} }
public UserRoleQuery disableTracking() { public UserRoleQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -133,7 +133,7 @@ public class UserSettingsQuery extends QueryBase<UserSettingsEntity> {
} }
public UserSettingsQuery disableTracking() { public UserSettingsQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -75,7 +75,7 @@ export class DescriptionEditorComponent extends BaseEditor<DescriptionEditorMode
pageToFieldSetMap: Map<string, DescriptionFieldIndicator[]> = new Map<string, DescriptionFieldIndicator[]>(); pageToFieldSetMap: Map<string, DescriptionFieldIndicator[]> = new Map<string, DescriptionFieldIndicator[]>();
private initialTemplateId: Guid; private initialTemplateId: string = Guid.EMPTY;
constructor( constructor(
// BaseFormEditor injected dependencies // BaseFormEditor injected dependencies
@ -190,7 +190,7 @@ export class DescriptionEditorComponent extends BaseEditor<DescriptionEditorMode
try { try {
this.editorModel = data ? new DescriptionEditorModel().fromModel(data, data.descriptionTemplate) : new DescriptionEditorModel(); this.editorModel = data ? new DescriptionEditorModel().fromModel(data, data.descriptionTemplate) : new DescriptionEditorModel();
this.item = data; this.item = data;
this.initialTemplateId = data.descriptionTemplate.id; this.initialTemplateId = data?.descriptionTemplate?.id?.toString();
if (data && data.dmpDescriptionTemplate?.sectionId && data.dmp?.blueprint?.definition?.sections?.length > 0 && data.dmp?.descriptions?.length > 0) { if (data && data.dmpDescriptionTemplate?.sectionId && data.dmp?.blueprint?.definition?.sections?.length > 0 && data.dmp?.descriptions?.length > 0) {
const section = data.dmp?.blueprint?.definition?.sections.find(x => x.id == data.dmpDescriptionTemplate?.sectionId); const section = data.dmp?.blueprint?.definition?.sections.find(x => x.id == data.dmpDescriptionTemplate?.sectionId);
if (section.hasTemplates) { if (section.hasTemplates) {
@ -663,7 +663,7 @@ export class DescriptionEditorComponent extends BaseEditor<DescriptionEditorMode
.pipe(takeUntil(this._destroyed)) .pipe(takeUntil(this._destroyed))
.subscribe(descriptionTemplateId => { .subscribe(descriptionTemplateId => {
if (descriptionTemplateId) { if (descriptionTemplateId) {
if (descriptionTemplateId === this.initialTemplateId) return; if (this.initialTemplateId && this.initialTemplateId != '' && descriptionTemplateId === this.initialTemplateId) return;
this.descriptionTemplateValueChanged(descriptionTemplateId); this.descriptionTemplateValueChanged(descriptionTemplateId);
} }
}); });
@ -679,7 +679,7 @@ export class DescriptionEditorComponent extends BaseEditor<DescriptionEditorMode
this.descriptionTemplateService.getSingle(descriptionTemplateId, DescriptionEditorResolver.descriptionTemplateLookupFields()).pipe(takeUntil(this._destroyed)) this.descriptionTemplateService.getSingle(descriptionTemplateId, DescriptionEditorResolver.descriptionTemplateLookupFields()).pipe(takeUntil(this._destroyed))
.subscribe(descriptionTemplate => { .subscribe(descriptionTemplate => {
this.initialTemplateId = descriptionTemplateId; this.initialTemplateId = descriptionTemplateId.toString();
this.editorModel.properties = new DescriptionPropertyDefinitionEditorModel(this.editorModel.validationErrorModel).fromModel(null, descriptionTemplate, null); this.editorModel.properties = new DescriptionPropertyDefinitionEditorModel(this.editorModel.validationErrorModel).fromModel(null, descriptionTemplate, null);
this.formGroup.setControl('properties', this.editorModel.buildProperties()); this.formGroup.setControl('properties', this.editorModel.buildProperties());
this.item.descriptionTemplate = descriptionTemplate; this.item.descriptionTemplate = descriptionTemplate;
@ -693,7 +693,7 @@ export class DescriptionEditorComponent extends BaseEditor<DescriptionEditorMode
this.registerFormListeners(); this.registerFormListeners();
}, },
error => { error => {
this.formGroup.get('descriptionTemplateId').setValue(this.initialTemplateId); this.formGroup.get('descriptionTemplateId').setValue(this.initialTemplateId && this.initialTemplateId != '' ? this.initialTemplateId : null);
this.httpErrorHandlingService.handleBackedRequestError(error); this.httpErrorHandlingService.handleBackedRequestError(error);
}); });
} }

View File

@ -162,7 +162,7 @@ public class InAppNotificationQuery extends QueryBase<InAppNotificationEntity> {
} }
public InAppNotificationQuery disableTracking() { public InAppNotificationQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -212,7 +212,7 @@ public class NotificationQuery extends QueryBase<NotificationEntity> {
} }
public NotificationQuery disableTracking() { public NotificationQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -151,7 +151,7 @@ public class NotificationTemplateQuery extends QueryBase<NotificationTemplateEnt
} }
public NotificationTemplateQuery disableTracking() { public NotificationTemplateQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -126,7 +126,7 @@ public class QueueInboxQuery extends QueryBase<QueueInboxEntity> {
} }
public QueueInboxQuery disableTracking() { public QueueInboxQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -132,7 +132,7 @@ public class QueueOutboxQuery extends QueryBase<QueueOutboxEntity> {
} }
public QueueOutboxQuery disableTracking() { public QueueOutboxQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -125,7 +125,7 @@ public class TenantConfigurationQuery extends QueryBase<TenantConfigurationEntit
} }
public TenantConfigurationQuery disableTracking() { public TenantConfigurationQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -69,7 +69,7 @@ public class TenantQuery extends QueryBase<TenantEntity> {
} }
public TenantQuery disableTracking() { public TenantQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -120,7 +120,7 @@ public class TenantUserQuery extends QueryBase<TenantUserEntity> {
} }
public TenantUserQuery disableTracking() { public TenantUserQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -160,7 +160,7 @@ public class UserContactInfoQuery extends QueryBase<UserContactInfoEntity> {
} }
public UserContactInfoQuery disableTracking() { public UserContactInfoQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -114,7 +114,7 @@ public class UserCredentialQuery extends QueryBase<UserCredentialEntity> {
} }
public UserCredentialQuery disableTracking() { public UserCredentialQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -133,7 +133,7 @@ public class UserNotificationPreferenceQuery extends QueryBase<UserNotificationP
} }
public UserNotificationPreferenceQuery disableTracking() { public UserNotificationPreferenceQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -83,7 +83,7 @@ public class UserQuery extends QueryBase<UserEntity> {
public UserQuery enableTracking() { public UserQuery enableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -131,7 +131,7 @@ public class UserRoleQuery extends QueryBase<UserRoleEntity> {
} }
public UserRoleQuery disableTracking() { public UserRoleQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }