-
Notifications
You must be signed in to change notification settings - Fork 59
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
Fix(query): add delimiter to the query keyword #2015
Open
alexseedkou
wants to merge
2
commits into
temporalio:main
Choose a base branch
from
alexseedkou:fix-hyphen-attribute
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
alexseedkou
changed the title
fix(query): add delimiter to the query keyword
Fix(query): add delimiter to the query keyword
Apr 17, 2024
alexseedkou
force-pushed
the
fix-hyphen-attribute
branch
from
April 22, 2024 23:28
ea153db
to
fc6d472
Compare
tdeebswihart
pushed a commit
to temporalio/temporal
that referenced
this pull request
May 15, 2024
## What changed? Add a test in the server to test the behavior when an attribute includes a hyphen character. This is a support PR for this [PR](temporalio/ui#2015) in UI ## Why? Please refer the details in the [PR](temporalio/ui#2015) in UI and the open [issue](#5557) ## How did you test it? ## Potential risks ## Documentation ## Is hotfix candidate?
ychebotarev
pushed a commit
to ychebotarev/temporal
that referenced
this pull request
May 16, 2024
…io#5747) ## What changed? Add a test in the server to test the behavior when an attribute includes a hyphen character. This is a support PR for this [PR](temporalio/ui#2015) in UI ## Why? Please refer the details in the [PR](temporalio/ui#2015) in UI and the open [issue](temporalio#5557) ## How did you test it? ## Potential risks ## Documentation ## Is hotfix candidate?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description & motivation 💭
When send out a query of custom search attribute through the options on UI, the server will return back an error if the custom search attribute include hyphen (
-
), this is because hyphen is a reserved character for SQL, to send the query including such characters need to introduce delimiter backtik`
to escape.This will address the open issue here with the minimum change only on UI.
Here is another PR for adding tests in server.
Screenshots (if applicable) 📸
N/A
Design Considerations 🎨
Testing 🧪
Test it though a manual test. Will open another PR in server to include the test on the attribute name with hyphen in server.
How was this tested 👻
Steps for others to test: 🚶🏽♂️🚶🏽♀️
Checklists
Draft Checklist
Merge Checklist
Issue(s) closed
Docs
Any docs updates needed?