- @yashrode opened merge request.
- 🇮🇳India yash.rode pune
The test failure are because of the database which gets added while running tests. Should I delete at the start and create that database(
simpletest_original_default
) at the end of all the failing tests? - Assigned to wim leers
- Status changed to Needs review
over 2 years ago 2:04pm 3 February 2023 - Assigned to yash.rode
- Status changed to Needs work
over 2 years ago 4:02pm 3 February 2023 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
This looks great, but:
- we should keep the
sites.php
check - we should allow configuring which database connections to ignore:
simpletest_default_original
is one, but there could be e.g. database connections to e-commerce systems, warehouse systems, ERPs, and whatever else — those database connections are not Drupal sites! - additionally, we could instead try querying each of the databases, and verify which ones are an actual Drupal site, and only complain about those …
- we should keep the
- 🇮🇳India yash.rode pune
I think, No databases are added during build and functional tests so ignoring
simpletest_original_default
for multisite detection
in kernelTestBase will pass the tests. - Assigned to wim leers
- Status changed to Needs review
over 2 years ago 1:29pm 6 February 2023 - Assigned to yash.rode
- Status changed to Needs work
over 2 years ago 1:39pm 6 February 2023 - Assigned to wim leers
- Status changed to Needs review
over 2 years ago 7:50am 8 February 2023 - Assigned to yash.rode
- Status changed to Needs work
over 2 years ago 8:55am 8 February 2023 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Bunch of nits, and one very scary thing that definitely has to be addressed before this can land! 😄
- Assigned to wim leers
- Status changed to Needs review
over 2 years ago 10:49am 8 February 2023 - 🇮🇳India yash.rode pune
Need help with config inspector, See screen shot on the MR.
- Assigned to yash.rode
- Issue was unassigned.
- Status changed to Needs work
over 2 years ago 12:53pm 13 February 2023 - @yashrode opened merge request.
- Assigned to wim leers
- Status changed to Needs review
over 2 years ago 11:47am 15 February 2023 - Assigned to yash.rode
- Status changed to Needs work
over 2 years ago 1:39pm 15 February 2023 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
I would have fixed the nits myself if the remaining critical bug had been fixed: https://git.drupalcode.org/project/automatic_updates/-/merge_requests/70....
- Assigned to wim leers
- Status changed to Needs review
over 2 years ago 11:03am 16 February 2023 - Status changed to Needs work
over 2 years ago 1:35pm 16 February 2023 - 🇺🇸United States phenaproxima Massachusetts
I noticed a couple of minor things.
- Assigned to yash.rode
- Assigned to wim leers
- Status changed to Needs review
about 2 years ago 7:42am 17 February 2023 - Issue was unassigned.
- Status changed to RTBC
about 2 years ago 11:57am 17 February 2023 - Status changed to Needs review
about 2 years ago 1:37pm 17 February 2023 - Assigned to phenaproxima
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Sorry, I should have pointed this out before -- but this really needs a comment to explain what's going on. It's not clear how the presence of multiple databases relates to the presence of a multisite, especially since (AFAIK) a single site can have multiple database connections...defined in settings.php.
I'm happy to add that so there's not more back-and-forth, but I think this needs to be clarified.
Please do.
How did we get the name <code>simpletest_original_default
? Is that from upstream? If so, what if it changes?
It's documented right there:+ // Ignore the backed up original database connection. + // @see \Drupal\Core\Test\TestSetupTrait::changeDatabasePrefix() + $this->config('package_manager.settings') + ->set('multisite_check_ignored_database_connections', ['simpletest_original_default']) + ->save();
😅
- 🇺🇸United States phenaproxima Massachusetts
Welp, that's what I get for reviewing before coffee. ☕️
- Issue was unassigned.
- 🇺🇸United States phenaproxima Massachusetts
So I still don't feel comfortable merging (or even modifying) this, because I absolutely do not understand the proposed resolution.
As far as I know, database connection info, even for multiple databases, is resolved from settings.php. That means the database stuff is figured out after the current site path is resolved. I don't see how checking for multiple databases helps us detect a multisite, and I don't think the test coverage necessarily shows us that. Database connection info is not defined in sites.php.
This is something I need to discuss with Wim and/or Ted to confirm, but I strongly suspect that this is not the right fix. For what I can tell, all we're detecting here is a single site that has multiple database connections, which is not what our goal is here.
- Assigned to phenaproxima
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
#37: Isn't the answer right in the issue summary you wrote?
- In case of a single site, there is no risk in using AU.
- In case of a multi site with a single DB (i.e. a single uniquesite: many sites from a single DB, with multiple domains served), there is no risk in using AU. 👈 That's what this issue is about.
- In case of a multi site with multiple DBs (i.e. many unique sites), there is a risk in using AU. 👈 That's what this issue is about.
In HEAD, we're conflating 2 & 3. With this MR, we aren't anymore.
Perhaps you're getting hung up on the "multisite" nomenclature? Perhaps we ought to rename it to
SingleSiteOrMultiSiteWithSingleDatabaseValidator
or justSingleDrupalDatabaseValidator
? - 🇺🇸United States phenaproxima Massachusetts
Isn't the answer right in the issue summary you wrote?
It is not. Here's the original issue summary: https://www.drupal.org/node/3267646/revisions/12573129/view →
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Okay, looks like @tedbow added that in #10: https://www.drupal.org/node/3267646/revisions/view/12891482/12903165 → .
Still, where is the problem in the more detailed explanation I provided in #38?
- Assigned to wim leers
- Status changed to Needs work
about 2 years ago 3:08pm 23 February 2023 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Discussed in detail yesterday with @yash.rode, @phenaproxima and @tedbow.
Conclusion: we should stop checking the database altogether, that was a wrong path we went down. The only thing that can sa(f)(n)ely be tested is if there's >1 unique site directory that is actively being used.
- Issue was unassigned.
- Status changed to RTBC
about 2 years ago 3:40pm 23 February 2023 -
phenaproxima →
committed 79b7c59a on 3.0.x authored by
yash.rode →
Issue #3267646 by yash.rode, Wim Leers, kunal.sachdev, phenaproxima:...
-
phenaproxima →
committed 79b7c59a on 3.0.x authored by
yash.rode →
- Status changed to Fixed
about 2 years ago 4:27pm 23 February 2023 - 🇺🇸United States phenaproxima Massachusetts
I could find nothing to complain about, and believe me, I tried. Merged! Nice to see this one bite the dust.
Automatically closed - issue fixed for 2 weeks with no activity.