Skip to content

Conversation

bytesantiago
Copy link
Contributor

Task

The main idea was to remove the FeatureManagerService service entirely, to avoid direct calls to Azure-toggles when reloading the Time-Tracker application in the browser. Instead, we shall use CookieService. Therefore, in principle, it was necessary to remove FeatureManagerService from everywhere it was used, and also the tests that included the service.

Observation and solution

It was not possible to remove FeatureManagerService entirely, because CookieService depended from it. However, by removing two methods from FeatureManagerService we are achieving our goal which is to avoid calling Azure-toggles every time we reload the webpage. Instead, with the current configuration, we call Azure-toggles just at login, and then, CookieService is used the rest of the session.

@codecov
Copy link

codecov bot commented Aug 25, 2021

Codecov Report

Merging #739 (2b16e33) into master (9a68415) will increase coverage by 0.30%.
The diff coverage is 96.42%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #739      +/-   ##
==========================================
+ Coverage   95.24%   95.54%   +0.30%     
==========================================
  Files         106      106              
  Lines        2206     2247      +41     
  Branches      169      169              
==========================================
+ Hits         2101     2147      +46     
+ Misses         61       57       -4     
+ Partials       44       43       -1     
Impacted Files Coverage Δ
src/app/app-routing.module.ts 100.00% <ø> (ø)
...les/shared/components/sidebar/sidebar.component.ts 90.47% <ø> (-2.12%) ⬇️
...e-toggle-general/feature-toggle-general.service.ts 100.00% <ø> (ø)
.../feature-toggles/feature-toggle-manager.service.ts 100.00% <ø> (ø)
.../components/entry-fields/entry-fields.component.ts 97.18% <ø> (-0.04%) ⬇️
.../components/technologies/technologies.component.ts 85.18% <83.33%> (+0.81%) ⬆️
...ponents/details-fields/details-fields.component.ts 96.40% <100.00%> (+0.16%) ⬆️
...c/app/modules/shared/utils/project-storage.util.ts 100.00% <100.00%> (ø)
...project-list-hover/project-list-hover.component.ts 90.74% <100.00%> (+0.35%) ⬆️
...-entries/components/calendar/calendar.component.ts 95.38% <100.00%> (+0.22%) ⬆️
... and 8 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 ebb65c3...2b16e33. Read the comment docs.

* fix: TT-319 Fix calendar week and day view

* refactor: TT-319 select first day of the month when select on calendar

* refactor: TT-319 Change moment library with date

Co-authored-by: Andrés Soto <edansrock>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@bytesantiago bytesantiago merged commit c5bf7ee into master Aug 30, 2021
@bytesantiago bytesantiago deleted the TT-317-Remove-FeatureManagerService branch August 30, 2021 17:55
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.

5 participants