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

Return 'service fetch config' api data with original text case #5096

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

Conversation

robinmolen
Copy link
Contributor

@robinmolen robinmolen commented Feb 10, 2025

Closes #5089

Changes

Make sure that the GET request to the api/v2/service-fetch-configurations call returns query_params and body data using the correct text case type

Checklist

Check off the items that are completed or not relevant.

  • Impact on features

    • Checked copying a form
    • Checked import/export of a form
    • Config checks in the configuration overview admin page
    • Problem detection in the admin email digest is handled
  • Release management

    • I have labelled the PR as "needs-backport" accordingly
  • I have updated the translations assets (you do NOT need to provide translations)

    • Ran ./bin/makemessages_js.sh
    • Ran ./bin/compilemessages_js.sh
  • Dockerfile/scripts

    • Updated the Dockerfile with the necessary scripts from the ./bin folder
  • Commit hygiene

    • Commit messages refer to the relevant Github issue
    • Commit messages explain the "why" of change, not the how

@robinmolen robinmolen linked an issue Feb 10, 2025 that may be closed by this pull request
@robinmolen robinmolen added the needs-backport Fix must be backported to stable release branch label Feb 10, 2025
@robinmolen robinmolen marked this pull request as ready for review February 10, 2025 14:53
@robinmolen robinmolen requested a review from vaszig February 10, 2025 14:53
Copy link

codecov bot commented Feb 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.73%. Comparing base (51c5bde) to head (de6393a).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5096   +/-   ##
=======================================
  Coverage   96.73%   96.73%           
=======================================
  Files         774      775    +1     
  Lines       26657    26662    +5     
  Branches     3468     3468           
=======================================
+ Hits        25787    25792    +5     
  Misses        608      608           
  Partials      262      262           

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

@@ -466,6 +466,151 @@ def assertState():

await assertState()

@skip_on_webtest
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this needed?I have no experience with this decorator tbh.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah the enter_json_in_editor helper function apparently doesn't work correctly for webkit browsers in playwright. I haven't tested it personally, but after reading the comments in enter_json_in_editor, it seems best to just skip webkit for this test

@robinmolen robinmolen force-pushed the fix/5089-service-fetch-changing-case-type branch from 1f54066 to 049583f Compare February 18, 2025 12:47
When using an existing service fetch config, that uses snake_case for the `query_params` or `body`, the `query_params` and `body` are turned to camelCase
Make sure that `body` and `query_params` on service fetch configuration keep their original case type
@robinmolen robinmolen force-pushed the fix/5089-service-fetch-changing-case-type branch from 049583f to de6393a Compare February 18, 2025 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-backport Fix must be backported to stable release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Service fetch automatically changes snake_case to camelCase
3 participants