#537 - Arrays with nested filters returned the wrong value.
v5.0.0
Changed
Drop support for JRuby.
Drop support for Ruby 2.5 and 2.6, adding support for 3.1
Drop support for Rails 5.0 and 5.1
ActiveInteraction::Inputs no longer inherits from Hash though it still has most of the methods
provided by Hash (methods that write were removed).
Removed Filter#clean (use Filter#process and call #value on the result)
The given? method has been moved onto inputs. (see Upgrade section below)
#503 - The record filter now treats blank strings value as nil. This was missed in the 4.0 update.
The type_check callback has been renamed to filter to better match the reality of what it does.
(see Upgrade section below)
ActiveIneraction::FilterColumn is now ActiveInteraction::Filter::Column
Errors on the array filter will now be indexed if the Rails config index_nested_attribute_errors
is true or the :index_errors option is set to true. The :index_errors option always overrides
the Rails config.
Invalid nested errors (:invalid_nested) are gone. Instead the nested errors will appear as they would
in Rails if they were a has_many relationship being assigned attributes through a parent.
(see Upgrade section below)
Added
Filter#process which returns an Input.
Fixed
When passing an ActiveRecord::Relation in an array filter with no inner
filter, the value returned was an ActiveRecord::Relation instead of an
Array.
#537[] - Arrays with nested filters returned the wrong value.
[5.0.0][] (2022-06-24)
Changed
Drop support for JRuby.
Drop support for Ruby 2.5 and 2.6, adding support for 3.1
Drop support for Rails 5.0 and 5.1
ActiveInteraction::Inputs no longer inherits from Hash though it still has most of the methods
provided by Hash (methods that write were removed).
Removed Filter#clean (use Filter#process and call #value on the result)
The given? method has been moved onto inputs. (how to upgrade)
#503[] - The record filter now treats blank strings value as nil. This was missed in the 4.0 update.
The type_check callback has been renamed to filter to better match the reality of what it does.
(how to upgrade)
ActiveIneraction::FilterColumn is now ActiveInteraction::Filter::Column
Errors on the array filter will now be indexed if the Rails config index_nested_attribute_errors
is true or the :index_errors option is set to true. The :index_errors option always overrides
the Rails config.
Invalid nested errors (:invalid_nested) are gone. Instead the nested errors will appear as they would
in Rails if they were a has_many relationship being assigned attributes through a parent.
(how to upgrade)
Added
Filter#process which returns an Input.
Fixed
When passing an ActiveRecord::Relation in an array filter with no inner
filter, the value returned was an ActiveRecord::Relation instead of an
Array.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps active_interaction from 3.6.2 to 5.1.1.
Release notes
Sourced from active_interaction's releases.
... (truncated)
Changelog
Sourced from active_interaction's changelog.
... (truncated)
Commits
99f714f
fix #539 by not caching defaultsf50806d
bump to 5.1.029d077b
fix #537 by correcting nested array values4c237a4
make sure we can run tests individually5aaaf99
add a record filter integration test1891bc4
split filters into sections9333ab9
update contributing5d293ba
minimize dependenciese3e44c6
stop locking the bundler version in testsff39db4
fix linkDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)