backdrop-issues icon indicating copy to clipboard operation
backdrop-issues copied to clipboard

[UX] Add Requirements check for max_input_vars to status report

Open jenlampton opened this issue 3 years ago • 4 comments

Today @quicksketch mentioned that maybe we should split the status report update out of the PR for [UX] set warning messages if max_input_vars is not sufficiently large.

The status report message could stand on its own, and could get into the next minor version, and would be a benefit on its own.

We can keep working on the error messaging in the other issue and improve as needed.

Advocate: @jenlampton

jenlampton avatar Sep 08 '22 21:09 jenlampton

working on tests.

jenlampton avatar Sep 08 '22 21:09 jenlampton

working on tests.

My suspicion: the upgrade and update tests fail, because of the "requirement warning" - that seems to be a killer.

The other thing is the unrelated broken testCommentInterface, which should urgently get fixed.

indigoxela avatar Sep 09 '22 14:09 indigoxela

I'm playing with the requirements checks: I wasn't aware a REQUIREMENT_WARNING would cause a problem during upgrade or install phase. I'll add an exception for those phases to downgrade to REQUIREMENT_INFO. Testing locally now... but I'm expecting tests to pass on the PR even without that change. 🤞

jenlampton avatar Sep 15 '22 21:09 jenlampton

okay I rebased and added a special status for upgrade and install that's different from runtime. Pushed again but tests already seem to be passing 🎉

jenlampton avatar Sep 15 '22 23:09 jenlampton

Thanks @jenlampton 🙏🏼 ...code LGTM, so I've RTBC'ed it.

I've added a small suggestion to wrap the message title in <code> tags, but otherwise this is good to go.

PS: can you please either close/reopen the PR, or rebase in order to trigger a tugboat sandbox?

klonos avatar Dec 30 '22 11:12 klonos

...I've tested this on my local, and it looks fine: image

You won't be able to trigger it in the PR sandbox, but this is what it looks like on my local after reducing the max_input_vars setting below the threshold of 1000 (I wasn't able to get ini_set() in settings.php nor directly setting it in .htaccess to work on my local - I had to do it within my lando setup instead, using a custom php.ini file): image

klonos avatar Dec 30 '22 12:12 klonos

https://github.com/backdrop/backdrop/pull/4197 has been merged into 1.x and 1.23.x. Thanks @jenlampton, @klonos, and @indigoxela!

quicksketch avatar Jan 01 '23 00:01 quicksketch