- Merge request !404Issue #2991337: How to get database connection in the code? Which method is recomended? โ (Closed) created by voleger
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - Status changed to Needs review
over 1 year ago 1:44pm 18 May 2023 - Status changed to Needs work
over 1 year ago 6:52pm 22 May 2023 - ๐บ๐ธUnited States smustgrave
Seems to have CI failures.
Have not reviewed.
Marios Anagnostopoulos โ made their first commit to this issueโs fork.
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 29,877 pass - Status changed to Needs review
over 1 year ago 6:10pm 24 July 2023 - Status changed to RTBC
over 1 year ago 3:51pm 2 August 2023 - ๐บ๐ธUnited States smustgrave
There doesn't appear to be any open threads and reviewing the text I think that makes sense.
The examples for when to use for what test type is good. Wonder if this should also be updated https://www.drupal.org/docs/drupal-apis/database-api/instantiating-a-dat... โ
Will leave the Follow up tag but it's from 5 years ago I think the issue being discussed then may be fixed as far as referencing the database from functional?
- last update
over 1 year ago 29,946 pass - last update
over 1 year ago 29,946 pass - last update
over 1 year ago 29,953 pass - last update
over 1 year ago 29,953 pass - last update
over 1 year ago 29,958 pass - last update
over 1 year ago 29,946 pass, 2 fail - last update
over 1 year ago 29,958 pass - last update
over 1 year ago 29,959 pass - last update
over 1 year ago 29,970 pass, 2 fail - last update
over 1 year ago 30,049 pass - Status changed to Needs work
over 1 year ago 4:15pm 20 August 2023 The Needs Review Queue Bot โ tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide โ to find step-by-step guides for working with issues.
- last update
over 1 year ago 30,056 pass - last update
over 1 year ago 30,056 pass - Status changed to RTBC
over 1 year ago 7:44am 23 August 2023 - ๐บ๐ฆUkraine voleger Ukraine, Rivne
I'm unsure why phpstan failed, as MR introduced no code changes except docblock.
- Status changed to Needs work
over 1 year ago 4:34am 24 August 2023 The Needs Review Queue Bot โ tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide โ to find step-by-step guides for working with issues.
- Status changed to Needs review
over 1 year ago 8:44am 25 August 2023 - ๐ซ๐ทFrance nod_ Lille
Not sure how to fix the problem with phpstan. When I try to manually check the changed file it tells me
[ERROR] No files found to analyse.
For now let's tell the bot to skip this one.
- Status changed to RTBC
over 1 year ago 10:40am 25 August 2023 - ๐บ๐ฆUkraine voleger Ukraine, Rivne
Thanks for looking into the bot check issue.
I'm restoring the status before the bot checks. - last update
over 1 year ago 30,058 pass - Status changed to Needs work
over 1 year ago 12:39pm 25 August 2023 - ๐บ๐ธUnited States tr Cascadia
+ * In Object Oriented code: + * - If possible, use dependency injection to use "database" service or + * $container->get('database'); to inject the database connection;
The indentation is wrong, isn't it? The dash should be in the same column as the "I" on the previous line.
Also, ending bullet points with a semi-colon is weird. They should end in a period. If this were all one sentence without bullet points, then perhaps using a semi-colon to separate the clauses would be acceptable, but it would be a really long and confusing sentence with all those clauses. Better IMO to stick with the bullet points and the conventional bullet point punctuation.+ * - In unit tests, we do not have a booted kernel or a built container. A + * unit tests which need a database service should be converted to a + * kernel test;
Instead of "A unit tests which need" it should be "A unit test that needs" or "Unit tests that need". Note the use of the singular vs plural forms, as well as the use of "that" instead of "which".
Are we still using i.e. and e.g. in documentation? I thought the community was against it, going back more than 10 years now ... I have no problems with this usage, just pointing this out because we don't want to have a regression in our usage. See for example #2760911: Use of "e.g." and "i.e." โ .
- Status changed to Needs review
6 months ago 3:44am 30 June 2024 - ๐ณ๐ฟNew Zealand quietone
Update the MR to address items there and in #60
- Status changed to Needs work
4 months ago 9:05pm 7 August 2024 - Status changed to Needs review
4 months ago 11:18pm 7 August 2024 - Status changed to RTBC
4 months ago 11:38pm 7 August 2024 - Status changed to Fixed
4 months ago 2:19pm 8 August 2024 Automatically closed - issue fixed for 2 weeks with no activity.