crowdsecurity / crowdsec

CrowdSec - the open-source and participative security solution offering crowdsourced protection against malicious IPs and access to the most advanced real-world CTI.
https://crowdsec.net
MIT License
8.8k stars 453 forks source link

`GetActiveDecisionsCount()`and `GetActiveDecisionsTimeLeft()`expr helpers #3013

Closed blotus closed 4 months ago

blotus commented 4 months ago

Closes #2967

github-actions[bot] commented 4 months ago

@blotus: There are no 'kind' label on this PR. You need a 'kind' label to generate the release automatically.

Details I am a bot created to help the [crowdsecurity](https://github.com/crowdsecurity) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/crowdsecurity/crowdsec/blob/master/.github/governance.yml) to understand my behavior and what I can do. If you want to use this for your project, you can check out the [BirthdayResearch/oss-governance-bot](https://github.com/BirthdayResearch/oss-governance-bot) repository.
github-actions[bot] commented 4 months ago

@blotus: There are no area labels on this PR. You can add as many areas as you see fit.

Details I am a bot created to help the [crowdsecurity](https://github.com/crowdsecurity) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/crowdsecurity/crowdsec/blob/master/.github/governance.yml) to understand my behavior and what I can do. If you want to use this for your project, you can check out the [BirthdayResearch/oss-governance-bot](https://github.com/BirthdayResearch/oss-governance-bot) repository.
blotus commented 4 months ago

/kind enhancement

codecov-commenter commented 4 months ago

Codecov Report

Attention: Patch coverage is 53.94737% with 35 lines in your changes are missing coverage. Please review.

Project coverage is 27.51%. Comparing base (b5e5078) to head (a63818d). Report is 5 commits behind head on master.

Files Patch % Lines
pkg/database/decisions.go 64.70% 12 Missing and 6 partials :warning:
pkg/exprhelpers/helpers.go 32.00% 13 Missing and 4 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #3013 +/- ## ========================================== - Coverage 27.53% 27.51% -0.03% ========================================== Files 398 399 +1 Lines 57936 58170 +234 ========================================== + Hits 15955 16007 +52 - Misses 40044 40215 +171 - Partials 1937 1948 +11 ``` | [Flag](https://app.codecov.io/gh/crowdsecurity/crowdsec/pull/3013/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity) | Coverage Δ | | |---|---|---| | [unit-linux](https://app.codecov.io/gh/crowdsecurity/crowdsec/pull/3013/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity) | `34.86% <38.09%> (-0.18%)` | :arrow_down: | | [unit-windows](https://app.codecov.io/gh/crowdsecurity/crowdsec/pull/3013/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity) | `25.56% <53.94%> (-0.03%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.