-
Notifications
You must be signed in to change notification settings - Fork 98
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
swaterkamp
merged 10 commits into
greenbone:master
from
bjoernricks:clear-cache-and-store
Jul 13, 2018
Merged
Clear cache and store #797
swaterkamp
merged 10 commits into
greenbone:master
from
bjoernricks:clear-cache-and-store
Jul 13, 2018
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 Report
@@ 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
Continue to review full report at Codecov.
|
swaterkamp
approved these changes
Jul 13, 2018
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.