Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure keywords aren't blank #174

Open
gbp opened this issue Aug 9, 2018 · 0 comments
Open

Ensure keywords aren't blank #174

gbp opened this issue Aug 9, 2018 · 0 comments
Labels
backlog bug Something isn't working f:suggestions

Comments

@gbp
Copy link
Member

gbp commented Aug 9, 2018

We got a PG SyntaxError for a TSQuery on staging due to a blank keyword on a curated link.

PG::SyntaxError: ERROR:  syntax error in tsquery: "() | (Procurement) | (Purchase & order) | (Purchasing)"
irb(main):001:0> CuratedLink.last.keywords
  CuratedLink Load (0.7ms)  SELECT  "curated_links".* FROM "curated_links" ORDER BY "curated_links"."id" DESC LIMIT $1  [["LIMIT", 1]]
=> "Procurement, Purchasing, Purchase order, "
@gbp gbp added bug Something isn't working f:foi backlog labels Aug 9, 2018
@garethrees garethrees removed the f:foi label Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog bug Something isn't working f:suggestions
Projects
None yet
Development

No branches or pull requests

2 participants