Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Clear cache and store #797

Merged
merged 10 commits into from
Jul 13, 2018
Merged

Clear cache and store #797

merged 10 commits into from
Jul 13, 2018

Conversation

bjoernricks
Copy link
Contributor

No description provided.

@bjoernricks bjoernricks requested a review from swaterkamp as a code owner July 13, 2018 11:29
The caches aren't used inside of the Gmp class. Therefore they shouldn't
be stored within Gmp.
Also add debug output when clearing caches.
Call listeners on gmp.logout.
The catch clause can never occur.
Change the current state to be empty if the clear store action is
dispatched. This will pass the empty state to all reducers and therefore
re-initalize the complete state to the defaults from the reducers.
Add gmp logout listener in app to clear all caches and also the redux
store on logout.
@codecov
Copy link

codecov bot commented Jul 13, 2018

Codecov Report

Merging #797 into master will decrease coverage by <.01%.
The diff coverage is 3.12%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #797      +/-   ##
=========================================
- Coverage    6.78%   6.78%   -0.01%     
=========================================
  Files         780     781       +1     
  Lines       25967   25987      +20     
  Branches     5832    5818      -14     
=========================================
+ Hits         1762    1763       +1     
- Misses      21753   21771      +18     
- Partials     2452    2453       +1
Impacted Files Coverage Δ
gsa/src/web/components/bar/titlebar.js 0% <ø> (ø) ⬆️
gsa/src/web/store/reducers.js 0% <0%> (ø) ⬆️
gsa/src/gmp/gmp.js 1.16% <0%> (-0.09%) ⬇️
gsa/src/web/app.js 0% <0%> (ø) ⬆️
gsa/src/web/store/actions.js 0% <0%> (ø)
gsa/src/gmp/cache.js 2.63% <33.33%> (+2.63%) ⬆️

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 05e79eb...ed55c96. Read the comment docs.

@swaterkamp swaterkamp merged commit 0aac016 into greenbone:master Jul 13, 2018
@bjoernricks bjoernricks deleted the clear-cache-and-store branch July 13, 2018 11:41
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants