Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
#29 removed files from the patch when re-rolling, since this wasn't an actual re-roll, removing issue credit.
Comment | File | Size | Author |
---|---|---|---|
#43 | 2787529-43.patch | 7.53 KB | quietone |
| |||
#43 | diff.txt | 962 bytes | quietone |
#29 | current_theme_name-2787529-29.patch | 5.9 KB | Ankit.Gupta |
#25 | interdiff-2787529-7-25.txt | 5.35 KB | tobiasb |
#25 | current_theme_name-2787529-25.patch | 7.12 KB | tobiasb |
Issue fork drupal-2787529
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
Chi CreditAttribution: Chi commentedComment #3
alexpott@Chi that would suggest that this functionality is not tested since if anything is saved to configuration with no schema during core testing an error is produced.
Comment #4
Chi CreditAttribution: Chi commentedIt looks like we don't have any special tests for missing schema, at least for condition plugins. This is tested implicitly since the system throws an exception when configuration with no schema is installed. For instance, if one removes condition.plugin.request_path schema some block tests will fail because they depend on this configuration. But when it comes to condition.plugin.current_theme no tests fail. I suppose it caused by the fact that Drupal core doesn't use Current theme condition plugin at all.
I added dummy configuration to condition_test module to ensure that tests will fail if plugin configuration schema is missing. This affects both condition plugins provided by System module. I am not certain if we need to check schema for condition plugins from other modules (say user_role).
Comment #6
Chi CreditAttribution: Chi commentedComment #7
Chi CreditAttribution: Chi commentedRenamed the patch.
Comment #8
Chi CreditAttribution: Chi commentedComment #9
Chi CreditAttribution: Chi commentedComment #12
bucefal91 CreditAttribution: bucefal91 at Websolutions Agency commentedFor what it's worth, I confirm the bug and give a thumb up on the #8 patch. Would be nice to have it committed.
Comment #15
borisson_The patch in #8 doesn't test the actual plugin. I think we need an integration test to test the plugin. I'm pretty sure that's what @alexpott wanted in #3.
Comment #21
larowlanComment #22
yogeshmpawar#8 still applies cleanly on 9.3.x so removing "Needs Reroll" issue tag & initiated testing against 9.3.x
Keeping it in NW for tests.
Comment #23
ankithashettyComment #25
tobiasbAdded missing test.
Comment #27
smustgrave CreditAttribution: smustgrave at Mobomo commentedThe IS is empty so that will need to be added I believe.
Comment #28
Chi CreditAttribution: Chi commented@smustgrave, some issues are very straightforward. I think if the issue title describes the problem well no need to copy it into issue summary.
Comment #29
Ankit.Gupta CreditAttribution: Ankit.Gupta at Dotsquares Ltd. commentedComment #31
ameymudras CreditAttribution: ameymudras at Salsa Digital commentedTest fails for the #29 with following debug info
Comment #32
smustgrave CreditAttribution: smustgrave at Mobomo commented@Ankit.Gupta your patch is removing a file from #25 I believe.
Also @Ankit.Gupta please upload an interdiff so that we can see the changes please.
Needs reroll from #25 please
Comment #35
rpayanmComment #36
smustgrave CreditAttribution: smustgrave at Mobomo commentedThank you @rpayanm I see all the original files from #25 are in the MR
There a build error
Commit check failures
The last patch or MR doesn't pass commit checks, could you make sure to run
./core/scripts/dev/commit-code-check.sh
before uploading a patch to make sure there are no issues with code formatting. see https://www.drupal.org/docs/develop/development-tools/running-core-devel...Comment #37
rpayanmSorry, get it.
Comment #38
smustgrave CreditAttribution: smustgrave at Mobomo commentedNo sorry needed. Will wait to see if it turns green and review.
Comment #39
smustgrave CreditAttribution: smustgrave at Mobomo commentedLooks good.
Comment #40
larowlanThere's no failing test only patch here, so I ran it locally to confirm it fails correctly
Here's the output
So yep, it does ✅
Comment #41
larowlanCommitted to 10.1.x, doesn't apply to 10.0.x - so flagging for reroll.
We can't commit this to 9.4.x as it would require an empty post update hook to clear the schema cache. We have other update hooks in 9.5/10.0/10.1 that would handle this for us.
So can we get a 10.0.x and a 9.5.x version - we have a week to get them in without needing another update hook.
Comment #43
quietone CreditAttribution: quietone at PreviousNext commentedA simple reroll.
Comment #44
quietone CreditAttribution: quietone at PreviousNext commentedComment #46
quietone CreditAttribution: quietone at PreviousNext commented@Rajeshreeputra, creating an MR on 10.1.x not needed here. The fix has already been applied to that branch. Help save our resources by reading the issue before submitting an MR for testing. Wait, why is the MR merge-able? Oh, I see that it is duplicating code. We prefer that you find ways to contribute that help the Drupal project. Therefor, credit has been removed per How is credit granted for Drupal core issues.
Comment #47
Spokje- Patch #43 applies to both
10.0.x
and9.5.x
.- Testbot comes back green on both branches.
RTB for me.
Comment #49
catchCommitted/pushed to 10.0.x and cherry-picked to 9.5.x, thanks!
Comment #50
catchComment #52
catch