Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
content: Refactor and fix various bugs in JsonContent | mediawiki/core | master | +191 -65 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T76204 Enforce JavaScript syntax check when editing user/site script pages | |||
Resolved | Jdforrester-WMF | T76554 Restrict editing of .json pages in the user namespace (like .js and .css) | |||
Resolved | Krinkle | T76553 Ensure JsonContent pages have valid syntax when saved |
Event Timeline
@Jdforrester-WMF: Nope. JsonContent is not yet used within MediaWiki core. And when I exposed it for some pages (for T76554) I was able to save invalid syntax.
While the JsonContent class was moved to MediaWiki core, the validation is still in individual extensions (such as EventLogging) and is enforced through hooks instead of through Content's own validation infrastructure (which, until previously, didn't even work; see I69f18d9e101).
Change 177171 had a related patch set uploaded (by Krinkle):
content: Refactor and fix various bugs in JsonContent
Change 177171 merged by jenkins-bot:
content: Refactor and fix various bugs in JsonContent
Change 430627 had a related patch set uploaded (by Huji; owner: Huji):
[operations/mediawiki-config@master] Add several rights to eliminators in fawiki