temporalio / temporalio/ui

Query Search doesn't seem to be working correctly. Returning results from other attributes

Open
#1,282 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
431
Forks
179
Avg merge
2d 9h
Merged PRs (30d)
71

Description

Describe the bug

  • I have two search filters “CustomString1” = “default-pd-dhang” and “CustomString2” = “pd-framework-demo” but when i try to search “CustomString1” = “pd-framework-demo” it returns me the workflow, but “pd-framework-demo” is set to “CustomString2"
  • When trying to search for partial text, it doesn't work. Seems to have to have exact match.

To Reproduce
Steps to reproduce the behavior:

Problem 1:

  1. Create search-attributes "CustomString1" and "CustomString2" as Text Type
  2. Create a workflow that set "CustomString1" = "default-pd-dhang" and "CustomString2" = “pd-framework-demo”
  3. Go to UI, and query CustomString1 = “pd-framework-demo”. This returns a workflow. This should not return anything since it's set to CustomString2

Problem 2:

  1. Create search-attributes "CustomString1" and "CustomString2" as Text Type
  2. Create a workflow that set "CustomString1" = "default-pd-dhang"
  3. Go to UI, and query CustomString1 = “default”. Would expect a workflow to show up but it doesn't

Expected behavior
Problem 1:

  • Typing in a query string for another custom search attribute should not return anything.

Problem 2:

  • Text should allow partial search

Screenshots
If applicable, add screenshots to help explain your problem.

Problem 1:

Looks like it attribute name doesnt' matter and its just compares the result to all attributes
image

image image image

Problem 2:
image

Sometimes works...
image

Then it doesn't
image

  • OS: osx
  • Browser chrome
  • Version: 2.10.3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the UI query search flow and reproduce both reported cases using the steps in the issue. Trace how custom text attributes are selected and matched, then verify that an attribute-specific exact query excludes other attributes and that partial text searches return matching workflows.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.