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

Fix(query): add delimiter to the query keyword #2015

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

alexseedkou
Copy link

@alexseedkou alexseedkou commented Apr 17, 2024

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 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

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

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

Docs

Any docs updates needed?

Copy link

vercel bot commented Apr 17, 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 Apr 22, 2024 11:28pm

@CLAassistant
Copy link

CLAassistant commented Apr 17, 2024

CLA assistant check
All committers have signed the CLA.

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants