Fixes #37987 - Filters dont inherit taxonomy on creation #2394
Annotations
10 errors
Run rake test:units:
test/models/filter_test.rb#L450
Failure: test_0018_filter remains set to unlimited when no taxonomy assigned and has empty search
NoMethodError: undefined method `organization_ids=' for #<Filter id: nil, search: "", role_id: 78, created_at: nil, updated_at: nil, taxonomy_search: nil, override: false>
test/models/filter_test.rb:186:in `block in <class:FilterTest>'
|
Run rake test:units:
test/models/filter_test.rb#L450
Failure: test_0024_enforce_inherited_taxonomies respects override configuration
NoMethodError: undefined method `organizations' for #<Filter id: 1062414239, search: nil, role_id: 86, created_at: "2025-01-29 18:01:28.909741992 +0000", updated_at: "2025-01-29 18:01:28.909741992 +0000", taxonomy_search: "(organization_id ^ (447626452))", override: true>
test/models/filter_test.rb:237:in `block in <class:FilterTest>'
|
Run rake test:units:
test/models/filter_test.rb#L450
Failure: test_0017_filter remains unlimited when no organization assigned
NoMethodError: undefined method `organization_ids=' for #<Filter id: nil, search: "", role_id: 95, created_at: nil, updated_at: nil, taxonomy_search: nil, override: false>
test/models/filter_test.rb:179:in `block in <class:FilterTest>'
|
Run rake test:units:
test/models/filter_test.rb#L450
Failure: test_0025_enforce_inherited_taxonomies builds the taxonomy search string
NoMethodError: undefined method `organizations' for #<Filter id: 1062414244, search: nil, role_id: 97, created_at: "2025-01-29 18:01:29.244848532 +0000", updated_at: "2025-01-29 18:01:29.244848532 +0000", taxonomy_search: "(organization_id ^ (447626455))", override: false>
test/models/filter_test.rb:248:in `block in <class:FilterTest>'
|
Run rake test:units:
test/models/role_test.rb#L450
Failure: test_0006_does not touch filters that do not support taxonomies even if they override
NoMethodError: undefined method `organizations' for #<Filter id: 1062414247, search: nil, role_id: 100, created_at: "2025-01-29 18:01:57.141860000 +0000", updated_at: "2025-01-29 18:01:57.191462000 +0000", taxonomy_search: nil, override: true>
test/models/role_test.rb:425:in `block (3 levels) in <class:RoleTest>'
|
Run rake test:units:
test/models/role_test.rb#L450
Failure: test_0005_does not touch filters that do not support taxonomies
NoMethodError: undefined method `organizations' for #<Filter id: 1062414249, search: nil, role_id: 101, created_at: "2025-01-29 18:01:57.289593000 +0000", updated_at: "2025-01-29 18:01:57.289593000 +0000", taxonomy_search: nil, override: false>
test/models/role_test.rb:416:in `block (3 levels) in <class:RoleTest>'
|
Run rake test:units:
test/models/role_test.rb#L450
Failure: test_0001_automatically propagates taxonomies to filters after save
NoMethodError: undefined method `organizations' for #<Filter id: 1062414252, search: nil, role_id: 103, created_at: "2025-01-29 18:01:57.538267000 +0000", updated_at: "2025-01-29 18:01:57.598851000 +0000", taxonomy_search: "(organization_id ^ (447626474))", override: false>
test/models/role_test.rb:378:in `block (3 levels) in <class:RoleTest>'
|
Run rake test:units:
test/models/role_test.rb#L450
Failure: test_0002_automatically propagates taxonomies only to inheriting filters
NoMethodError: undefined method `organizations' for #<Filter id: 1062414257, search: nil, role_id: 106, created_at: "2025-01-29 18:01:58.131232000 +0000", updated_at: "2025-01-29 18:01:58.218082000 +0000", taxonomy_search: "(organization_id ^ (447626479))", override: true>
test/models/role_test.rb:386:in `block (3 levels) in <class:RoleTest>'
|
Run rake test:units:
test/models/filter_test.rb#L235
Failure: test_0006_taxonomies can be assigned only if resource allows it
ActiveRecord::AssociationTypeMismatch: Taxonomy(#22340) expected, got 447626484 which is an instance of Integer(#7220)
test/models/filter_test.rb:160:in `block (2 levels) in <class:FilterTest>'
|
Run rake test:units:
test/models/filter_test.rb#L450
Failure: test_0005_removing all organizations and locations from filter nilify taxonomy search
NoMethodError: undefined method `organization_ids=' for #<Filter id: nil, search: "", role_id: 127, created_at: nil, updated_at: nil, taxonomy_search: nil, override: false>
test/models/filter_test.rb:146:in `block (2 levels) in <class:FilterTest>'
|
Loading