#3474 Address solr error "undefined field label"

v1.0.0
closed
sf-2 (994)
General
nobody
2015-08-20
2011-12-20
No

Investigate and fix the ~3892 daily occurrences of [pysolr] [Reason: undefined field label]. Possible cause is an invalid saved search (proper field name is labels plural). If that's the case, we should make sure the error is surfaced to the user and downgrade the logging.

Discussion

    • status: open --> in-progress
    • assigned_to: Tim Van Steenburgh
     
  • Dave Brondsema

    Dave Brondsema - 2012-01-06
    • size: --> 2
     
  • forge:tv/3474

    There were 3 saved searches in prod using 'label' instead of 'labels' - those have been corrected. The code on tv/3474 prevents invalid searches from being saved in the first place.

    QA: Go to a Tracker and click Edit Searches. Create a new search or edit an existing one (or both) and enter invalid terms (e.g. label:foo). Click Save. You should see error messages under all invalid searches. The invalid searches have not been saved and won't be until they're made valid. You can confirm this by clicking Cancel and observing that the changes are discarded.

    Go to Tracker home and click the Open Tickets button on the left sidebar. Edit the saved search using invalid terms and click Update Search. You should get the saved search edit page again, with an error under the search that you tried to update.

     
    • status: in-progress --> code-review
    • qa: Rick Copeland ☕
     
  • Rick Copeland - 2012-01-13
    • status: code-review --> closed
     
  • Rick Copeland - 2012-01-13

    Works as long as some tickets exist

     

Log in to post a comment.