Drupal 10 follow-up

Created on 13 November 2023, about 1 year ago
Updated 19 March 2024, 8 months ago

Problem/Motivation

Module claims that it is D10 compatible, but it's not entirely true, see the report

CONTRIBUTED PROJECTS
--------------------------------------------------------------------------------
YASM 2.0.4
Scanned on Mon, 11/13/2023 - 11:09.

1 error found. 2 warnings found.

web/modules/contrib/yasm/modules/yasm_charts/src/Services/YasmChartsBuilder.php:
┌─────────┬──────┬────────────────────────────────────────────────────────────┐
│ STATUS  │ LINE │                          MESSAGE                           │
├─────────┼──────┼────────────────────────────────────────────────────────────┤
│ Fix now │ 165  │ Call to deprecated method toInt() of class                 │
│         │      │ Drupal\Component\Utility\Bytes. Deprecated in drupal:9.1.0 │
│         │      │ and is removed from drupal:10.0.0. Use                     │
│         │      │ Drupal\Component\Utility\Bytes::toNumber() instead         │
│         │      │                                                            │
└─────────┴──────┴────────────────────────────────────────────────────────────┘

web/modules/contrib/yasm/src/Controller/Users.php:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│  STATUS  │ LINE │                           MESSAGE                            │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Check    │ 325  │ Relying on entity queries to check access by default is      │
│ manually │      │ deprecated in drupal:9.2.0 and an error will be thrown from  │
│          │      │ drupal:10.0.0. Call                                          │
│          │      │ \Drupal\Core\Entity\Query\QueryInterface::accessCheck() with │
│          │      │ TRUE or FALSE to specify whether access should be checked.   │
│          │      │                                                              │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘

web/modules/contrib/yasm/modules/yasm_charts/yasm_charts.info.yml:
┌──────────┬──────┬────────────────────────────────────────────────────────────┐
│  STATUS  │ LINE │                          MESSAGE                           │
├──────────┼──────┼────────────────────────────────────────────────────────────┤
│ Check    │ 0    │ Value of core_version_requirement: ^8 || ^9 is not         │
│ manually │      │ compatible with the next major version of Drupal core. See │
│          │      │ https://drupal.org/node/3070687.                           │
│          │      │                                                            │
└──────────┴──────┴────────────────────────────────────────────────────────────┘

Steps to reproduce

Run upgrade status

Proposed resolution

Make the module D10 compatible

Remaining tasks

Review MR

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇺🇦Ukraine Taran2L Lviv

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

Comments & Activities

Production build 0.71.5 2024