- Issue was unassigned.
- Assigned to yash.rode
- Assigned to tedbow
- Status changed to Needs review
almost 2 years ago 1:23pm 20 January 2023 - Status changed to RTBC
almost 2 years ago 7:03pm 23 January 2023 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
That was a step in the right direction, but still not what we're looking for in
package_manager.api.php
.So I took this on, and wrote what I was expecting. While writing it, I was observing how
PathLocator
andValidationResult
are used in all validators & excluders that exist today.In doing so, I discovered that there are zero interactions across all validators & excluders with
ValidationResult
! They all use::addError()
andaddWarning()
βValidationResult
is purely internal! So β¦ marked it@internal
. - Status changed to Needs work
almost 2 years ago 7:25pm 23 January 2023 - πΊπΈUnited States tedbow Ithaca, NY, USA
re #16
@Wim Leers
They all use ::addError() and addWarning() β ValidationResult is purely internal! So β¦ marked it @internal.
I was wondering about this but if you catch a
\Drupal\package_manager\Exception\StageValidationException
which I think we would want outside code to do then they would call\Drupal\package_manager\Exception\StageValidationException::getResults
which return themValidationResult
objects. So in that case we can't change the methods onValidationResult
, without BC concerns, correct? - Assigned to wim leers
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Good call! Will address that.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
While addressing #17, I was forced to document
StageException
to be able to talk aboutStageValidationException
. In doing that, I discovered thatpackage_manager
onlythrow
sStageException
, nevercatch
es it β onlypackage_manager
actuallycatch
es these exceptions!That's how I discovered that
StatusCheckEvent
should probably be dispatched by Package Manager, and not just provided by it.See π Consider moving hook_requirements() + \Drupal\automatic_updates\Validation\StatusCheckRequirements to package_manager Active .
- Assigned to tedbow
- Status changed to RTBC
almost 2 years ago 5:17pm 25 January 2023 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Documented
StageValidationException
as if π Throw an exception if stopPropagation() called for `PreOperationStageEvent` and no error has been added Fixed is already completed. - Assigned to wim leers
- Status changed to Needs work
almost 2 years ago 6:18pm 1 February 2023 - @wim-leers opened merge request.
- Assigned to tedbow
- Status changed to RTBC
almost 2 years ago 5:02pm 16 February 2023 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
I tried closing the old MR but am not allowed to.
I replicated the exact commit history against the
3.0.x
branch in a new MR.The clarifications @tedbow posted at https://git.drupalcode.org/project/automatic_updates/-/merge_requests/65... were AFAICT intended to be posted on
ValidationResult
's@internal
comment?I fixed that in https://git.drupalcode.org/project/automatic_updates/-/merge_requests/71... β and it means that the MR's scope now actually matches the issue title. ππ
-
tedbow β
committed c3c07f93 on 3.0.x authored by
Wim Leers β
Issue #3323003 by tedbow, Wim Leers, yash.rode: Mark FailureMarker @...
-
tedbow β
committed c3c07f93 on 3.0.x authored by
Wim Leers β
- πΊπΈUnited States tedbow Ithaca, NY, USA
updated π± Drupal 10 Core Roadmap for Automatic Updates Active
- Issue was unassigned.
- Status changed to Fixed
almost 2 years ago 4:41pm 17 February 2023 Automatically closed - issue fixed for 2 weeks with no activity.