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

Remove any unpermitted parameters and raise if it reoccurs #1607

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MrSerth
Copy link
Member

@MrSerth MrSerth commented Aug 25, 2024

So far, we had a few tests (and production-used code) that would log unpermitted parameters. This PR therefore addresses this issue by ensuring we are not sending unpermitted parameters during regular use. Furthermore, it raises if any unpermitted parameter is detected in development or test to make everyone aware.

This PR depends on the following two PRs to be merged first:

Only when those two PRs are merged, the tests in this branch will pass. Nevertheless, reviewing is already possible, @Dome-GER 😉

@MrSerth MrSerth added enhancement ruby Pull requests that update Ruby code labels Aug 25, 2024
@MrSerth MrSerth requested a review from Dome-GER August 25, 2024 11:37
@MrSerth MrSerth self-assigned this Aug 25, 2024
Copy link

codecov bot commented Aug 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.18%. Comparing base (1a64ec8) to head (a529c5d).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1607      +/-   ##
==========================================
+ Coverage   94.14%   94.18%   +0.03%     
==========================================
  Files         123      123              
  Lines        3006     3008       +2     
==========================================
+ Hits         2830     2833       +3     
+ Misses        176      175       -1     

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

This setting should ensure we don't re-introduce any code that silently "accepts" unpermitted parameters.
@MrSerth MrSerth force-pushed the raise_on_unpermitted_parameters branch from 2d3aceb to a529c5d Compare September 10, 2024 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant