Automattic / Automattic/kue

Allow searching by error

Open
#415 1 comment 0 reactions 0 assignees View on GitHub
Discussion
Dominant language
JavaScript
Stars
9.4k
Forks
858
PR merge metrics
No merged PRs in 30d

Description

The full text search feature does not appear to work when searching by error message. For example, if I look at `/jobs/failed/1..1`:

```
[
{
"id":"2660941",
"type":"remove",
"data":{
"guid":""
},
"priority":0,
"progress":0,
"state":"failed",
"error":"No GUID specified for removal",
"created_at":"1410980651534",
"updated_at":"1410980651539",
"failed_at":"1410980651538",
"attempts":{
"made":1,
"remaining":0,
"max":1
}
}
]
```

If I wanted to find all failed jobs with the error message, "No GUID specified for removal", this is not possible today. `/job/search?q=No%20GUID%20specified%20for%20removal` results:

```
[]
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the `/job/search` entry point and compare its search behavior with the failed-job records returned by `/jobs/failed/1..1`, especially the `error` field. Done means a query for `No GUID specified for removal` returns matching failed jobs instead of an empty result.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
api, backend, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.