#5 search completion doesn't work
Closed: Fixed Opened by kparal.

Search completion for testcase name was supposed to work, but when I try it at http://taskotron-dev.fedoraproject.org/resultsdb/results , it doesn't. Something's broken.


This ticket had assigned some Differential requests:
D1106

I know where the problem is - in the search.js static file, the path to the tokenizer endpoint is set to /testcase_tokenizer, which on our setup leads to http://taskotron-dev.fedoraproject.org/testcase_tokenizer instead of http://taskotron-dev.fedoraproject.org/resultsdb/testcase_tokenizer, because the / part is interpreted on the client, instead of the server (which incidentaly knows the WSGI app root).

The solution I see is to add a hidden element to the html page, with the 'app root' (or url, might be easier), and the javascript will load the endpoint url from that, instead of having it hardcoded.

Don't know why it assigned and closed the ticket... did not mean to do taht.

Metadata Update from @kparal:
- Issue tagged with: easyfix

Metadata Update from @jskladan:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

Metadata