No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
b01039a
... +18 ...
e8eaf9e
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
2 | 2 | import { BsModalRef } from 'ngx-bootstrap'; |
|
3 | 3 | import { FormBuilder, FormControl, FormGroup } from '@angular/forms'; |
|
4 | 4 | import { TasksService } from '../../tasks.service'; |
|
5 | - | import { takeUntil } from 'rxjs/operators'; |
|
5 | + | import { finalize, takeUntil } from 'rxjs/operators'; |
|
6 | 6 | import { Subject } from 'rxjs'; |
|
7 | 7 | import { NotificationService } from '../../../shared/services/notification.service'; |
|
8 | 8 | import { LoggerService } from '../../../shared/services/logger.service'; |
107 | 107 | } else { |
|
108 | 108 | this.blockerService.lock(); |
|
109 | 109 | this.tasksService.createDefinition({ name: this.taskName.value, definition: this.dsl }) |
|
110 | - | .pipe(takeUntil(this.ngUnsubscribe$)) |
|
110 | + | .pipe(takeUntil(this.ngUnsubscribe$), finalize(() => this.blockerService.unlock())) |
|
111 | 111 | .subscribe( |
|
112 | 112 | () => { |
|
113 | 113 | this.loggerService.log('Succesfully created task', this.taskName.value, this.dsl); |
120 | 120 | (error) => { |
|
121 | 121 | this.notificationService.error(AppError.is(error) ? error.getMessage() : error); |
|
122 | 122 | this.bsModalRef.hide(); |
|
123 | - | }, () => { |
|
124 | - | this.blockerService.unlock(); |
|
125 | 123 | } |
|
126 | 124 | ); |
|
127 | 125 | } |
20 | 20 | * Provides {@link StreamDeployConfig} related services. |
|
21 | 21 | * |
|
22 | 22 | * @author Damien Vitrac |
|
23 | + | * @author Janne Valkealahti |
|
23 | 24 | */ |
|
24 | 25 | @Injectable() |
|
25 | 26 | export class StreamDeployService { |
150 | 151 | return { |
|
151 | 152 | key: platform.name, |
|
152 | 153 | name: platform.name, |
|
153 | - | type: platform.type |
|
154 | + | type: platform.type, |
|
155 | + | options: platform.options |
|
154 | 156 | }; |
|
155 | 157 | }) |
|
156 | 158 | }; |
2 | 2 | import { StreamsService } from '../streams.service'; |
|
3 | 3 | import { StreamDefinition } from '../model/stream-definition'; |
|
4 | 4 | import { BsModalRef } from 'ngx-bootstrap'; |
|
5 | - | import { takeUntil } from 'rxjs/operators'; |
|
5 | + | import { finalize, takeUntil } from 'rxjs/operators'; |
|
6 | 6 | import { Modal } from '../../shared/components/modal/modal-abstract'; |
|
7 | 7 | import { Observable, Subject } from 'rxjs'; |
|
8 | 8 | import { NotificationService } from '../../shared/services/notification.service'; |
83 | 83 | this.loggerService.log(`Proceeding to deploy ${this.streamDefinitions.length} stream definition(s).`, this.streamDefinitions); |
|
84 | 84 | this.blockerService.lock(); |
|
85 | 85 | this.streamsService.deployMultipleStreamDefinitions(this.streamDefinitions) |
|
86 | - | .pipe(takeUntil(this.ngUnsubscribe$)) |
|
86 | + | .pipe(takeUntil(this.ngUnsubscribe$), finalize(() => this.blockerService.unlock())) |
|
87 | 87 | .subscribe((data) => { |
|
88 | 88 | this.notificationService.success(`${data.length} stream definition(s) deployed.`); |
|
89 | 89 | this.confirm.emit(data); |
|
90 | 90 | this.cancel(); |
|
91 | 91 | }, (error) => { |
|
92 | 92 | this.notificationService.error(AppError.is(error) ? error.getMessage() : error); |
|
93 | - | }, () => { |
|
94 | - | this.blockerService.unlock(); |
|
95 | 93 | }); |
|
96 | 94 | } |
|
97 | 95 |
Learn more Showing 8 files with coverage changes found.
ui/src/app/shared/components/list/list-bar.component.ts
ui/src/app/tasks/task-definitions/task-definitions.component.ts
ui/src/app/streams/streams/streams.component.ts
ui/src/app/tasks/components/flo/render.service.ts
ui/src/app/shared/flo/properties-groups/properties-groups-dialog.component.ts
ui/src/app/tasks/components/flo/support/layout.ts
ui/src/app/streams/stream-deploy/stream-deploy.service.ts
ui/src/app/streams/stream-deploy/builder/builder.component.ts
Files | Coverage |
---|---|
ui/src | 0.68% 72.71% |
Project Totals (244 files) | 72.71% |
e8eaf9e
17eb100
c1b9841
a48e1f6
ca9e411
ec2c06d
dacfab0
de71a2f
dadfcbf
deaec47
cd44565
c1c5ee4
3e13bdf
af2c5fd
25cb637
e523fed
f67a0a0
ec32d66
a88a654
b01039a