Skip to content

Conversation

DiegoTinitana
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Apr 29, 2020

Codecov Report

Merging #194 into master will increase coverage by 1.09%.
The diff coverage is 86.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #194      +/-   ##
==========================================
+ Coverage   91.80%   92.90%   +1.09%     
==========================================
  Files          59       60       +1     
  Lines         830      860      +30     
  Branches       50       52       +2     
==========================================
+ Hits          762      799      +37     
+ Misses         46       38       -8     
- Partials       22       23       +1     
Impacted Files Coverage Δ
...s-management/store/activity-management.reducers.ts 95.45% <ø> (+8.49%) ⬆️
...s/project-type-list/project-type-list.component.ts 100.00% <ø> (+18.18%) ⬆️
.../components/project-list/project-list.component.ts 92.85% <ø> (-7.15%) ⬇️
...r-management/store/customer-management.reducers.ts 86.95% <ø> (ø)
.../components/entry-fields/entry-fields.component.ts 90.47% <ø> (ø)
...rc/app/modules/time-clock/store/entry.selectors.ts 100.00% <ø> (+30.00%) ⬆️
...-management/store/customer-management.selectors.ts 35.29% <40.00%> (-0.43%) ⬇️
...anagement/pages/activities-management.component.ts 81.81% <81.81%> (-18.19%) ⬇️
...info/components/create-customer/create-customer.ts 100.00% <100.00%> (+10.25%) ⬆️
...eate-project-type/create-project-type.component.ts 95.45% <100.00%> (+1.01%) ⬆️
... and 13 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a590ed...9db1baf. Read the comment docs.

@@ -28,12 +30,15 @@ export class CreateProjectTypeComponent implements OnInit {
this.projectTypeToEdit = projectType;
this.setDataToUpdate(this.projectTypeToEdit);
});
const getCustomerId$ = this.store.pipe(select(getCustomerId));
getCustomerId$.subscribe((customerId) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add a variable for subscription a remove it with a ngDestroy()

@@ -44,6 +46,10 @@ export class CreateProjectComponent implements OnInit, OnDestroy {
this.projectTypesSubscription = projectsTypes$.subscribe((projectsType) => {
this.projectsTypes = projectsType;
});
const getCustomerId$ = this.store.pipe(select(getCustomerId));
getCustomerId$.subscribe((customerId) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a variable for subscription an remove it in ngDestroy

@DiegoTinitana DiegoTinitana force-pushed the 154_Filter_projects_and_project_types_by_customer branch from fa8ebf2 to 9db1baf Compare April 30, 2020 16:28
@enriquezrene enriquezrene merged commit 60c55ec into master Apr 30, 2020
@enriquezrene enriquezrene deleted the 154_Filter_projects_and_project_types_by_customer branch April 30, 2020 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants