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

breaking: removes code parameter from ErrorLog and AuditLog #800

Merged
merged 1 commit into from May 27, 2023

Conversation

M4tteoP
Copy link
Member

@M4tteoP M4tteoP commented May 25, 2023

follows #795 reasonings. Proposes to remove the code parameter from ErrorLog and AuditLog.

@M4tteoP M4tteoP marked this pull request as ready for review May 25, 2023 10:26
@M4tteoP M4tteoP requested a review from a team as a code owner May 25, 2023 10:26
@codecov
Copy link

codecov bot commented May 25, 2023

Codecov Report

Patch coverage: 57.14% and no project coverage change.

Comparison is base (eed5643) 81.84% compared to head (7026970) 81.85%.

Additional details and impacted files
@@           Coverage Diff           @@
##           v3/dev     #800   +/-   ##
=======================================
  Coverage   81.84%   81.85%           
=======================================
  Files         156      156           
  Lines        8663     8662    -1     
=======================================
  Hits         7090     7090           
+ Misses       1342     1341    -1     
  Partials      231      231           
Flag Coverage Δ
default 76.16% <50.00%> (+<0.01%) ⬆️
examples 25.42% <50.00%> (+<0.01%) ⬆️
ftw 47.25% <20.00%> (+<0.01%) ⬆️
ftw-multiphase 49.39% <20.00%> (+<0.01%) ⬆️
tinygo 74.31% <50.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
internal/corazawaf/transaction.go 78.27% <0.00%> (+0.05%) ⬆️
internal/corazarules/rule_match.go 60.65% <50.00%> (ø)
examples/http-server/main.go 70.27% <100.00%> (ø)
testing/engine.go 58.73% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jcchavezs
Copy link
Member

jcchavezs commented May 26, 2023 via email

@jptosso
Copy link
Member

jptosso commented May 26, 2023

If we change the error log, log parsers will break :( (?)

@fzipi
Copy link
Member

fzipi commented May 27, 2023

Forget my last comment, we are using interfaces.

Copy link
Member

@fzipi fzipi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After doing a second pass, it will be a breaking compatibility change, but I get the why so 👍

Copy link
Member

@jptosso jptosso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fzipi fzipi merged commit 721d1de into corazawaf:v3/dev May 27, 2023
8 of 9 checks passed
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.

None yet

4 participants