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.
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.
Works as long as some tickets exist