Add a corresponding browser test.
|mediawiki/extensions/Flow : master||Allow zero-length descriptions in both S:EF and standard edits|
|mediawiki/extensions/Flow : master||Show friendly error if no description on EnableFlow fresh creation|
- Mentioned In
- rMEXT1aa5e7340159: Updated mediawiki/extensions Project: mediawiki/extensions/Flow…
rEFLW529530417cad: Allow zero-length descriptions in both S:EF and standard edits
T109560: "Exception Caught: Must have data to write to external storage" when blanking topic summary
rEFLW68d67778a3e6: Show friendly error if no description on EnableFlow fresh creation
rMEXTef906ab3a85d: Updated mediawiki/extensions Project: mediawiki/extensions/Flow…
- Mentioned Here
- T95871: Use External Store on Beta Cluster
I just created a board at a brand new page on beta:
Looking at the history, it's showing that I created a zero-character board description:
Is that a problem? It seems reasonable to me.
Also, the task only affects wikis with External Store currently (although arguably it should also not allow empty content for non-External Store I'm not going to spend time on it right now since that doesn't affect production).
Production uses External Store. Beta does not currently (T95871). It should, so we don't have these discrepancies.
This can only be QA-ed in production, or locally with External Store (but this is still under review, see https://gerrit.wikimedia.org/r/#/c/223724/ ).
Checked on https://test.wikipedia.org/wiki/Special:EnableFlow. The following error message is there:
"flow-special-enableflow-non-existent-requires-description": "To create a Flow board where no page currently exists, you must provide a description."
The patch will allow all content to be zero-length with external store, so even if the user input is still zero length after processing, it will be fine.
Standard wikitext pages can already be zero-length, and External Store can handle this.
We could consider allowing this in other places (e.g. zero-length posts), but there's no need to do this. As is, there are higher-level checks to prevent this for most types of content other than description and summary.