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

Get vts metadata from redis and reduce stored data in cache. #205

Merged
merged 6 commits into from
Mar 4, 2020

Conversation

jjnicola
Copy link
Member

@jjnicola jjnicola commented Mar 2, 2020

Depends on PR greenbone/ospd#216. After merging, Pipfile.lock must be updated.

The iterator uses get_single_vt() to get each vt from redis.
It returns a tuple(vt_id, vt_values_dict), as expected for ospd.

Improve readability of load_vts(), spliting and using the created get_single_vt()
Also, load_vts() loads now the necessary to run a scan, making the vt cache smaller.
Also remove OID from the vt dict, since the key is already the OID
@jjnicola jjnicola added the Work in progress Waiting for Feature Specification validation. label Mar 2, 2020
ospd_openvas/daemon.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Mar 4, 2020

Codecov Report

Merging #205 into master will increase coverage by 0.1%.
The diff coverage is 80.41%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #205     +/-   ##
=========================================
+ Coverage   77.27%   77.38%   +0.1%     
=========================================
  Files           5        5             
  Lines        1219     1260     +41     
=========================================
+ Hits          942      975     +33     
- Misses        277      285      +8
Impacted Files Coverage Δ
ospd_openvas/daemon.py 63.82% <80.41%> (+0.91%) ⬆️

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 676f44b...c759e66. Read the comment docs.

@jjnicola jjnicola removed the Work in progress Waiting for Feature Specification validation. label Mar 4, 2020
@jjnicola jjnicola merged commit d019f63 into greenbone:master Mar 4, 2020
@jjnicola jjnicola deleted the smaller-cache branch March 4, 2020 11:33
ArnoStiefvater pushed a commit to ArnoStiefvater/ospd-openvas that referenced this pull request Oct 25, 2021
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