Skip to content

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

Closed
alexseedkou wants to merge 2 commits intotemporalio:mainfrom
alexseedkou:fix-hyphen-attribute
Closed

Fix(query): add delimiter to the query keyword#2015
alexseedkou wants to merge 2 commits intotemporalio:mainfrom
alexseedkou:fix-hyphen-attribute

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?

@vercel
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.

@alexseedkou alexseedkou force-pushed the fix-hyphen-attribute branch from ea153db to fc6d472 Compare April 22, 2024 23:28
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?
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.

3 participants