- Issue created by @phenaproxima
- Status changed to Postponed
about 2 years ago 1:27pm 27 February 2023 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Nope, that is changing completely in 📌 Refactor exception architecture Fixed . That should land first.
That issue is introducing
class StageException extends \RuntimeException
(and removesStageValidationException
), so I proposeclass ActiveException extends \RuntimeException
? - 🇺🇸United States phenaproxima Massachusetts
That issue is introducing class StageException extends \RuntimeException (and removes StageValidationException), so I propose class ActiveException extends \RuntimeException?
I don't know if that would be the best choice of name, because ComposerInspector::validate() can validate any directory. It may be the active, or it may not. I'd still say ComposerNotReadyException is a clearer name.
- Status changed to Active
about 2 years ago 6:22pm 28 February 2023 - Assigned to yash.rode
- @yashrode opened merge request.
- Assigned to wim leers
- Status changed to Needs review
about 2 years ago 1:50pm 1 March 2023 - Status changed to Needs work
about 2 years ago 2:10pm 1 March 2023 - 🇺🇸United States phenaproxima Massachusetts
This is a great start, but I found a few things.
- Status changed to Needs review
about 2 years ago 10:24am 2 March 2023 - Assigned to yash.rode
- Status changed to Needs work
about 2 years ago 10:55am 2 March 2023 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
One question for @phenaproxima, but a bunch of actionable feedback for @yash.rode 👍
- Assigned to wim leers
- Status changed to Needs review
about 2 years ago 12:13pm 2 March 2023 - Assigned to yash.rode
- Status changed to Needs work
about 2 years ago 9:48am 3 March 2023 - Assigned to wim leers
- Status changed to Needs review
about 2 years ago 12:02pm 3 March 2023 - 🇮🇳India yash.rode pune
I think what @phenaproxima is saying, is in favor of me.
- Issue was unassigned.
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
It doesn't need to be me who reviews this — I think @phenaproxima will want to review this anyway :)
- Status changed to Needs work
about 2 years ago 11:02am 9 March 2023 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
📌 UnknownPathExcluder should use ComposerInspector instead of ComposerUtility Fixed just landed, which requires this MR to be updated.
Also: the
@throws
docs need to be updated — see https://git.drupalcode.org/project/automatic_updates/-/merge_requests/75... - Assigned to kunal.sachdev
- 🇮🇳India kunal.sachdev
I have one question i.e do we want to throw
ComposerNotReadyException
in\Drupal\package_manager\ComposerInspector::validateExecutable
. I think we should throw\Exception
and not
ComposerNotReadyException
becauseComposerNotReadyException
it wraps the details such as where the composer command was run and the related exception, but in I think in\Drupal\package_manager\ComposerInspector::validateExecutable
we don't run a composer command. - 🇺🇸United States phenaproxima Massachusetts
#21, yeah...I think it would make sense to do that.
- 🇮🇳India kunal.sachdev
Ok, so should we change
$working_dir
inComposerNotReadyException
to be optional because in\Drupal\package_manager\ComposerInspector::validateExecutable()
we don't deal with working directory? - 🇺🇸United States phenaproxima Massachusetts
Yup! I think that's fine. If the working dir is not passed to ComposerNotReadyException, it means the problem is with Composer itself, not any particular directory.
- Issue was unassigned.
- Status changed to Needs review
about 2 years ago 9:44am 13 March 2023 - Status changed to Needs work
about 2 years ago 12:16pm 13 March 2023 - 🇺🇸United States phenaproxima Massachusetts
Looks really good to me.
There a few things to tighten up but nothing serious!
- Status changed to Needs review
about 2 years ago 2:44pm 13 March 2023 - Status changed to RTBC
about 2 years ago 3:12pm 13 March 2023 - 🇺🇸United States phenaproxima Massachusetts
Looks good! Merging when tests pass.
-
phenaproxima →
committed 5de80031 on 3.0.x authored by
yash.rode →
Issue #3344583 by yash.rode, kunal.sachdev, phenaproxima, Wim Leers:...
-
phenaproxima →
committed 5de80031 on 3.0.x authored by
yash.rode →
- Status changed to Fixed
about 2 years ago 3:45pm 13 March 2023 Automatically closed - issue fixed for 2 weeks with no activity.