-
Notifications
You must be signed in to change notification settings - Fork 1
feat: TT-314 Synchronize local projects with Server projects #729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #729 +/- ##
==========================================
+ Coverage 95.24% 95.37% +0.13%
==========================================
Files 106 107 +1
Lines 2206 2268 +62
Branches 169 173 +4
==========================================
+ Hits 2101 2163 +62
Misses 61 61
Partials 44 44
Continue to review full report at Codecov.
|
69e76f4
to
f8eaa4c
Compare
144166e
to
dc84461
Compare
Kudos, SonarCloud Quality Gate passed!
|
I reviewed the changes you made and tested them in the development environment with test data, using the script to generate test data in the local database. Test entries were generated and some projects were disabled. As a result, the projects were no longer presented in the Time Clock and Add new entry forms and removed from local storage. Very good job @jcalarcon98. |
Description
Currently there is the functionality to store recent projects in the LocalStorage, this feature works correctly, however, it does not keep an update with the data that exists on the server, that is, if a project/customer is deactivated and if the person had it saved in the LocalStorage of his browser, he will still have it available and will be able to mark entries with that project, even though the project/customer has already been deactivated.
Solution
With this PR a synchronization is established between the user's projects in the LocalStorage and the projects returned by the server. For example, if the user has a project in the LocalStorage that has been disabled, it will be removed since it does not exist in the server.