Skip to content

Conversation

@Herafia
Copy link
Contributor

@Herafia Herafia commented Jan 27, 2026

Checklist before requesting a review

Please delete options that are not relevant.

  • I have performed a self-review of my code.
  • I have added tests (when available) that prove my fix is effective or that my feature works.
  • I have updated the CHANGELOG with a short functional description of the fix or new feature.
  • This change requires a documentation update.

Description

  • It fixes !41373
  • respect _skip_rules to skip business rules

Screenshots (if appropriate):

@Herafia Herafia requested review from Rom1-B and stonebuzz January 27, 2026 16:25
@stonebuzz stonebuzz changed the base branch from main to 10.0/bugfixes January 27, 2026 16:39
Copy link
Contributor

@Rom1-B Rom1-B left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add unit tests

@Herafia Herafia self-assigned this Jan 28, 2026
@Herafia
Copy link
Contributor Author

Herafia commented Jan 28, 2026

wait glpi-project/glpi#22871

@Rom1-B Rom1-B force-pushed the fix/skip_rules_param branch from 6934fbf to 0af40d0 Compare February 3, 2026 09:11
@Herafia Herafia force-pushed the fix/skip_rules_param branch from 0af40d0 to fbff91b Compare February 3, 2026 15:32
@Herafia Herafia requested a review from Rom1-B February 3, 2026 15:35
@Rom1-B Rom1-B force-pushed the fix/skip_rules_param branch from fbff91b to 322b69a Compare February 4, 2026 07:06
@Herafia Herafia force-pushed the fix/skip_rules_param branch from 322b69a to 212061d Compare February 4, 2026 14:31
'entities_id' => 0,
'is_recursive' => 1,
]);
$group_tech_id = $group_tech->getID();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is never used no ?

@Herafia Herafia requested a review from stonebuzz February 4, 2026 15:13
Comment on lines 418 to 431
// Observer group may or may not be added depending on the escalation path and GLPI internals.
// If RuleTicket is executed, observer group must be added exactly once

$observer_count = count($group_ticket->find([
'tickets_id' => $ticket_id,
'groups_id' => $group_observer_id,
'type' => \CommonITILActor::OBSERVER
]));

$this->assertContains(
$observer_count,
[0, 1],
'Observer group count must be 0 or 1'
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is either always 0 or always 1, but it should not vary in an CI test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants