Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RewriteFilterBehavior::rewriteCondition() Argument and return type do not match #45

Open
lippserd opened this issue Apr 8, 2022 · 0 comments · May be fixed by #74
Open

RewriteFilterBehavior::rewriteCondition() Argument and return type do not match #45

lippserd opened this issue Apr 8, 2022 · 0 comments · May be fixed by #74
Assignees
Labels
bug Something isn't working

Comments

@lippserd
Copy link
Member

lippserd commented Apr 8, 2022

RewriteFilterBehavior::rewriteCondition() expects Filter\Condition but allows Filter\Rule to be returned. This can also return Chain, such as in FlattenedObjectVars. This breaks any behavior that follows a behavior that returns something other than Filter\Condition, as behaviors are processed sequentially, using the previous behavior's result for the current one.

@lippserd lippserd added the bug Something isn't working label Apr 8, 2022
@lippserd lippserd added this to the v0.4.0 milestone Apr 8, 2022
lippserd added a commit to Icinga/icingadb-web that referenced this issue Apr 11, 2022
FlattenedObjectvars returns an incompatible type for a subsequent
behavior:

Icinga/ipl-orm#45
lippserd added a commit to Icinga/icingadb-web that referenced this issue Apr 13, 2022
FlattenedObjectvars returns an incompatible type for a subsequent
behavior:

Icinga/ipl-orm#45
lippserd added a commit to Icinga/icingadb-web that referenced this issue Apr 27, 2022
FlattenedObjectvars returns an incompatible type for a subsequent
behavior:

Icinga/ipl-orm#45
lippserd added a commit to Icinga/icingadb-web that referenced this issue May 3, 2022
FlattenedObjectvars returns an incompatible type for a subsequent
behavior:

Icinga/ipl-orm#45
lippserd added a commit to Icinga/icingadb-web that referenced this issue May 5, 2022
FlattenedObjectvars returns an incompatible type for a subsequent
behavior:

Icinga/ipl-orm#45
lippserd added a commit to Icinga/icingadb-web that referenced this issue May 19, 2022
FlattenedObjectvars returns an incompatible type for a subsequent
behavior:

Icinga/ipl-orm#45
lippserd added a commit to Icinga/icingadb-web that referenced this issue May 23, 2022
FlattenedObjectvars returns an incompatible type for a subsequent
behavior:

Icinga/ipl-orm#45
nilmerg pushed a commit to Icinga/icingadb-web that referenced this issue May 24, 2022
FlattenedObjectvars returns an incompatible type for a subsequent
behavior:

Icinga/ipl-orm#45
@nilmerg nilmerg removed this from the v0.4.0 milestone Jun 15, 2022
@nilmerg nilmerg self-assigned this Aug 19, 2022
nilmerg added a commit that referenced this issue Aug 19, 2022
This relies on the fact that the `FilterProcessor` re-evaluates
the behaviors for a changed filter. So any skipped behaviors
then get their chance to process the result.

fixes #45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants