- Issue created by @alexpott
- Status changed to Active
over 1 year ago 3:02pm 23 March 2023 - Status changed to Needs review
over 1 year ago 9:05am 24 March 2023 - ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
None of the usages in tests are necessary because the default language in these cases is
en
so it's doing absolutely nothing.I don't think adding a test to call
locale_system_set_config_langcodes ()
to prove the deprecation is worth it in this case. The last submitted patch, 3: 3337900-3.patch, failed testing. View results โ
- Status changed to Needs work
over 1 year ago 12:23pm 24 March 2023 - ๐ต๐นPortugal ricardofaria
I can confirm that this patch is working.
Applying both patches(parent and this one), it works. - Status changed to Needs review
over 1 year ago 8:23am 4 April 2023 - ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
Fixed the test I broke. It's good that \Drupal\Tests\locale\Kernel\LocaleConfigSubscriberForeignTest exists - unfortunately not real enough to have discovered ๐ Installing a module causes translations to be overwritten Fixed but at least the inner workings of LocaleConfigSubscriber are tested with a different default language.
@ricardofaria thank you for looking into this issue.Posting screenshots of your codebase or command-line interface does not advance the issue, since the automated testing infrastructure tells us whether the change set still applies correctly.
So, I have not granted issue credit for that screenshot. In the future, you can get credit for issues by reading the issue to understand its purpose, and posting your review or testing of that purpose. Thank you!
The last submitted patch, 6: 3337900-6.patch, failed testing. View results โ
- ๐ซ๐ทFrance andypost
Failure is unrelated but I'm curious why
UserMailNotifyTest.php
does not need replacement? - ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
@andypost UserMailNotifyTest doesn't have a different default language. This method only does something when that is true. UserMailNotifyTest adds other languages but it does not set them as a default.
- Status changed to Needs work
over 1 year ago 2:04pm 4 April 2023 - ๐บ๐ธUnited States smustgrave
Can we add a test case for the deprecation message.
- Status changed to Needs review
over 1 year ago 3:48pm 4 April 2023 - ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
I'm not convinced that a test is truly necessary but /shrug here one is - and at least it tests the functionality. Testing the message is probably the least important part - testing that we have not broke the functionality (and don't while the method is still around) is the one reason in favour of adding tests like this.
- Status changed to Needs work
over 1 year ago 6:21pm 4 April 2023 - ๐บ๐ธUnited States smustgrave
Gotcha. Been under the mindset that deprecation should always have tests. Got a good rule of thumb for when that's not the case?
Build errors on the patch.
- Status changed to Needs review
over 1 year ago 10:54am 8 May 2023 - last update
over 1 year ago 29,381 pass - Status changed to Needs work
over 1 year ago 12:21pm 8 May 2023 - ๐ฎ๐ณIndia pooja saraah Chennai
Replaced the deprecated function call locale_system_set_config_langcodes() with the suggested replacement \Drupal\locale\LocaleConfigManager::updateDefaultConfigLangcodes()
These changes should ensure compatibility with Drupal 11.0.0 while addressing the deprecation warnings.
Attached patch against Drupal 11 and interdiff file. - last update
10 months ago Composer error. Unable to continue. - ๐ซ๐ทFrance andypost
Please open mr and deprecation should ne in 10.3.0
- ๐ซ๐ทFrance andypost
Please open mr and deprecation should ne in 10.3.0