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

Remove double encoding for API URL parameters #2189

Merged
merged 4 commits into from
Jul 8, 2024

Conversation

Alex-Tideman
Copy link
Contributor

@Alex-Tideman Alex-Tideman commented Jul 5, 2024

Description & motivation 💭

With proto/SCREAMING ENUM updates, WorkflowIds that contain certain letter combinations can't be found by api due to double encoding. This PR removes the double encoding if ui-server version is >= 2.23.0 and keeps it if less than that.

Patterns with issues:

Quotes:
someId'|another|test|__test__underscore|test|data'
id="x_'some/value'"

Slashes:
Example(1/1)

Spaces:
Example(1 0)

! with :
!foo:bar

All of these WorkflowIds 404 with double encoding, and do not 404 with single encoding.

Screenshots (if applicable) 📸

Screenshot 2024-07-08 at 9 07 06 AM

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

Fixes:
#1987
#2129
#1084

Docs

Any docs updates needed?

@Alex-Tideman Alex-Tideman requested a review from stevekinney as a code owner July 5, 2024 14:39
Copy link

vercel bot commented Jul 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
holocene ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2024 4:16pm

@Alex-Tideman Alex-Tideman changed the title Remove double encoding Remove double encoding for API url parameters Jul 8, 2024
@Alex-Tideman Alex-Tideman changed the title Remove double encoding for API url parameters Remove double encoding for API URL parameters Jul 8, 2024
@Alex-Tideman Alex-Tideman merged commit 39ba636 into main Jul 8, 2024
11 checks passed
@Alex-Tideman Alex-Tideman deleted the workflow-id-decoding branch July 8, 2024 16:55
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