Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit c2356dc3 authored by Joze RIHTARSIC's avatar Joze RIHTARSIC
Browse files

Fix sql migration scrip for mysql

UI disable domain item if is not configured properly
parent 421e7dec
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@
(selectionChange)="onDomainSelectionChanged($event)"
style="height: 200px; overflow-y: scroll; overflow-x: auto;">
<mat-list-option *ngFor="let domain of lookups.cachedDomainList" [value]='domain'
style="max-width: 450px !important; word-wrap: break-word !important; height: auto; min-height: 30px !important;">
style="max-width: 450px !important; word-wrap: break-word !important; height: auto; min-height: 30px !important;" [disabled]="!isDomainProperlyConfigured(domain)">
{{domain.domainCode}} ({{domain.smlSubdomain}})
</mat-list-option>
</mat-selection-list>
......
......@@ -132,6 +132,15 @@ export class ServiceGroupDetailsDialogComponent implements OnInit {
this.changeDetector.detectChanges()
}
isDomainProperlyConfigured(domain: DomainRo){
if (this.lookups.cachedApplicationInfo.smlIntegrationOn) {
return domain.smlSmpId && (domain.smlClientKeyAlias || domain.smlClientCertHeader);
} else {
return true;
}
}
submitForm() {
this.checkValidity(this.dialogForm);
......
......@@ -52,7 +52,7 @@ alter table smp_user rename to SMP_USER_BCK;
SML_SMP_ID varchar(256) CHARACTER SET utf8 COLLATE utf8_bin,
SML_SUBDOMAIN varchar(256) CHARACTER SET utf8 COLLATE utf8_bin,
SML_REGISTERED bit,
SML_BLUE_COAT_AUTH bit;
SML_BLUE_COAT_AUTH bit,
primary key (ID)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
......@@ -70,7 +70,7 @@ alter table smp_user rename to SMP_USER_BCK;
SML_SMP_ID varchar(256) CHARACTER SET utf8 COLLATE utf8_bin,
SML_SUBDOMAIN varchar(256) CHARACTER SET utf8 COLLATE utf8_bin,
SML_REGISTERED bit,
SML_BLUE_COAT_AUTH bit;
SML_BLUE_COAT_AUTH bit,
primary key (ID, REV)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
......
......@@ -13,10 +13,10 @@ alter table SMP_USER rename to SMP_USER_BCK;
-- ---------------------------------------------------------------------------------------------------------
create sequence SMP_DOMAIN_SEQ start with 1 increment by 1;
create sequence SMP_REVISION_SEQ start with 1 increment by 1;
create sequence SMP_SERVICE_GROUP_DOMAIN_SEQ start with 1 increment by 50;
create sequence SMP_SERVICE_GROUP_SEQ start with 1 increment by 50;
create sequence SMP_SERVICE_METADATA_SEQ start with 1 increment by 50;
create sequence SMP_USER_SEQ start with 1 increment by 50;
create sequence SMP_SERVICE_GROUP_DOMAIN_SEQ start with 1 increment by 1;
create sequence SMP_SERVICE_GROUP_SEQ start with 1 increment by 1;
create sequence SMP_SERVICE_METADATA_SEQ start with 1 increment by 1;
create sequence SMP_USER_SEQ start with 1 increment by 1;
create table SMP_CERTIFICATE (
ID number(19,0) not null,
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment