Skip to content

Exclude transient query parameter from identities request when false #64

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sergeirr
Copy link

Currently, get identities request contains transient query parameter only when set to true.

Previously, this bug would result in an unexpected flag state for the user identity.

@matthewelwell
Copy link
Contributor

Hi @sergeirr , thanks for the contribution. I have a feeling, however, that this is a duplicate of a PR that was merged earlier this week here?

@sergeirr
Copy link
Author

Hi @matthewelwell, actually, this is another side of the issue.
PR you mentioned covered responce part, but my PR covers request part.

@matthewelwell
Copy link
Contributor

Hi @matthewelwell, actually, this is another side of the issue. PR you mentioned covered responce part, but my PR covers request part.

I'm not sure I understand what you mean by 'response' part, but on inspection, I think that the PR I shared only covers the POST by modifying the request / json body, not the GET request.

@rolodato are you able to contribute to the conversation here?

@sergeirr
Copy link
Author

sergeirr commented May 30, 2025

@matthewelwell Anyway, we found this issue using 1.7.3 (the latest) version.
When transient exists (even it false) as query parameter server responds with default value.
This PR fixes the issue.

@matthewelwell
Copy link
Contributor

Ok, thanks @sergeirr - is there a way to catch this further upstream though? It seems like the queryInterceptor is having to correct something that's happened earlier in the URL building - couldn't we just prevent the query parameter being added earlier in the codepath?

@sergeirr
Copy link
Author

@matthewelwell yes, we can use null value for transient query parameter, but we will face necessity to add check like:

if (transient) transient else null

to every function call (currently there are 2 calls that use transient parameter).

But this may cause misunderstandings in the future.

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

Successfully merging this pull request may close these issues.

2 participants