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: only forbid endpoint, not function #839

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

AgustinRamiroDiaz
Copy link
Contributor

Fixes #838

What

Only fixes the issue's problem

Why

I am using VALIDATORS_CONFIG_JSON and I need it

Testing done

Tested changing VALIDATORS_CONFIG_JSON and it works

Decisions made

We should probably do this with all of the functions

I think there's a problem with the current model: we have mixed our domain logic and our endpoints logic
I think it'd be nice if we were able to extract the logic into it's own module, and then import it from the flask server and expose what we want
Obviously this is a larger issue what I'm fixing here

Checks

  • I have tested this code
  • I have reviewed my own PR
  • I have created an issue for this PR
  • I have set a descriptive PR title compliant with conventional commits

Reviewing tips

User facing release notes

Fix bug with VALIDATORS_CONFIG_JSON

Signed-off-by: Agustín Ramiro Díaz <[email protected]>
Copy link

codecov bot commented Jan 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 16.79%. Comparing base (e640dd2) to head (598aa8f).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #839   +/-   ##
=======================================
  Coverage   16.79%   16.79%           
=======================================
  Files         124      124           
  Lines        9856     9856           
  Branches      248      248           
=======================================
  Hits         1655     1655           
  Misses       8116     8116           
  Partials       85       85           

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

@AgustinRamiroDiaz AgustinRamiroDiaz merged commit bbe73df into main Jan 22, 2025
22 of 23 checks passed
Copy link
Contributor

🎉 This PR is included in version 0.34.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VALIDATORS_CONFIG_JSON is not working
2 participants