• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

opentrials / opentrials / 306
100%

Build:
DEFAULT BRANCH: master
Ran 20 Jun 2016 12:12PM UTC
Jobs 1
Files 41
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
306

push

travis-ci

web-flow
[#227] Escape Query String to avoid syntax errors

We're exposing ElasticSearch's query strings in the API to allow advanced
search features without relying on explicit fields. This has the drawback of
making it possible for the user to do an invalid query, which would raise an
syntax error. Obviously, this is bad UX.

ElasticSearch has a simple query string which avoids this, but we're using a
few query string features that aren't available in simple query strings like
searching for date ranges and in specific fields.

In the future, we will have to stop using query strings and build our own
syntax (similar to GitHub or Slack's search). Meanwhile, this change escapes
the query string passed by the user, so it's impossible to raise syntax errors.
This has the drawback of limiting what the user can do in the query. After this
change, she'll only be able to do simple queries, at most with logical
connectors like AND, OR and NOT.

This is a reasonable tradeoff for now, IMHO.

Fixes #227

6 of 6 new or added lines in 1 file covered. (100.0%)

535 of 535 relevant lines covered (100.0%)

14.64 hits per line

Jobs
ID Job ID Ran Files Coverage
1 306.1 20 Jun 2016 12:12PM UTC 0
100.0
Travis Job 306.1
Source Files on build 306
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #306
  • 05510724 on github
  • Prev Build on master (#305)
  • Next Build on master (#307)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc