Bookmarked searches break due to Warning class rename

Description

Example URL showing sarken's works filtered to only those including the "Graphic Depictions Of Violence" warning:

https://test.archiveofourown.org/works?utf8=✓&commit=Sort+and+Filter&work_search%5Bsort_column%5D=revised_at&include_work_search%5Bwarning_ids%5D%5B%5D=17&work_search%5Bother_tag_names%5D=&work_search%5Bexcluded_tag_names%5D=&work_search%5Bcrossover%5D=&work_search%5Bcomplete%5D=&work_search%5Bwords_from%5D=&work_search%5Bwords_to%5D=&work_search%5Bdate_from%5D=&work_search%5Bdate_to%5D=&work_search%5Bquery%5D=&work_search%5Blanguage_id%5D=&user_id=sarken

Sometimes, folks bookmark search or filter results in their browser. If the thing they are bookmarking includes warnings, that will no longer work as expected after – basically, it will fail silently and include works regardless of warning.

We'd like to make sure URLs like this that use the warning_ids parameter name keep working.

How to test:

  • Filter a tag by a particular warning - say, Main Character Death. Make note of how many results you get.

  • Copy the url to a text editor and find-and-replace “archive_warning_ids” with “warning_ids”.

  • Paste the new url into your browser bar and see if you get the same results.

 

Environment

None

Status

Assignee

elzj78 (Elz)

Reporter

Sarken

Roadmap

Search

Priority

Medium

Affects versions

0.9.260

Fix versions

Components

BackEnd

Difficulty

Medium

Required Access Level

None

Milestone

Internal 0.9
Configure