@W-17621812: Update _get_required_permission_types to handle SELECT operations #3870
+9
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
W-17621812
Issue:
requote_uri
function did not handle the%
character correctly when URL-encoding queries, leading to invalid query formats when passed to the Salesforce API. Specifically, it did not encode%
as%25
, causing issues in query string formatting. (Example and associated Error given in W-17621812 under point 1)SELECT
operations was incorrectly defaulting tocreateable
. As a result, fields were unnecessarily required to becreateable
, even thoughSELECT
operations only require them to bequeryable
.Changes:
_get_required_permission_types
function, used in mapping validation, to verifyqueryable
permissions instead ofcreateable
forSELECT
operations.requote_uri
withurllib.parse.quote
to ensure proper URL encoding of special characters, including%
, which is now correctly encoded as%25
. This ensures the query string is properly formatted for the Salesforce API.