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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9bf52a653e507bed6b1fe67a162dfa882b8dab27aa377b3d883e3da45f67f727
4
- data.tar.gz: da0c8e7b5c349f4f5bd8c4358797a5eec1327ecf1171dc6de7158b0cc9cfbee4
3
+ metadata.gz: ab3722840d818b5e39cac9b51fe13230d93fc1bcc3cfa61ecebedbff2f1fdc52
4
+ data.tar.gz: cb5a23038d098bcde99caf7db0764288c82e882c31416a18875ffda4916dc12f
5
5
  SHA512:
6
- metadata.gz: 0c9e920e4760b45ea4d3ecb2f4e09745a84bc1830e70a3a2085fba4b5511411df65b607fecc9e11ec827811a71848d8a4f66c1be7f0a71b61a77d4100b3b5c99
7
- data.tar.gz: b86ee152657699c2739acda33e9b24afcd04e2360a2f034c2d20b27bb2aaa7d5ba53b1677ea0cef76fa238e179c05eec5194fc268069a1c0fda06d7a761ac10e
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
2
+ previous_version: 0.7.3
data/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Changelog
2
2
 
3
- ## 0.7.3
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mensa (0.7.2)
4
+ mensa (0.7.3)
5
5
  csv
6
6
  importmap-rails
7
7
  pagy (>= 43)
@@ -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
- searchable_attributes = columns.reject { |column| column.filter&.having? }.filter_map(&:attribute_for_condition).uniq
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
@@ -1,3 +1,3 @@
1
1
  module Mensa
2
- VERSION = "0.7.3"
2
+ VERSION = "0.7.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mensa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom de Grunt