- last update
over 1 year ago Build Successful - last update
over 1 year ago 29,949 pass, 3 fail - 🇳🇱Netherlands Lendude Amsterdam
This was daily target for the Bug Smash Initiative.
Local testing has a hiccup so no idea if this works
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Looks good to me!
Should we also do the only other missing block plugin config dependency I could find in this issue, rather than creating a new issue?
That only other one is:
UserLoginBlock
, which depends onuser.settings
. The last submitted patch, 20: 2843433-20-TEST-ONLY.patch, failed testing. View results →
- Status changed to Needs work
over 1 year ago 2:15pm 15 August 2023 - 🇺🇸United States smustgrave
Only moving to NW as the full patch in #20 caused some failures it appears.
- last update
over 1 year ago Build Successful - last update
over 1 year ago 30,042 pass, 4 fail - Assigned to yash.rode
- last update
over 1 year ago 29,949 pass, 16 fail - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 30,047 pass - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 1:22pm 18 August 2023 - Status changed to Needs work
over 1 year ago 7:59am 21 August 2023 - 🇫🇮Finland lauriii Finland
-
--- a/core/modules/block/tests/src/Functional/BlockSystemBrandingTest.php +++ b/core/modules/block/tests/src/Functional/BlockSystemBrandingTest.php
The test should assert that the config dependency is set correctly. You could check
\Drupal\Tests\system\Kernel\Block\SystemMenuBlockTest::testSystemMenuBlockConfigDependencies
for an example. -
+++ b/core/modules/system/src/Plugin/Block/SystemBrandingBlock.php @@ -181,4 +184,11 @@ public function getCacheTags() { + return $this->addDependency('config', 'system.site');
At least according to
\Drupal\Component\Plugin\DependentPluginInterface::calculateDependencies
this method is supposed to return an array 🤔\Drupal\Core\Entity\DependencyTrait::addDependency
returns this.
-
- Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
over 1 year ago Not currently mergeable. - @yashrode opened merge request.
- last update
over 1 year ago 30,056 pass - last update
over 1 year ago 29,958 pass, 16 fail - last update
over 1 year ago 29,971 pass, 2 fail - last update
over 1 year ago 30,056 pass - Status changed to Needs review
over 1 year ago 9:13am 23 August 2023 - 🇮🇳India yash.rode pune
Addressed Lauri's feedback from #29 🐛 Branding block should include config dependency on system.site config Needs work
- last update
over 1 year ago 30,056 pass - Status changed to RTBC
over 1 year ago 5:13pm 23 August 2023 - Status changed to Needs work
over 1 year ago 7:03am 24 August 2023 - last update
over 1 year ago 30,002 pass, 31 fail - last update
over 1 year ago 29,965 pass, 8 fail - Status changed to Needs review
over 1 year ago 12:35pm 24 August 2023 - 🇮🇳India yash.rode pune
I have added the update path test, I have to comment out the
core/modules/system/src/Plugin/Block/SystemBrandingBlock.php
-- the update path test (BlockConfigUpdateTest.php
) will fail as there will be 'system.site' config already existing before running the update. Is there any other way to test the update path, otherwise we will have to get rid of this test at the end. - last update
over 1 year ago 29,966 pass, 8 fail - Status changed to Needs work
over 1 year ago 5:47pm 26 August 2023 - Status changed to Needs review
over 1 year ago 6:47am 28 August 2023 - 🇮🇳India yash.rode pune
I have explained about the test failures in #35 🐛 Branding block should include config dependency on system.site config Needs work .
- Status changed to Needs work
over 1 year ago 8:48am 28 August 2023 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
#35 + #38: Why doesn't that just mean that the test is inadequate at simulating the actual problem? 🤔
Also, nothing in the issue summary is saying that
system.site
does not exist at some point. It's saying that updates tosystem.site
are not immediately reflected on the site, which points to at least one missing cache tag. This was discussed at the very start of the issue.The missing config dependency is just a related bug.
This means the test coverage is incomplete, as is the issue summary.
- Status changed to Needs review
over 1 year ago 7:16am 29 August 2023 - 🇮🇳India yash.rode pune
I agree that the test is inadequate at simulating the actual problem. Is there a way to fix it so that we don't have to comment out newly added
calculateDependencies
and still passcore/modules/block/tests/src/Functional/BlockConfigUpdateTest.php
- Assigned to yash.rode
- Status changed to Needs work
over 1 year ago 1:48pm 30 August 2023 - 🇮🇳India yash.rode pune
Creating a different test only patch for Update path test and remove it from the original test.
- last update
over 1 year ago 30,098 pass - 🇮🇳India yash.rode pune
This is a test only patch to test
I don't think this is working. Maybe you could start by writing an upgrade path test so that we can validate that the post update we come up with works?
Keeping it assigned to myself because, we still need to test the caching thing by creating two users and checking to see if the name gets updated. It worked perfectly fine when I tried changing the name using Drush command and one user, next thing is to be done is to check through UI and drush with two different users.
- last update
over 1 year ago 30,006 pass, 8 fail - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 7:33am 1 September 2023 - 🇮🇳India yash.rode pune
I tried on my local, with two different users and changing the name through UI. If I change the name using one user and check it with another user, it is reflecting consistently. So, I cannot reproduce the main problem discussed in IS, other than that the proposed solution is in the MR. Update path test is posted as a test only patch in #42 🐛 Branding block should include config dependency on system.site config Needs work .
- Status changed to Needs work
about 1 year ago 7:44am 2 October 2023 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Close, but a few nits and an update path that is slightly too eager 😅
- last update
about 1 year ago 30,317 pass, 62 fail - last update
about 1 year ago 30,371 pass - Status changed to Needs review
about 1 year ago 10:33am 3 October 2023 - Status changed to RTBC
about 1 year ago 2:06pm 3 October 2023 - last update
about 1 year ago 30,377 pass - last update
about 1 year ago 30,377 pass - last update
about 1 year ago 30,382 pass - last update
about 1 year ago 30,392 pass - last update
about 1 year ago 30,397 pass - last update
about 1 year ago 30,397 pass - last update
about 1 year ago 30,414 pass - last update
about 1 year ago 30,420 pass - last update
about 1 year ago 30,426 pass - last update
about 1 year ago 30,427 pass - last update
about 1 year ago 30,437 pass - last update
about 1 year ago 30,456 pass - last update
about 1 year ago 30,464 pass - last update
about 1 year ago 30,483 pass - last update
about 1 year ago Build Successful 45:46 41:56 Running45:49 5:21 Running- last update
about 1 year ago 30,511 pass - Status changed to Needs work
about 1 year ago 10:03pm 9 November 2023 - 🇺🇸United States xjm
The issue summary includes both patches and a merge request. There should be only one canonical patch or merge request listed.
Please close any non-canonical merge request(s) and hide non-canonical patches. If you don't have permission to close merge requests, please hide any non-canonical patches and then document which merge request(s) should be closed in an issue comment and the IS. This will allow a committer to close them for you. Thanks!
- 🇺🇸United States Amber Himes Matz Portland, OR USA
Hiding patch files, as the MR contains the latest solution.
- Status changed to Needs review
about 1 year ago 10:22pm 9 November 2023 - Status changed to Needs work
about 1 year ago 1:27pm 10 November 2023 - 🇺🇸United States smustgrave
Removing tests tag because they exist.
Have left a comment on the 2 open threads, can't resolve them but they seem good.
May be super simple but believe this will need a CR actually. Existing contrib themes may ship with a default branding block config that won't include this dependency.
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Found several bugs 😅 — see my review on the merge request.
Existing contrib themes may ship with a default branding block config that won't include this dependency.
Good point! That is a reason to implement this in a Block presave hook in
system.module
. That way, those cases would get updated automatically too. - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Tests are only passing because there are no update path tests yet. That would've automatically surfaced pretty much all of the problems I've just pointed out manually.
I recommend starting with that 😊