-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added feature to integrate aq entities with 3rd party systems (#123)
* added initial version of feature that provides abilites to add links to tests from others systems * added references to test, issue, testrun * added publish results form * added workflow status support * added publish service to propogate statuses to jira * added ability to add ref on the create issue dialog * added dialog to add/change reference on publish * added returning an empty array if entity id was undefined * added abilities to add/remove ref on the issue create modal * removed redundant components * updated changelog and verion rised to 1.3.0
- Loading branch information
1 parent
cbc9f0a
commit 2b029dc
Showing
79 changed files
with
2,173 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/app/pages/administration/projects/integrations/integrations/integrations.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<div class="contatiner"> | ||
<div class="row"> | ||
<div *ngIf="projects" class="col-md-12 form-row"> | ||
|
||
<div class="col-md-1 p-2"> | ||
Project: | ||
</div> | ||
|
||
<div class="col-md-5 p-2"> | ||
<lookup-autocomplete id="project-selector" [small]=true placeholder="Select Project" | ||
[allowEmptyValue]="false" [propertiesToShow]="['name']" [array]="projects" [model]="selectedProject" | ||
(modelChange)="onProjectChange($event)"></lookup-autocomplete> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<app-integration-systems *ngIf='isProjectSelected()' [projectId]='selectedProject.id'></app-integration-systems> | ||
</div> |
Empty file.
33 changes: 33 additions & 0 deletions
33
src/app/pages/administration/projects/integrations/integrations/integrations.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { ProjectService } from 'src/app/services/project/project.service'; | ||
import { System } from 'src/app/shared/models/integrations/system'; | ||
import { Project } from 'src/app/shared/models/project'; | ||
|
||
@Component({ | ||
selector: 'app-integrations', | ||
templateUrl: './integrations.component.html', | ||
styleUrls: ['./integrations.component.scss'] | ||
}) | ||
export class IntegrationsComponent implements OnInit { | ||
|
||
projects: Project[] = []; | ||
selectedProject: Project; | ||
systems: System[] = []; | ||
|
||
constructor(private projectService: ProjectService) {} | ||
|
||
ngOnInit(): void { | ||
this.projectService.getProjects({}).then(projects => { | ||
this.projects = projects; | ||
this.selectedProject = projects[0]; | ||
}); | ||
} | ||
|
||
onProjectChange($event: Project) { | ||
this.selectedProject = $event; | ||
} | ||
|
||
isProjectSelected(): boolean { | ||
return this.selectedProject != undefined; | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
src/app/pages/administration/projects/integrations/system-view/system-view.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<div class="container row p-2"></div> | ||
<div class="border bg-light rounded p-2"> | ||
<div class="container row"> | ||
<div class="col-md-6 p-2"> | ||
<div class="row p-2"> | ||
<div class="col-md-3 p-2"> | ||
{{system.name}} | ||
</div> | ||
<div class="col-md-6 p-2"> | ||
<a [href]="system.url">{{system.url}}</a> | ||
</div> | ||
<div class="col-md-3 p-2"> | ||
<button id="system-delete" type="submit" class="btn btn-primary btn-sm" | ||
(click)="deleteSystem(system)">Delete</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="container row"> | ||
<div class="col-md-12 p-2"> | ||
<app-tts-status [projectId]="projectId" [system]="system"></app-tts-status> | ||
</div> | ||
</div> | ||
|
||
<div class="container row"> | ||
<div class="col-md-12 p-2"> | ||
<app-workflow-statuses [projectId]="projectId" [system]="system"></app-workflow-statuses> | ||
</div> | ||
</div> | ||
|
||
</div> |
Empty file.
29 changes: 29 additions & 0 deletions
29
src/app/pages/administration/projects/integrations/system-view/system-view.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; | ||
import { SystemService } from 'src/app/services/integrations/system.service'; | ||
import { System } from 'src/app/shared/models/integrations/system'; | ||
|
||
@Component({ | ||
selector: 'app-system-view', | ||
templateUrl: './system-view.component.html', | ||
styleUrls: ['./system-view.component.scss'] | ||
}) | ||
export class SystemViewComponent implements OnInit { | ||
|
||
@Input() projectId: number; | ||
@Input() system: System; | ||
@Output() onDelete = new EventEmitter<System>(); | ||
|
||
constructor( | ||
private systemService: SystemService | ||
) { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
deleteSystem(system: System) { | ||
this.systemService.delete(this.projectId, system.id).subscribe(() => { | ||
this.onDelete.emit(system); | ||
}) | ||
} | ||
|
||
} |
58 changes: 58 additions & 0 deletions
58
...app/pages/administration/projects/integrations/systems/integration-systems.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<form [formGroup]='addSystemForm' (ngSubmit)="addSystem()"> | ||
<div class="form-row"> | ||
|
||
<div class="col-md-1 p-2"> | ||
<select id="system-type" formControlName="type" class="form-control form-control-sm input-lg"> | ||
<option *ngFor="let type of systemTypes" [ngValue]="type" | ||
[attr.selected]="systemTypes.length > 0 ? systemTypes[0] : null"> | ||
{{type.name}}</option> | ||
</select> | ||
<i class="fa fa-caret-down"></i> | ||
</div> | ||
|
||
<div class="col-md-1 p-2"> | ||
<select id="system-tts-type" formControlName="ttsType" class="form-control form-control-sm input-lg"> | ||
<option *ngFor="let ttsType of ttsTypes" [ngValue]="ttsType" | ||
[attr.selected]="ttsTypes.length > 0 ? ttsTypes[0] : null"> | ||
{{ttsType.name}}</option> | ||
</select> | ||
<i class="fa fa-caret-down"></i> | ||
</div> | ||
|
||
<div class="col-md-2 p-2"> | ||
<input id="system-name" formControlName="name" type="text" trim="blur" | ||
class="form-control form-control-sm" placeholder="Name" required> | ||
</div> | ||
|
||
<div class="col-md-3 p-2"> | ||
<input id="system-url" formControlName="url" type="text" trim="blur" | ||
class="form-control form-control-sm" placeholder="URL" required> | ||
</div> | ||
|
||
<div class="col-md-1 p-2"> | ||
<input id="system-username" formControlName="username" type="text" trim="blur" | ||
class="form-control form-control-sm" placeholder="Username" required> | ||
</div> | ||
|
||
<div class="col-md-1 p-2"> | ||
<input id="system-password" formControlName="password" type="password" trim="blur" | ||
class="form-control form-control-sm" placeholder="Password" required> | ||
</div> | ||
|
||
<div class="col-md-2 p-2"> | ||
<input id="system-api-token" formControlName="apiToken" type="text" trim="blur" | ||
class="form-control form-control-sm" placeholder="API Token" required> | ||
</div> | ||
|
||
<div class="col-md-1 p-2"> | ||
<button id="system-add" type="submit" class="btn btn-primary btn-sm" | ||
[disabled]="addSystemForm.invalid">Add</button> | ||
</div> | ||
</div> | ||
</form> | ||
|
||
<app-system-view *ngFor="let system of systems" | ||
[projectId]="projectId" | ||
[system]="system" | ||
(onDelete)="deleteSystem($event)"> | ||
</app-system-view> |
Oops, something went wrong.