Page MenuHomePhabricator

DiscussionTools marker comments still appear in the output sometimes in weird places
Closed, ResolvedPublic

Description

DiscussionTools marker comments still appear in the output sometimes in weird places:

<p about="#mwt2" typeof="mw:Transclusion" data-mw="{&quot;parts&quot;:[{&quot;template&quot;:{&quot;target&quot;:{&quot;wt&quot;:&quot;Tracked&quot;,&quot;href&quot;:&quot;./Template:Tracked&quot;},&quot;params&quot;:{&quot;1&quot;:{&quot;wt&quot;:&quot;T238025&quot;}},&quot;i&quot;:0}}]}" id="mwCg"><style data-mw-deduplicate="TemplateStyles:r555781" typeof="mw:Extension/templatestyles" about="#mwt4" data-mw="{&quot;name&quot;:&quot;templatestyles&quot;,&quot;attrs&quot;:{&quot;src&quot;:&quot;Tracked/styles.css&quot;}}">.mw-parser-output .tracked{float:right;clear:right;margin:0 0 1em 1em;width:12em;border:1px solid #72777d;border-radius:2px;background-color:#eaecf0;font-size:85%;text-align:center;padding:0.5em}.mw-parser-output .tracked-url{font-weight:bold}.mw-parser-output .tracked-closure{color:black;font-weight:bold;text-transform:uppercase}.mw-parser-output .tracked-resolved{color:green}</style><span about="#mwt4"><!--__DTHASLEDECONTENT__--><!--__DTEMPTYTALKPAGE__--></span></p>
{
    "errors": [
        {
            "code": "missingparam",
            "html": "<p>One of the parameters <var>wikitext</var> and <var>html</var> is required.\n</p><!--__DTHASLEDECONTENT__--><!--__DTEMPTYTALKPAGE__-->",
            "module": "discussiontoolsedit"
        }
    ],
    "docref": "See https://en.wikipedia.beta.wmflabs.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/&gt; for notice of API deprecations and breaking changes.",
    "servedby": "deployment-mediawiki11"
}

This is just more stuff like T291833. Maybe we should try to not output these.

Related Objects

StatusSubtypeAssignedTask
OpenReleaseNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenFeatureNone
OpenNone
OpenNone
OpenNone
Resolvedssastry
StalledNone
Resolvedssastry
Resolvedmatmarex
ResolvedBUG REPORTmatmarex
Resolvedmatmarex
Resolvedmatmarex

Event Timeline

Change 886989 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/DiscussionTools@master] Use setExtensionData() instead of marker comments where possible (1/3)

https://gerrit.wikimedia.org/r/886989

Change 886990 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/DiscussionTools@master] Use setExtensionData() instead of marker comments where possible (2/3)

https://gerrit.wikimedia.org/r/886990

Change 886991 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/DiscussionTools@master] Use setExtensionData() instead of marker comments where possible (3/3)

https://gerrit.wikimedia.org/r/886991

Change 886989 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@master] Use setExtensionData() instead of marker comments where possible (1/3)

https://gerrit.wikimedia.org/r/886989

Change 886990 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@master] Use setExtensionData() instead of marker comments where possible (2/3)

https://gerrit.wikimedia.org/r/886990

Change 886991 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@master] Use setExtensionData() instead of marker comments where possible (3/3)

https://gerrit.wikimedia.org/r/886991

DLynch added a project: Editing QA.
DLynch subscribed.

This needs general regression-testing of DT behaviors that (used to) depend on tracking comments added to parser output.

This includes:

  • Mobile hidden-lede behavior
  • Mobile hidden-lede not being hidden if there's comments in the lede
  • Empty talk page special-case
  • Showing the newest comment

Change 888308 had a related patch set uploaded (by DLynch; author: Bartosz Dziewoński):

[mediawiki/extensions/DiscussionTools@master] Use setExtensionData() instead of marker comments where possible (2/3)

https://gerrit.wikimedia.org/r/888308

Change 888309 had a related patch set uploaded (by DLynch; author: Bartosz Dziewoński):

[mediawiki/extensions/DiscussionTools@master] Use setExtensionData() instead of marker comments where possible (3/3)

https://gerrit.wikimedia.org/r/888309

(We should QA after the 2nd patch, currently waiting for 1st patch to roll out)

Change 888308 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@master] Use setExtensionData() instead of marker comments where possible (2/3)

https://gerrit.wikimedia.org/r/888308

Change 888309 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@master] Use setExtensionData() instead of marker comments where possible (3/3)

https://gerrit.wikimedia.org/r/888309

matmarex edited projects, added Skipped QA; removed Editing QA.

Verifying that they no longer appear in the output:

<style data-mw-deduplicate="TemplateStyles:r555781" typeof="mw:Extension/templatestyles mw:Transclusion" about="#mwt2" data-mw='{"parts":[{"template":{"target":{"wt":"Tracked","href":"./Template:Tracked"},"params":{"1":{"wt":"T238025"}},"i":0}}]}' id="mwCg">.mw-parser-output .tracked{float:right;clear:right;margin:0 0 1em 1em;width:12em;border:1px solid #72777d;border-radius:2px;background-color:#eaecf0;font-size:85%;text-align:center;padding:0.5em}.mw-parser-output .tracked-url{font-weight:bold}.mw-parser-output .tracked-closure{color:black;font-weight:bold;text-transform:uppercase}.mw-parser-output .tracked-resolved{color:green}</style>
{
    "errors": [
        {
            "code": "missingparam",
            "html": "One of the parameters <var>wikitext</var> and <var>html</var> is required.",
            "module": "discussiontoolsedit"
        }
    ],
    "docref": "See https://en.wikipedia.beta.wmflabs.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/&gt; for notice of API deprecations and breaking changes.",
    "servedby": "deployment-mediawiki11"
}