hashicorp / hashicorp/nomad

Inputting an incorrect filter in Jobs search breaks the UI

Open
#25,699 2 comments 0 reactions 0 assignees View on GitHub
hcc/jira stage/accepted theme/ui type/bug
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

### Nomad version
1.10

### Issue

Hey! I have a crash in the UI when I'm inputting a filter and:
- It's got a bad syntax
- It references fields incorrectly in specs (e.g. `TaskGroups` maps to an array, so `TaskGroups.0` is correct but `TaskGroups.Something` breaks)

### Reproduction steps

At the page on url `/ui/jobs`, write `(TaskGroups.Something == "Something")` in the search bar.

#### Expected Result

An error would be displayed on the UI, but not a crash

#### Actual Result

Image

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the Jobs search UI reached through /ui/jobs and reproduce the filter with `(TaskGroups.Something == "Something")`. Trace how invalid syntax and incorrectly referenced fields are handled; done means the UI displays an error without crashing.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.