Automattic / Automattic/kue

Search doesn't work.

Open
#867 2 comments 0 reactions 0 assignees View on GitHub
Question
Dominant language
JavaScript
Stars
9.4k
Forks
858
PR merge metrics
No merged PRs in 30d

Description

The 'GET /job/search?q=' request always returns a empty array, no matter what I put in. All other requests are working fine.

This is my program:

`var kue = require('kue')
var queue = kue.createQueue();

for (i = 0; i < 500; i++) {
var job = queue.create('email', {
title: 'i:' + i
, to: 'tj@learnboost.com'
, template: 'welcome-email'
}).searchKeys( ['to', 'title'] ).save()
.save( function(err){
if( !err ) console.log( job.id );
});
}

kue.app.listen(...[config here]...);
console.log("Running on http://127.0.0.1:" + argv.p);`

Thanks,
Alex

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the GET /job/search?q= request with the provided Kue program and inspect the route and the searchKeys/save flow it exercises. Compare the indexed keys with the query behavior; done means searches return the created jobs for both “to” and “title” values, with the existing requests still working.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, redis
Domain
api, backend, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.