evazion
8cbcec285d
search: fix multiple metatag searches not working in some cases.
...
Bug: in some cases searching for multiple metatags would cause one
metatag to be ignored. For example, a search for {{user:1 pool:2}} would
be treated as a search for {{pool:2}}.
Cause: we used `ActiveRecord::Relation#merge` to combine two relations,
which was wrong because `merge` doesn't combine `column IN (?)` clauses
correctly. If there are two `column IN (?)` clauses on the same column,
then `#merge` takes only the second clause and ignores the first.
Fix: write our own half-baked `#and` method to work around Rails'
broken-by-design `#merge` method.
ref: https://github.com/rails/rails/issues/33501 .
2020-04-27 22:29:42 -05:00
..
2020-03-03 23:01:29 -06:00
2020-03-21 21:07:35 -05:00
2020-04-23 01:51:30 -05:00
2020-04-21 00:32:52 -05:00
2020-03-21 21:07:35 -05:00
2020-03-25 18:48:43 -05:00
2019-12-22 21:23:37 -06:00
2018-04-06 18:09:57 -07:00
2020-02-27 00:19:16 -06:00
2019-12-22 21:23:37 -06:00
2020-03-06 23:23:38 -06:00
2020-03-21 21:07:35 -05:00
2020-03-20 18:03:00 -05:00
2020-03-10 21:23:46 -05:00
2020-04-27 19:11:47 -05:00
2020-01-17 19:21:20 -06:00
2020-03-21 23:06:47 -05:00
2019-08-24 22:55:36 -05:00
2020-03-21 21:07:35 -05:00
2020-02-23 17:52:38 -06:00
2020-03-20 18:03:01 -05:00
2020-03-27 12:47:35 -05:00
2020-01-21 00:09:38 -06:00
2018-08-12 14:22:08 -05:00
2020-03-20 18:03:00 -05:00
2020-01-22 21:09:32 -06:00
2020-04-21 00:31:16 -05:00
2020-02-23 17:26:08 -06:00
2020-02-03 04:52:12 -06:00
2020-01-11 00:59:25 -06:00
2020-02-16 23:19:49 -06:00
2019-10-07 22:01:37 -05:00
2019-09-02 12:20:37 -05:00
2020-03-21 21:07:35 -05:00
2020-01-21 00:09:38 -06:00
2020-03-21 21:07:35 -05:00
2020-04-21 00:31:16 -05:00
2020-01-21 00:09:38 -06:00
2020-03-20 18:03:01 -05:00
2020-01-21 00:09:38 -06:00
2020-04-27 22:29:42 -05:00
2020-04-23 15:14:37 -05:00
2020-03-21 21:07:35 -05:00
2019-12-22 21:23:37 -06:00
2020-02-23 17:52:38 -06:00
2020-03-09 22:18:57 -05:00
2020-03-21 21:07:35 -05:00
2019-09-22 23:14:55 -05:00
2019-11-19 00:06:20 -06:00
2020-03-12 21:18:53 -05:00
2018-07-03 17:59:53 -07:00
2017-05-31 16:15:18 -05:00
2020-04-27 13:57:19 -05:00
2020-01-21 00:09:38 -06:00
2020-03-10 20:55:20 -05:00
2020-01-21 00:09:38 -06:00
2018-10-01 19:47:39 -05:00
2020-04-23 01:51:30 -05:00
2019-12-22 21:23:37 -06:00
2020-02-03 22:05:58 -06:00
2020-04-13 15:30:17 -05:00
2020-04-03 23:44:23 -05:00
2020-03-20 18:03:00 -05:00
2020-03-31 19:00:32 -05:00
2019-09-25 21:43:01 -05:00
2020-04-06 14:13:22 -05:00
2020-03-20 18:03:00 -05:00