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

56 modify the way parameters are sent to the api so the values are html encoded #61

Conversation

Jordan-Prescott
Copy link
Owner

Parameters where being tacked onto a f string instead of using the params parameter in the requests module. This would cause issues when parameter values had special characters in them especially '&' as this would cause the server to treat as another parameter.

A params dict has been introduced to each method that needs it and Requester to pass to requests module which will correctly configure this.

Additonal changes added are below:

  • F string removed from endpoint in all places its not needed
  • format_filter_value() has been updated to only return the value with needed wild cards.

Dan and others added 3 commits June 28, 2024 11:04
- Params dict in all where needed
- Format filter updated to return only value
- f string removed from all methods
@Jordan-Prescott Jordan-Prescott added the enhancement New feature or request label Jul 9, 2024
@Jordan-Prescott Jordan-Prescott added this to the v1.0.0 Release milestone Jul 9, 2024
@Jordan-Prescott Jordan-Prescott requested a review from LivCurtis July 9, 2024 13:36
@Jordan-Prescott Jordan-Prescott self-assigned this Jul 9, 2024
Copy link
Collaborator

@dan-writes-code dan-writes-code left a comment

Choose a reason for hiding this comment

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

All looks good, I'd totally missed removing the 'f' before the endpoint strings when I was removing each of the params.

Approving to merge changes.

@Jordan-Prescott Jordan-Prescott merged commit 5d5ea5f into main Jul 9, 2024
@Jordan-Prescott Jordan-Prescott deleted the 56-modify-the-way-parameters-are-sent-to-the-api-so-the-values-are-html-encoded branch July 9, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

Modify the way parameters are sent to the API, so the values are HTML encoded
2 participants