Skip to content

Conversation

@g-saracca
Copy link
Contributor

@g-saracca g-saracca commented May 27, 2025

What this PR does / why we need it:

Avoids double encoding in the search api and my data api related use cases.
We were using URLSearchParams for query params and also encodeURIComponent for the search text so we were double encoding the mydata_search_term and the q query params.

Special notes for your reviewer:

Suggestions on how to test this:

Code review and tests passing.

Is there a release notes update needed for this change?:

No

Additional documentation:

No

@g-saracca g-saracca changed the title fix: avoid encoding again Avoid double encoding of search term May 27, 2025
@g-saracca g-saracca moved this to Ready for Review ⏩ in IQSS Dataverse Project May 27, 2025
@g-saracca g-saracca added bug Something isn't working Size: 3 A percentage of a sprint. 2.1 hours. GREI Re-arch GREI re-architecture-related Original size: 3 SPA.Q2 Not related to any specific Q2 feature labels May 27, 2025
@ChengShi-1 ChengShi-1 self-assigned this May 27, 2025
Copy link
Contributor

@ChengShi-1 ChengShi-1 left a comment

Choose a reason for hiding this comment

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

looks good

@github-project-automation github-project-automation bot moved this from Ready for Review ⏩ to Ready for QA ⏩ in IQSS Dataverse Project May 27, 2025
@ChengShi-1 ChengShi-1 removed their assignment May 27, 2025
@ofahimIQSS ofahimIQSS self-assigned this May 27, 2025
@ofahimIQSS
Copy link
Contributor

Merging as tests are passing. Thanks for the fix.

@ofahimIQSS ofahimIQSS merged commit 6d0f5a1 into develop May 27, 2025
5 checks passed
@ofahimIQSS ofahimIQSS deleted the fix/double-encoding branch May 27, 2025 20:24
@github-project-automation github-project-automation bot moved this from Ready for QA ⏩ to Merged 🚀 in IQSS Dataverse Project May 27, 2025
@ofahimIQSS ofahimIQSS removed their assignment May 27, 2025
@pdurbin pdurbin moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working GREI Re-arch GREI re-architecture-related Original size: 3 Size: 3 A percentage of a sprint. 2.1 hours. SPA.Q2 Not related to any specific Q2 feature

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

4 participants