Commit f7202046 authored by Łukasz Szymański's avatar Łukasz Szymański
Browse files

changing view to display info about Jobs

parent a6fe74d0
Pipeline #14898 passed with stages
in 7 minutes and 37 seconds
......@@ -23,6 +23,7 @@ build-ui-docker:
- rc3.1
- morphemic-rc1.5
- feature-byon-proactive-support
- feature-mor-20-dev
image: docker:19.03.1
services:
- docker:19.03.1-dind
......
import {Component, OnInit, ViewChild} from '@angular/core';
import {DeploymentDetailsService} from '../service/deployment-details.service';
import {JobCloudiator} from '../model/job-cloudiator';
import {JobMelodic} from '../model/job-melodic';
import {MatPaginator, MatSnackBar, MatSort, MatTableDataSource} from '@angular/material';
@Component({
......@@ -12,10 +12,10 @@ export class JobListComponent implements OnInit {
panelOpenState = false;
loadingJobListInProgress = false;
jobList: JobCloudiator[];
jobList: JobMelodic[];
data: MatTableDataSource<JobCloudiator>;
displayedColumns: string[] = ['no', 'name', 'id', 'owner', 'properties'];
data: MatTableDataSource<JobMelodic>;
displayedColumns: string[] = ['no', 'name', 'id', 'submittedJobId', 'submittedJobType'];
@ViewChild(MatPaginator) paginator: MatPaginator;
@ViewChild(MatSort) sort: MatSort;
......@@ -35,10 +35,10 @@ export class JobListComponent implements OnInit {
});
}
updateData(jobsData: JobCloudiator[]) {
updateData(jobsData: JobMelodic[]) {
this.loadingJobListInProgress = false;
this.jobList = jobsData;
this.data = new MatTableDataSource<JobCloudiator>(this.jobList);
this.data = new MatTableDataSource<JobMelodic>(this.jobList);
this.data.paginator = this.paginator;
this.data.sort = this.sort;
}
......
export class JobCloudiator {
name: string;
id: string;
owner: string;
tasks: Array<any>;
communications: Array<any>;
requirements: Array<any>;
optimization: any;
}
export class JobMelodic {
name: string;
id: string;
submittedJobId: bigint;
submittedJobType: string
tasks: Array<any>;
}
......@@ -6,7 +6,7 @@ import {ProcessCloudiator} from '../model/process-cloudiator';
import {tap} from 'rxjs/operators';
import {NodeCloudiator} from '../../../../application/model/node-cloudiator';
import {QueueCloudiator} from '../model/queue-cloudiator';
import {JobCloudiator} from '../model/job-cloudiator';
import {JobMelodic} from '../model/job-melodic';
import {ScheduleCloudiator} from '../model/schedule-cloudiator';
import {MonitorCloudiator} from '../model/monitor-cloudiator';
......@@ -48,10 +48,10 @@ export class DeploymentDetailsService {
);
}
getJobCloudiatorList(): Observable<Array<JobCloudiator>> {
getJobCloudiatorList(): Observable<Array<JobMelodic>> {
const requestUrl = `${this.apiUrl}/job`;
return this.http.get(requestUrl, httpOptions).pipe(
tap((response: Array<JobCloudiator>) => console.log(`Response from cloudiator jobs list with ${response.length} elements`),
tap((response: Array<JobMelodic>) => console.log(`Response from cloudiator jobs list with ${response.length} elements`),
e => console.log('Error by getting cloudiator job list', e))
);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment