Test the core to contrib upgrade path

Created on 6 May 2024, 8 months ago
Updated 21 May 2024, 7 months ago

Problem/Motivation

As per https://www.drupal.org/node/add/project-issue/statistics#project-issue-a... :

Manually test the upgrade path from statistics in core in current development branch to contrib in next major development branch works correctly..

Remaining tasks

Install Drupal current development branch on a machine with composer.

  1. composer create-project drupal/recommended-project:10.3.x-dev drupal-statistics
  2. Go to the extension directory cd drupal-statistics
  3. Enable development settings cp web/sites/example.settings.local.php web/sites/default/settings.local.php
  4. Add Drush composer require drush/drush
  5. Install Umami vendor/bin/drush si demo_umami
  6. Enable settings.local.php at the end of web/sites/default/settings.php

Enable and test

  1. Enable the extension vendor/bin/drush en -y statistics
  2. Test the extension functionality. Comment on what was tested.
  3. Confirm errors via update.php and warnings via drush updb about the missing core module.
  1. composer require drupal/statistics
  2. vendor/bin/drush cr
  3. Test the extension functionality. Comment on what was tested.

Upgrade to next major version and test

  1. composer config minimum-stability dev
    composer require drupal/core-composer-scaffold:11.0.x-dev drupal/core-project-message:11.0.x-dev drupal/core-recommended:11.0.x-dev drush/drush -W
  2. Remove the core copy of statistics. Either:
    • rm -rf web/core/modules/statistics
  3. Update to next major version Either:
    • Via the UI: visit update.php for the local test site
    • Via drush:
      vendor/bin/drush updb
      vendor/bin/drush cr
  4. Test
    • Test the extension functionality. Comment on what was tested.
    • Confirm errors admin/reports/status
📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇫🇷France fgm Paris, France

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @fgm
  • 🇫🇷France fgm Paris, France
    • 10.3.x-dev install:
      • no statistics config
      • enable module
      • statistic.settings created, display_max_age: 3600, count_content_views: 0
      • set them to 3601 / 1
    • composer require all 11.x / drush 13
      • drush updbst:
        [notice] Module statistics has an entry in the system.schema key/value storage, but is missing from your site. 
                    
                      More information about this error
                    .
         [success] No database updates required.
         [warning] Message: Module /statistics/ has an entry in the system.schema key/value storage, but
        is missing from your site. More information about this error [1].
        
        [1] https://www.drupal.org/node/3137656
        
      • composer require drupal/statistics, get beta1
      • ls -l web/code/modules : no statistics remaining
      • drush updb throws couple of unrelated errors about missing updates layout_builder_post_update_default_expose_field_block_setting and system_post_update_sdc_uninstall
      • drush cr : no error
      • drush cget statistics/settings: still same correct config

    Conclusion: all appears to be correct, as expected : there is no configuration or DB change from the core to contrib version anyway.

  • Status changed to Needs review 8 months ago
  • 🇫🇷France fgm Paris, France
  • Status changed to Fixed 8 months ago
  • 🇫🇷France fgm Paris, France

    LGTM. Preparing release.

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

Production build 0.71.5 2024