Files
danbooru/test/unit
evazion da3e8e4726 searchable: fix bug with searching multiple association attributes.
Fix a bug with searches like the following not working correctly:

* https://danbooru.donmai.us/comments.json?search[creator][level]=20&search[creator_id]=1234
* https://danbooru.donmai.us/comments.json?search[creator][level]=20&search[creator_name]=abcd
* https://danbooru.donmai.us/comments.json?search[post][rating]=s&search[post_tags_match]=touhou

It wasn't possible to search for both `creator` and `creator_id` at the
same time (or `post` and `post_tags_match`, etc). Only the `creator_id`
param would be recognized.

Also refactor some internals:

* `search_includes` was renamed to `search_associated_attribute`.
* `search_attribute` was split up into `search_basic_attribute` and
  `search_associated_attribute`.
2021-01-07 17:10:29 -06:00
..
2020-11-10 14:52:54 -06:00
2020-03-21 21:07:35 -05:00
2020-07-13 19:30:40 -05:00
2020-12-16 13:53:16 +01:00
2020-03-20 18:03:00 -05:00
2020-06-20 00:20:39 -05:00
2020-04-21 00:31:16 -05:00
2020-03-21 21:07:35 -05:00
2020-03-21 21:07:35 -05:00
2020-02-23 17:52:38 -06:00