Problem/Motivation

In #3016252: Handle Major API changes for d8/d9 for localize.drupal.org urls/files we updated the localize.drupal.org setup to respond to /all/ in the URL of 8.x+ translations. That helps us move towards removing core compatibility from the requested URLs, especially as they would be inaccurate with Drupal 9 and not applicable to semantic versioned contributed modules anymore.

Proposed resolution

Remove the /8.x/ core compatibility component from the URL and include the server supported /all/ compatibility.

Remaining tasks

Commit.

User interface changes

None.

API changes

None.

Data model changes

None. However a project data cache clear was needed on update to clear off the old version info.

Release notes snippet

N/A

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Gábor Hojtsy created an issue. See original summary.

Gábor Hojtsy’s picture

Status: Active » Needs review
FileSize
928 bytes
Gábor Hojtsy’s picture

Status: Needs review » Needs work

The last submitted patch, 2: 3016471-2.patch, failed testing. View results

Gábor Hojtsy’s picture

Status: Needs work » Needs review
FileSize
2.41 KB
1.51 KB

Fix local server test data.

Status: Needs review » Needs work

The last submitted patch, 5: 3016471-5.patch, failed testing. View results

Gábor Hojtsy’s picture

Status: Needs work » Needs review
FileSize
860 bytes
3.25 KB

One more test place I forgot to make the change apparently.

Gábor Hojtsy’s picture

Change the one place left in the installer. I don't believe this was deemed testable.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Wim Leers’s picture

+++ b/core/modules/locale/locale.compare.inc
@@ -69,7 +69,8 @@ function locale_translation_build_projects() {
+      // @todo this is a quick test

Is this still relevant?

Gábor Hojtsy’s picture

No, that was from my first patch. Then the tests got updated. Regardless of this passing tests, all the d.o side need to be ready to deal with this, so this cannot be committed without d.o supporting it fully. I believe @mixologic added a symlink so that /all/ works but @drumm said more changes are needed on the caching layer, etc. That would be in #3016252: Handle Major API changes for d8/d9 for localize.drupal.org urls/files.

Wim Leers’s picture

Title: Make localization file download major version agnostic » [PP-1] Make localization file download major version agnostic
Status: Needs review » Postponed

Ah, thanks!

xjm’s picture

Priority: Normal » Critical
Issue tags: +Drupal 9
Wim Leers’s picture

drumm’s picture

Status: Postponed » Reviewed & tested by the community
catch’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs re-roll

Needs a re-roll.

drumm’s picture

Status: Needs work » Needs review
FileSize
3.67 KB

In core/modules/locale/locale.compare.inc, the ternary operation was removed from 'core' => isset($data['info']['core']) ? $data['info']['core'] : \Drupal::CORE_COMPATIBILITY,, so this patch is more simple now.

Status: Needs review » Needs work

The last submitted patch, 17: 3016471.patch, failed testing. View results

drumm’s picture

Status: Needs work » Needs review
FileSize
5.66 KB

There is a new test in core/modules/locale/tests/src/Kernel/LocaleBuildTest.php that also needs updating.

tedbow’s picture

Status: Needs review » Needs work

The issue summary has

None. However a project data cache clear will be needed on update to clear off the old version info.

Seems like we still need an update hook to clear this cache.

Otherwise it looks good

tedbow’s picture

Title: [PP-1] Make localization file download major version agnostic » Make localization file download major version agnostic
Status: Needs work » Needs review
FileSize
455 bytes
6.1 KB

Adding update hook to clear Locale project storage

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Gábor Hojtsy’s picture

Issue tags: -Needs re-roll

Discussed this today with @drumm and @mixologic. This only changes the /8.x/ component in URLs to /all/. Sent for a retest for now. This would still need to be fixed in Drupal 8 and 9 as well.

Gábor Hojtsy’s picture

Status: Needs review » Reviewed & tested by the community

Patch still applies and tests still prove this works in the test suite. Since this is about an external service where results also even depend on the version of core you are running with I manually tested with a 8.x dev to see if the fallback worked, and it did. I also tried then with 8.8 alpha1. Installation in a foreign language and adding a new foreign language later or fresh on an English site all worked. While there is no way to test this with Drupal 9 yet, we agreed with @drumm and @mixologic that putting up hacks on the infrastructure side to test this with 9.x-dev for the (hopefully) short time remaining before Drupal 9 alpha1 could cause more problems that it solves.

Gábor Hojtsy’s picture

Issue summary: View changes
webchick’s picture

Status: Reviewed & tested by the community » Fixed

The patch is just making simple URL changes, and after reading up on the other issue, I'm satisfied with the testing in #24. Committing this now will tell us soon enough if it breaks for 9.x and more work is needed.

Committed and pushed to 9.0.x; 8.9.x; 8.8.x. Thanks!

  • webchick committed 201ea5b on 8.8.x
    Issue #3016471 by Gábor Hojtsy, drumm, tedbow: Make localization file...

  • webchick committed dce54d0 on 8.9.x
    Issue #3016471 by Gábor Hojtsy, drumm, tedbow: Make localization file...

  • webchick committed d3d7180 on 9.0.x
    Issue #3016471 by Gábor Hojtsy, drumm, tedbow: Make localization file...
xjm’s picture

Version: 8.9.x-dev » 8.8.x-dev

Remember to set the branch selector to the lowerst branch that receives the backport.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.