Problem/Motivation
The text “Is required in Drupal 10.0.” is shown next to the “Database support for JSON” section is the Status report. This should mention “Drupal 11.0” or “Since Drupal 10.0”.
Steps to reproduce
Visit the Status report page.
Proposed resolution
Change the requirement text to:
Drupal requires databases that support JSON storage.
Remaining tasks
User interface changes
Clarification.
Introduced terminology
None.
API changes
None.
Data model changes
None.
Release notes snippet
None.
Issue fork drupal-3472946
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:
- 3472946-clarify-database-support
changes, plain diff MR !9988
Comments
Comment #2
xmacinfoComment #3
xmacinfoThe requirement check and message is in
system.install.Comment #4
quietone commentedChanges are made on on 11.x (our main development branch) first, and are then back ported as needed according to our policies.
Comment #5
dpiNow this is a new major, it makes to remove it altogether?
Something more concrete, along the lines of
“Drupal requires databases support JSON”
Comment #6
xmacinfoAgreed. Issue summary updated.
Comment #7
xmacinfoComment #9
xmacinfoComment #10
xmacinfoComment #11
xmacinfo/core/modules/system/tests/src/Functional/System/StatusTest.phpfails.Comment #12
xmacinfoComment #13
xmacinfoAn unrelated test fails. Leaving the status as Needs review for now.
Comment #14
smustgrave commentedFailure was random, all green after re-running test.
Change seems small enough and matches the summary I don't mind marking now.
Comment #15
longwaveWhat 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.
Comment #16
smustgrave commentedDoes removing something from the status report page require product manager review?
Comment #17
xmacinfoWho 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.
Comment #18
xmacinfoLooking 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
Available
However, since this JSON support is “Required” for Drupal 10 and 11, we might prefer:
Database support for JSON
Enabled
As for the correct solution to implement (change of text) or the removal of the confirmation status, I would defer to the database product manager.
Comment #19
xmacinfoIt looks like that Drupal can be installed without JSON support.
So the status report will display either:
Database support for JSON
Available
Is required in Drupal 10.0.
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
Available
or
Database support for JSON
Not available
Note that I did not try to install Drupal on top of a database without JSON support. But by reading the code, installing Drupal without JSON support is still possible, unless the installer halts early on with a warning.
Comment #20
longwave@daffie is the database subsystem maintainer, tagging for review.
Comment #21
longwaveComment #22
daffie commentedI 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.
Comment #23
xmacinfoThanks 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 to users.
Comment #24
xmacinfoText changed to match the subsystem maintainer review.
Comment #25
daffie commentedThe 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.
Comment #27
longwaveCommitted e2b97e5 and pushed to 11.x. Thanks!