We are currently storing 8.x-1.2 as patch = 2, minor is not set. In packages.drupal.org, we’re serving that as 1.2.0, minor = 2, patch = 0. For semver support on Drupal.org, we should make this swap in the data storage.

Tasks

  • Clean up any projects with custom version number formats - ✅ Done
  • Update version number parsing & storage to record correct version components for new releases. - ✅ Done
  • DB update to migrate data for existing releases. - ✅ Done
  • Update status XML altering to reverse the swap for non-semver contrib releases. Drupal core uses patch. - ✅ Done
  • Adjust project_composer to the new components. - ✅ Done
    https://git.drupalcode.org/project/project_composer/commit/0400b4022bd3d...

Deployment

  1. Commit drupalorg & project_composer changes for deployment.
  2. Back up the tables: sudo -u bender -H drush -r /var/www/drupal.org/htdocs sql-dump --data-only --ordered-dump --tables-list=field_data_field_release_version_minor,field_revision_field_release_version_minor,field_data_field_release_version_patch,field_revision_field_release_version_patch > ~/3104912-backup.mysql
  3. Deploy with updatedb.
  4. Publish the change record, https://www.drupal.org/node/3108616

Comments

drumm created an issue. See original summary.

drumm’s picture

Assigned: Unassigned » drumm

This is the next priority for getting #2681459: Support contrib semver releases done.

drumm’s picture

Issue summary: View changes

I cleaned up:

Now we have a clean slate with core being the only project with a custom version number format.

drumm’s picture

Issue summary: View changes

  • drumm committed 08814df on 3104912-minor-patch-swap
    Issue #3104912: Update version number parsing...
  • drumm committed 2f24b7a on 3104912-minor-patch-swap
    Issue #3104912: DB update to migrate data for existing releases
    
  • drumm committed a8bfb25 on 3104912-minor-patch-swap
    Issue #3104912: Update status XML altering to reverse the swap for non-...
drumm’s picture

Issue summary: View changes
drumm’s picture

Issue summary: View changes

Since this is a bit of a change, I drafted up a change record: https://www.drupal.org/node/3108616

Progress on this is going well so far, tentatively should be ready by early next week. Updates are in the issue summary.

  • drumm committed fe0ee86 on 3104912-minor-patch-swap
    Issue #3104912: Show minor version number in creating version number for...

  • drumm committed e857f1e on 3104912-minor-patch-swap
    Issue #3104912: Set the least significant regular component to 'x'...
drumm’s picture

Issue summary: View changes
drumm’s picture

Issue summary: View changes
Status: Active » Needs review

This should be ready to deploy soon, project_composer changes are in https://git.drupalcode.org/project/project_composer/compare/7.x-1.x...31...

  • drumm committed 08814df on 7.x-3.x
    Issue #3104912: Update version number parsing...
  • drumm committed 2f24b7a on 7.x-3.x
    Issue #3104912: DB update to migrate data for existing releases
    
  • drumm committed a8bfb25 on 7.x-3.x
    Issue #3104912: Update status XML altering to reverse the swap for non-...
  • drumm committed e857f1e on 7.x-3.x
    Issue #3104912: Set the least significant regular component to 'x'...
  • drumm committed fe0ee86 on 7.x-3.x
    Issue #3104912: Show minor version number in creating version number for...
drumm’s picture

Issue summary: View changes
Status: Needs review » Fixed

This has been deployed!

Status: Fixed » Closed (fixed)

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