Skip to content

Commit

Permalink
Merge branch 'dev' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz committed Jul 3, 2023
2 parents ca6e0e2 + 33727ea commit cadc583
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 9 deletions.
4 changes: 3 additions & 1 deletion src/app/projectmanagement/overview.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,9 @@ <h3>
*ngIf="!project_application?.project_application_openstack_project && isAbleToStart()"
class="btn btn-outline-success"
[href]="
project_application?.migrated_simple_vm_resources ? NEW_SVM_PORTAL_LINK : '#/virtualmachines/newVM'
project_application?.migrated_simple_vm_resources
? NEW_SVM_KEYCLOAK_LOGIN
: '#/virtualmachines/newVM'
"
>Start a VM</a
>
Expand Down
4 changes: 2 additions & 2 deletions src/app/projectmanagement/overview.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import {
STATUS_LINK,
WIKI_MEMBER_MANAGEMENT,
WIKI_PUBLICATIONS,
NEW_SVM_PORTAL_LINK,
NEW_SVM_KEYCLOAK_LOGIN,
} from '../../links/links';
import { Doi } from '../applications/doi/doi';
import { ApiSettings } from '../api-connector/api-settings.service';
Expand Down Expand Up @@ -81,7 +81,7 @@ export class OverviewComponent extends ApplicationBaseClassComponent implements
SIMPLE_VM_LINK: string = SIMPLE_VM_LINK;
OPENSTACK_LINK: string = OPENSTACK_LINK;
STATUS_LINK: string = STATUS_LINK;
NEW_SVM_PORTAL_LINK: string = NEW_SVM_PORTAL_LINK;
NEW_SVM_KEYCLOAK_LOGIN: string = NEW_SVM_KEYCLOAK_LOGIN;
@ViewChild('creditsChart') creditsCanvas: ElementRef;
@ViewChild('publicKeyModal') publicKeyModal: any;
publicKeyToShow: string = '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h5 class="alert-heading">Project migrated to new SimpleVM platform</h5>
<hr />
<p class="mb-0">
You can get to the new platform
<a class="alert-link" href="{{ NEW_SVM_PORTAL_LINK }}" target="_blank" rel="noopener noreferrer">here</a>.
<a class="alert-link" href="{{ NEW_SVM_KEYCLOAK_LOGIN }}" target="_blank" rel="noopener noreferrer">here</a>.
</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
Component, OnInit, OnDestroy, Input,
} from '@angular/core';
import { Subscription } from 'rxjs';
import { NEW_SVM_PORTAL_LINK, WIKI_SVM_MIGRATION_LINK } from '../../../../links/links';
import { NEW_SVM_KEYCLOAK_LOGIN, WIKI_SVM_MIGRATION_LINK } from '../../../../links/links';

@Component({
selector: 'app-migration-information',
Expand All @@ -14,7 +14,7 @@ export class MigrationInformationComponent implements OnInit, OnDestroy {

WIKI_SVM_MIGRATION_LINK: string = WIKI_SVM_MIGRATION_LINK;

NEW_SVM_PORTAL_LINK: string = NEW_SVM_PORTAL_LINK;
NEW_SVM_KEYCLOAK_LOGIN: string = NEW_SVM_KEYCLOAK_LOGIN;

@Input() isCreationPage: boolean = false;
@Input() affectedProjects: string[] = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,17 +377,17 @@ export class AddClusterComponent implements OnInit, OnDestroy {
}

startCluster(): void {
const re: RegExp = /\+/gi;
this.cluster_error = null;
this.cluster_id = null;

const masterFlavor: string = this.selectedMasterFlavor.name.replace(re, '%2B');
// not needed anymore when using body directly in POST request
// const masterFlavor: string = this.selectedMasterFlavor.name.replace(re, '%2B');
const additional_elixir_ids: string[] = this.members_to_add.map((mem: ProjectMember): string => mem.elixirId);

this.subscription.add(
this.virtualmachineservice
.startCluster(
masterFlavor,
this.selectedMasterFlavor.name,
this.selectedMasterImage,
this.selectedWorkerBatches,
this.selectedProject[1],
Expand Down
1 change: 1 addition & 0 deletions src/environments/environment.custom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ export const environment: any = {
login: `https://${API_HOST}/portal/api/v0/loggedUser/`,
webapp: `https://${API_HOST}/portal/webapp/`,
new_svm_webapp: NEW_SIMPLE_VM,
new_svm_keycloak_login: `${NEW_SIMPLE_VM}/accounts/keycloak/login/?process=login`,
matomoServer: '//cloud.denbi.de/matomo/',
};
1 change: 1 addition & 0 deletions src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ export const environment: any = {
login: 'http://localhost:8000/api/v0/loggedUser/',
webapp: 'http://localhost:8001/',
new_svm_webapp: '',

matomoServer: '',
};
1 change: 1 addition & 0 deletions src/links/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const WIKI_PERSISTENT_TERMINAL_LINK = `${environment.WIKI_PRE}Tutorials/P
export const WIKI_SVM_MIGRATION_LINK = `${environment.WIKI_PRE}`;

export const NEW_SVM_PORTAL_LINK = `${environment.new_svm_webapp}`;
export const NEW_SVM_KEYCLOAK_LOGIN: string = `${environment.new_svm_keycloak_login}`;

export const TESTIMONIAL_PAGE_LINK: string = `${environment.wagtailBase}about/testimonials/`;

Expand Down

0 comments on commit cadc583

Please sign in to comment.