Problem/Motivation
Make the module Drupal10 ready. Upgrade Status reported the following issues:
- The 'drupal.environment_indicator' library is depending on a deprecated library. The core/jquery.once asset library is deprecated in Drupal 9.3.0 and will be removed in Drupal 10.0.0. Use the core/once library instead. See https://www.drupal.org/node/3158256
- Value of core_version_requirement: ^8.8 || ^9 is not compatible with the next major version of Drupal core.
Steps to reproduce
-
Proposed resolution
Fix issues reported by Upgrade Status, and check if there are any other issues holding back the module from being D10 ready. (drupal-check)
Remaining tasks
Fix Upgrade Status reported issues, run drupal-check, run tests.
User interface changes
-
API changes
-
Data model changes
-
Issue fork environment_indicator-3301118
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 #3
balintpekkerAfter testing the changes in the PR manually both on D10 and D9.5 I noticed a change which possibly is not affected by the changes made in the PR and is a separate issue.
The issue is when you are setting the current environment through the config form on D10 you need to rebuild the caches in order to see the changes, however when you do the same on D9.5, the changes apply after saving the config form. I'd possibly create a new issue not to hold up the D10 readiness changes.
Related issue: https://www.drupal.org/project/environment_indicator/issues/2406619#comm...
Comment #4
balintpekkerComment #6
mglamanI didn't RTBC because I bumped minimum drupal/core to 9.2
Comment #7
nkoporecThe changes looks good to me, setting as RTBC.
Comment #8
balintpekkerComment #11
e0ipsoComment #12
e0ipsoComment #13
e0ipsoThanks everyone for the work here!