Skip to content
Snippets Groups Projects

Issue #3246203: Replace PreCommitEvent with PreApplyEvent

1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Ted Bowman
    Ted Bowman @tedbow started a thread on the diff
  • 1 1 <?php
    2 2
    3 namespace Drupal\Tests\automatic_updates\Unit;
    3 namespace Drupal\Tests\automatic_updates\Kernel\ReadinessValidation;
    • I think we were using this namespace for tests that are "Readiness" checks. This validator deals with after an update is staged

    • I think all other validators tested in this namespace at least listen to \Drupal\automatic_updates\Event\ReadinessCheckEvent though some also listen to other events. Maybe we should actually change this namespace to just \Validation

      Another thing this brings up is that for validators such as PendingUpdatesValidator that subscribe to ReadinessCheckEvent and PreStartEvent the fact that we use assertCheckerResultsFromManager() to test that it listens to ReadinessCheckEvent but not PreStartEvent if it is important that it listens to PreStartEvent we should also add test coverage for this too. I don't think it would be that are hard. obviously another issue.

      Also this points out that most of validators that listen to ReadinessCheckEvent should also listen to PreStartEvent because the update maybe started from the API and not just the form. For instance DiskSpaceValidator and ComposerExecutableValidator should be able both stop an update trigger via an API call but now they can't

      I will make follow ups. Not sure this needs to be done before we finish refactoring logic into package_manager.

    • Please register or sign in to reply
  • Ted Bowman
  • Adam G-H added 1 commit

    added 1 commit

    Compare with previous version

  • merged

  • Please register or sign in to reply
    Loading