file_mdm 3.2.0 update notification issues

Created on 14 July 2025, 3 months ago

Problem/Motivation

I can't upgrade to file_mdm 3.2.0, since it requires Drupal 11, to which I can't upgrade yet as some modules/themes are not yet compatible with it. Since file_mdm 3.2.0 was released, I get an email once a day that an update is available. The Drupal update check doesn't consider that I can't upgrade yet, and keeps sending me an email every day. The 'Available updates' page does list that it is not compatible. However, it still lists it as an update, and recommends 3.2.0. An email also keeps getting sent once a day. Note that in Composer that is different, as the functionality for version ranges and constraints and so on is more advanced. But that doesn't help me in getting rid of the useless emails. I'm in particular not fond of these false positive emails as they hide 'real' updates. Since I'm now getting an email once a day, I'm not continuously checking if it is relevant anymore, so I may miss important 'real' updates.

Steps to reproduce

Install file_mdm 3.2.0 into Drupal 10. Get an email from the system every day.

Proposed resolution

I know we're working with limitations of Drupal itself, but still the situation is annoying. In a way, it could be argued that requiring a new major Drupal version should be done only on a new major release of file_mdm, so 4.0.0 instead of 3.2.0, following semantic versioning. Maybe that could be rectified? As in, release a 4.0.0 that only supports Drupal 11, and release 3.2.1 that restores Drupal 10 support. I understand if you don't want to release upgrades for Drupal 10 anymore, but if the last 3.x release would stay on Drupal 10, then this issue would be solved, as I can just stay on that version.

πŸ› Bug report
Status

Active

Version

3.2

Component

Miscellaneous

Created by

πŸ‡³πŸ‡±Netherlands dhendriks

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

Comments & Activities

  • Issue created by @dhendriks
  • πŸ‡¦πŸ‡ΊAustralia tisteegz

    I am assuming this the same issue as File metadata manager being listed on my updates page as not compatible and recommending we move to 3.2.0 even though we are still on Drupal 10.4.6 (moving to 10.5.1 soon but not 11 yet). We don't have emails set up so it isn't as bothersome but I did want to point it out as a bit confusing.

  • πŸ‡ΊπŸ‡ΈUnited States refman1073

    The Drupal Core Update module is basically using the major release number to determine what should be allowed to be installed. The function update_calculate_project_update_status throws away information because it does not account for core compatibility. The setReleaseMessage function inserts the compatibility information ... but too late.

    Anyway, here is what I did so I can continue to get valid email about updates. Rather than patch Core, here is a workaround that forces the recommended version. Create a module with the following function inside the module file. Use with caution, since you need to verify that is the latest compatible release.

    function club_update_projects_alter(&$projects): void {
      if (isset($projects['file_mdm'])) {
        $projects['file_mdm']['recommended'] = '3.1.0';
      }
    }
    
  • πŸ‡¬πŸ‡§United Kingdom fonant

    The best fix would be for @mondrake to make a new release 4.x.x for Drupal 11, and 3.2.1 for Drupal 10.

Production build 0.71.5 2024