- Issue created by @xmacinfo
- 🇨🇦Canada xmacinfo Canada
The requirement check and message is in
system.install
. - 🇳🇿New Zealand quietone
Changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to our policies.
- 🇦🇺Australia dpi Perth, Australia
Now this is a new major, it makes to remove it altogether?
Something more concrete, along the lines of
“Drupal requires databases support JSON”
- Merge request !9988Issue #3472946 by xmacinfo, dpi: Clarify “Database support for JSON” success... → (Open) created by xmacinfo
- 🇨🇦Canada xmacinfo Canada
/core/modules/system/tests/src/Functional/System/StatusTest.php
fails. - 🇨🇦Canada xmacinfo Canada
An unrelated test fails. Leaving the status as Needs review for now.
- Status changed to RTBC
about 1 month ago 4:07pm 18 November 2024 - 🇺🇸United States smustgrave
Failure was random, all green after re-running test.
Change seems small enough and matches the summary I don't mind marking now.
- 🇬🇧United Kingdom longwave UK
What about removing the REQUIREMENT_OK version of this? To me it's just wasted space on the status report, we should definitely error if this check fails but I don't feel like "Drupal requires databases that support JSON" actually tells the system administrator anything useful if their database already supports it.
- 🇺🇸United States smustgrave
Does removing something from the status report page require product manager review?
- 🇨🇦Canada xmacinfo Canada
Who is the database product manager?
On the MySQL side, Drupal 11 requires “MySQL/Percona 8.0”.
https://www.drupal.org/docs/getting-started/system-requirements/database... →
If MySQL 8.x supports JSON by default, I tend to agree with longwage.
- 🇨🇦Canada xmacinfo Canada
Looking again at at the status page, we have:
Database support for JSON
Available
Is required in Drupal 10.0.To be consistent with other requirements status we can simplify to:
Database support for JSON
AvailableHowever, since this JSON support is “Required” for Drupal 10 and 11, we might prefer:
Database support for JSON
EnabledAs for the correct solution to implement (change of text) or the removal of the confirmation status, I would defer to the database product manager.
- 🇨🇦Canada xmacinfo Canada
It looks like that Drupal can be installed without JSON supportL
if (!Database::getConnection()->hasJson()) { $requirements['database_support_json']['value'] = t('Not available'); $requirements['database_support_json']['severity'] = REQUIREMENT_ERROR; }
So the status report will display either:
Database support for JSON
Available
Is required in Drupal 10.0.Note that I did not try to install Drupal on top of a database without JSON support. But by ready the code, installing Drupal without JSON support is possible, unless the installer halts early on, displaying a missing requirement error message.
or
Database support for JSON
Not available
Is required in Drupal 10.0.Based on that information, we should simplify to:
Database support for JSON
Availableor
Database support for JSON
Not available - 🇬🇧United Kingdom longwave UK
@daffie is the database subsystem maintainer, tagging for review.
- 🇳🇱Netherlands daffie
I did as the subsystem maintainer a review and therefore I have removed the tag.
Changing the status to needs work for the nitpick on the MR. - 🇨🇦Canada xmacinfo Canada
Thanks for the quick resposte, daffie.
Let's plan to implement this:
Database support for JSON
Available
Drupal requires databases that support JSON storage.or
Database support for JSON
Not available
Drupal requires databases that support JSON storage.That last one, hopefully, mostly not visible ot users.
- 🇨🇦Canada xmacinfo Canada
Text changed to match the subsystem maintainer review.
- 🇳🇱Netherlands daffie
The new message looks good to me.
It should be better for the site owner and it allow us to add checks on JSON functionality from the database at a later point in time.
For me it is RTBC.