- Issue created by @wim leers
- ๐บ๐ธUnited States tedbow Ithaca, NY, USA
Wim Leers โ credited tedbow โ .
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Discussed with @tedbow, pulling into sprint.
- Status changed to Needs review
over 1 year ago 10:44am 19 April 2023 - last update
over 1 year ago 705 pass, 10 fail The last submitted patch, 5: 3354914-5.patch, failed testing. View results โ
- Status changed to Needs work
over 1 year ago 11:08am 19 April 2023 - ๐บ๐ธUnited States tedbow Ithaca, NY, USA
+++ b/package_manager/package_manager.install @@ -23,6 +25,14 @@ function package_manager_requirements(string $phase) { + 'title' => t('Composer version'),
Maybe
'Package Manager Composer version'To give the user more context
or we could change the title to "Package Manager"
and add more detailsComposer version: X
Composer path: Y
File copier in use: Rsync - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
I first thought the same, but โฆ is helpful to know in general, I think?
Also, the best practice is AFAICT to have separate entries for each semantically separate thing? For example,
jsonapi_requirements()
generates separate entries for:- JSON:API multilingual support
- JSON:API revision support
- JSON:API allowed operations
- ๐บ๐ธUnited States tedbow Ithaca, NY, USA
I first thought the same, but โฆ Composer version is helpful to know in general, I think?
Yes but I think we want to be very clear incase there multiple versions of composer on the system. The admin should not assume this what would used on the command line by default and should not assume whats on the command line will be used by Package Manager
- Assigned to kunal.sachdev
- Open on Drupal.org โCore: 10.1.x + Environment: PHP 8.1 & MySQL 8last update
over 1 year ago Not currently mergeable. - @kunalsachdev opened merge request.
- last update
over 1 year ago 800 pass, 8 fail - last update
over 1 year ago 800 pass, 8 fail - last update
over 1 year ago 810 pass - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 9:03am 20 June 2023 - Assigned to omkar.podey
- Assigned to kunal.sachdev
- Status changed to Needs work
over 1 year ago 10:16am 20 June 2023 - ๐ฎ๐ณIndia omkar.podey
Could you add tests or update current ones and reassign ?
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 12:10pm 20 June 2023 - ๐ฎ๐ณIndia kunal.sachdev
Do we really need a test for this as there is nothing to test here, it just shows some information on status report page?
- ๐บ๐ธUnited States tedbow Ithaca, NY, USA
Yes we need to test a few things
- We need to test if we override the config package_manager.settings.executables.composer to different path that this shows up in the status report and that if we don't it points to the actual composer
- that all the labels show up
- if we change the syncer to php then it also changes in the report
- We can't really test changing the version but just test that current version is shown
Relating to ๐ Warn about package_manager errors and warning on the status report page Needs work because this would also show an error if we can't find the composer executable.
- Assigned to kunal.sachdev
- Status changed to Needs work
over 1 year ago 2:25pm 20 June 2023 - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 810 pass - last update
over 1 year ago 810 pass - last update
over 1 year ago 810 pass - last update
over 1 year ago 810 pass, 2 fail - last update
over 1 year ago 813 pass, 2 fail - last update
over 1 year ago 813 pass, 1 fail - last update
over 1 year ago 817 pass - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 11:23am 22 June 2023 - Assigned to kunal.sachdev
- Status changed to Needs work
over 1 year ago 12:59pm 22 June 2023 - ๐บ๐ธUnited States phenaproxima Massachusetts
I think this is a great start! But I think we could sort of consolidate the requirements to make them a little more useful and clean.
- last update
over 1 year ago 817 pass - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 11:32am 23 June 2023 - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 802 pass, 4 fail - last update
over 1 year ago 802 pass, 4 fail - last update
over 1 year ago 802 pass, 4 fail - ๐ฎ๐ณIndia kunal.sachdev
Discussed with @Wim Leers and we understand why a simpler test is preferable but that mocking of composer is not possible in a functional test. But converting this to a kernel or unit test is not possible because we need to test
hook_requirements()
?
@phenaproxima could you please clarify as you suggested in scrum that maybe we could try to do mocking of composer to simplify this test? - Assigned to phenaproxima
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 808 pass, 2 fail - last update
over 1 year ago 813 pass - Assigned to kunal.sachdev
- ๐บ๐ธUnited States phenaproxima Massachusetts
What do you think of this?
This is a simpler test because we're not testing as much stuff. I'm not sure we get a ton of benefit by testing different combinations of file syncer + executables, for the simple reason that they are separate requirements that don't affect each other. So we don't really need to test them in combination, do we?
- last update
over 1 year ago 813 pass - Issue was unassigned.
- Status changed to RTBC
over 1 year ago 7:19am 27 June 2023 - ๐ฎ๐ณIndia kunal.sachdev
Yes, I do agree that we don't necessarily have to test different combinations of file syncer + executables, and now the test is much simpler๐๐ป
- Assigned to tedbow
- ๐บ๐ธUnited States phenaproxima Massachusetts
Thanks, @kunal.sachdev! Assigning to @tedbow for final review, since he's really good at finding important things others might have missed...
- Assigned to kunal.sachdev
- Status changed to Needs work
over 1 year ago 2:43pm 27 June 2023 - ๐บ๐ธUnited States tedbow Ithaca, NY, USA
I see I was the one that suggested putting rysnc info on this in #8 but that was before ๐ Warn strongly if the rsync file syncer is not in use Fixed was committed. Now everybody should using rsync or they will already get a warning that they are using something that is not recommended.
In light of that I think we should remove the rsync section. Also see my MR comments
- last update
over 1 year ago Custom Commands Failed - Assigned to phenaproxima
- last update
over 1 year ago 809 pass - ๐บ๐ธUnited States phenaproxima Massachusetts
Attaching screenshots of how the requirement looks now.
- Assigned to tedbow
- Status changed to Needs review
over 1 year ago 4:08pm 27 June 2023 - ๐บ๐ธUnited States phenaproxima Massachusetts
I've addressed all of @tedbow's feedback that I can. Reassigning for re-review.
- last update
over 1 year ago 809 pass - Assigned to phenaproxima
- Status changed to Needs work
over 1 year ago 4:59pm 27 June 2023 - ๐บ๐ธUnited States tedbow Ithaca, NY, USA
@phenaproxima thanks for addressing my feedback.
See MR comments
- last update
over 1 year ago 809 pass - last update
over 1 year ago 809 pass - Assigned to tedbow
- Status changed to Needs review
over 1 year ago 5:37pm 27 June 2023 - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 811 pass - Assigned to phenaproxima
- Status changed to Needs work
over 1 year ago 6:43pm 27 June 2023 - last update
over 1 year ago 811 pass - last update
over 1 year ago 811 pass - Status changed to RTBC
over 1 year ago 6:50pm 27 June 2023 - last update
over 1 year ago 811 pass -
phenaproxima โ
committed 6d50846a on 3.0.x authored by
kunal.sachdev โ
Issue #3354914 by kunal.sachdev, phenaproxima, Wim Leers, tedbow:...
-
phenaproxima โ
committed 6d50846a on 3.0.x authored by
kunal.sachdev โ
- Status changed to Fixed
over 1 year ago 7:26pm 27 June 2023 - Issue was unassigned.
Automatically closed - issue fixed for 2 weeks with no activity.