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

pkg/database: refactor & rename "soft delete" to "expire" #3025

Merged
merged 4 commits into from
Jun 4, 2024

Conversation

mmetc
Copy link
Contributor

@mmetc mmetc commented May 22, 2024

In addition to the method split, I propose to replace the term "soft delete" with "expired". Ideally imho it would be expire/remove instead of soft/hard delete, but it may clash with apiserver or ent generated code.

The decisionID() function can be made generic if needed.

@mmetc mmetc added this to the 1.6.3 milestone May 22, 2024
Copy link

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

  • /area agent
  • /area local-api
  • /area cscli
  • /area appsec
  • /area security
  • /area configuration
Details

I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file 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 repository.

@codecov-commenter
Copy link

codecov-commenter commented May 22, 2024

Codecov Report

Attention: Patch coverage is 36.04651% with 55 lines in your changes missing coverage. Please review.

Project coverage is 52.37%. Comparing base (fba4237) to head (9c56779).

Files Patch % Lines
pkg/database/decisions.go 40.00% 38 Missing and 1 partial ⚠️
pkg/apiserver/papi_cmd.go 0.00% 13 Missing ⚠️
pkg/apiserver/apic.go 50.00% 2 Missing ⚠️
pkg/database/alerts.go 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3025      +/-   ##
==========================================
- Coverage   52.40%   52.37%   -0.03%     
==========================================
  Files         280      280              
  Lines       35475    35493      +18     
==========================================
  Hits        18591    18591              
- Misses      15043    15062      +19     
+ Partials     1841     1840       -1     
Flag Coverage Δ
bats 40.14% <24.63%> (-0.02%) ⬇️
unit-linux 34.80% <28.57%> (ø)
unit-windows 30.92% <34.88%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mmetc mmetc marked this pull request as ready for review May 22, 2024 11:49
@mmetc mmetc marked this pull request as draft May 23, 2024 09:54
@mmetc mmetc marked this pull request as ready for review May 30, 2024 11:30
@mmetc mmetc force-pushed the decision-delete branch 2 times, most recently from a4fd18c to 0721caa Compare May 31, 2024 18:29
@mmetc mmetc changed the title pkg/database: replace parameter with explicit methods pkg/database: refactor & rename "soft delete" to "expire" Jun 4, 2024
@mmetc mmetc merged commit 9101de9 into master Jun 4, 2024
17 checks passed
@mmetc mmetc deleted the decision-delete branch June 4, 2024 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants