mensa 0.7.3 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.shipkit.yml +1 -1
- data/CHANGELOG.md +3 -1
- data/Gemfile.lock +1 -1
- data/app/tables/mensa/search.rb +3 -2
- data/lib/mensa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ab3722840d818b5e39cac9b51fe13230d93fc1bcc3cfa61ecebedbff2f1fdc52
|
|
4
|
+
data.tar.gz: cb5a23038d098bcde99caf7db0764288c82e882c31416a18875ffda4916dc12f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 32c0a1ada80a403d35e9400e10273f6122c445e7c71ee2cdd4bc4492f9c11881de46f1020bd4db7591f97a3ec8a16c89012458f89a77e1a65e223800298c95f0
|
|
7
|
+
data.tar.gz: 0a5532668ef39a57ff4b9118d2940fb63566bd41d287d28e579f4b729c0e811eff494e95a9035f53c97f6f4f12d7758295ba7d6ff7ffbf1956a238e201737273
|
data/.shipkit.yml
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
---
|
|
2
|
-
previous_version: 0.7.
|
|
2
|
+
previous_version: 0.7.3
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.7.
|
|
3
|
+
## 0.7.4
|
|
4
4
|
|
|
5
5
|
- **Behaviour change:** the `matches` and `does_not_match` filters now do a
|
|
6
6
|
case-insensitive "contains" (`ILIKE '%value%'`), the same way search does.
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
views that relied on typing `%` or `_` wildcards now match a literal `%` or
|
|
10
10
|
`_`. `does_not_match` now also returns rows where the column is NULL.
|
|
11
11
|
Attributes without a `type` are cast to text for the comparison.
|
|
12
|
+
- Search leaves out internal columns. They aren't shown, so a row found
|
|
13
|
+
through one looked like it didn't match.
|
|
12
14
|
|
|
13
15
|
## 0.7.2
|
|
14
16
|
|
data/Gemfile.lock
CHANGED
data/app/tables/mensa/search.rb
CHANGED
|
@@ -10,8 +10,9 @@ module Mensa
|
|
|
10
10
|
return record_scope if query.blank?
|
|
11
11
|
return record_scope unless record_scope.is_a?(ActiveRecord::Relation)
|
|
12
12
|
|
|
13
|
-
# Aggregates (filter having) can't be in a WHERE
|
|
14
|
-
|
|
13
|
+
# Aggregates (filter having) can't be in a WHERE, and internal columns
|
|
14
|
+
# aren't shown, so a match on them can't be seen
|
|
15
|
+
searchable_attributes = columns.reject { |column| column.internal? || column.filter&.having? }.filter_map(&:attribute_for_condition).uniq
|
|
15
16
|
return record_scope if searchable_attributes.empty?
|
|
16
17
|
|
|
17
18
|
@search_order_clause = nil
|
data/lib/mensa/version.rb
CHANGED