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

api: fuzzy search task results cannot be navigated to by UI without an allocation #10589

Open
backspace opened this issue May 13, 2021 · 0 comments
Labels
theme/api HTTP API and SDK issues type/enhancement

Comments

@backspace
Copy link
Contributor

Proposal

Add an allocation id to task fuzzy search results. How to actually choose an allocation if there is more than one is an open question.

Use-cases

The UI cannot navigate to a task without an allocation id:

image

That means the preliminary implementation in #10412 ignores the tasks collection returned by the fuzzy search endpoint because it can’t make use of them:

…
    "tasks": [
      {
        "ID": "fs-example",
        "Scope": [
          "default",
          "fs",
          "fs-example"
        ]
      }
    ],
…

Attempted Solutions

A possible workaround to find the necessary allocation id would be to run another query for every tasks returned, searching for allocations whose name matches tasks.[].Scope[2], the task group, but that would produce a lot of wasteful queries, so I stopped going down that path.

@backspace backspace added type/enhancement theme/api HTTP API and SDK issues labels May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/api HTTP API and SDK issues type/enhancement
Projects
None yet
Development

No branches or pull requests

1 participant