Skip to content
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

Gmp store logging #1684

Merged
merged 5 commits into from
Oct 11, 2019
Merged

Gmp store logging #1684

merged 5 commits into from
Oct 11, 2019

Conversation

bjoernricks
Copy link
Contributor

@bjoernricks bjoernricks commented Oct 10, 2019

Checklist:

The code is easier to read if all variables a set and checked while
beeing sorted by name.
Local storage always stores all values as strings. Therefore convert
values to string in fake storage for testing.
The setting is a boolean value that is stored persistently in the
browsers local storage.
With gmp.settings.enableStoreDebugLog the logging of the redux store can
be enabled or disabled explicitly. After setting the value to true or
value the browser needs to be reloaded to apply the store debugging.

The setting can be reset by calling gmp.settings.enableStoreDebugLog =
undefined

If the setting is undefined the store debugging is also enabled if the
log level is set to debug (gmp.settings.loglevel = 'debug').
@bjoernricks bjoernricks marked this pull request as ready for review October 10, 2019 14:56
@bjoernricks bjoernricks requested a review from a team October 10, 2019 14:56
@codecov
Copy link

codecov bot commented Oct 10, 2019

Codecov Report

Merging #1684 into gsa-8.0 will increase coverage by 0.02%.
The diff coverage is 83.33%.

Impacted file tree graph

@@             Coverage Diff             @@
##           gsa-8.0    #1684      +/-   ##
===========================================
+ Coverage     39.5%   39.52%   +0.02%     
===========================================
  Files          965      965              
  Lines        22082    22095      +13     
  Branches      6208     6237      +29     
===========================================
+ Hits          8723     8734      +11     
- Misses       12096    12098       +2     
  Partials      1263     1263
Impacted Files Coverage Δ
gsa/src/web/app.js 0% <0%> (ø) ⬆️
gsa/src/gmp/gmpsettings.js 100% <100%> (ø) ⬆️

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 ae11eb1...0ee6b5a. Read the comment docs.

@swaterkamp swaterkamp merged commit 733bc11 into greenbone:gsa-8.0 Oct 11, 2019
@bjoernricks bjoernricks deleted the gmp-store-logging branch October 11, 2019 09:30
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.

2 participants