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

FIX: threshold expert: configure timeout using Redis cache mixin #2155

Merged
merged 3 commits into from
Mar 6, 2022

Conversation

creideiki
Copy link
Contributor

When the Redis cache functionality was moved to a mixin, the code that
set the cache timeout from the "timeout" parameter was removed, but
the error checking and documentation remained. Change documentation and
configuration checking code to refer to the standard redis_cache_ttl
parameter instead.

Also remove some redundant default values which are now set in the
cache mixin.

Fixes: 2a1b126 ("FIX: Use CacheMixins instead of lib.cache")

When the Redis cache functionality was moved to a mixin, the code that
set the cache timeout from the "timeout" parameter was removed, but
the error checking and documentation remained. Change documentation and
configuration checking code to refer to the standard redis_cache_ttl
parameter instead.

Also remove some redundant default values which are now set in the
cache mixin.

Fixes: 2a1b126 ("FIX: Use CacheMixins instead of lib.cache")

Signed-off-by: Karl-Johan Karlsson <[email protected]>
@sebix sebix self-requested a review March 5, 2022 20:24
@sebix sebix added this to the 3.1.0 milestone Mar 5, 2022
@sebix sebix added bug Indicates an unexpected problem or unintended behavior component: bots labels Mar 5, 2022
@sebix sebix self-assigned this Mar 5, 2022
add note to news and changelog,
make parameter more clear in bots documentation section
@codecov-commenter
Copy link

codecov-commenter commented Mar 5, 2022

Codecov Report

Merging #2155 (ce60fd4) into develop (4de6607) will decrease coverage by 0.00%.
The diff coverage is 33.33%.

@@             Coverage Diff             @@
##           develop    #2155      +/-   ##
===========================================
- Coverage    76.34%   76.34%   -0.01%     
===========================================
  Files          441      441              
  Lines        23652    23649       -3     
  Branches      3739     3739              
===========================================
- Hits         18058    18055       -3     
  Misses        4857     4857              
  Partials       737      737              
Impacted Files Coverage Δ
intelmq/bots/experts/jinja/expert.py 75.75% <0.00%> (ø)
intelmq/bots/experts/threshold/expert.py 82.85% <50.00%> (-1.36%) ⬇️

@sebix
Copy link
Member

sebix commented Mar 5, 2022

For reasons I don't understand the tests are now failing :/

jinja2 version 3 did not introduce breaking changes, so we can remove
the version restriction
add the requirement also for the jinja expert
fix error message on the required library in the jinja expert
@sebix sebix merged commit ce60fd4 into certtools:develop Mar 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior component: bots
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants