Page MenuHomePhabricator

When adding a statement, the `data-property-id` attribute is empty
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

  • The element with ID P131 has an attribute data-property-id, but it is empty.
  • If you compare it to the pre-existing statements that were there when the page loaded, they all have the actual property ID in that attribute.

What should have happened instead?:

  • The attribute should have the correct property ID in it.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Related Objects

Event Timeline

It didn't get reported here because I hadn't attached the task to the patch, but I tested the patch (not sure where @gerritbot is?) by creating two Patch Demos, one with no changes and one with my patch, and then comparing the result when adding a new property to an item).

(This is a roundabout way of saying I don't have a local Wikibase setup to test with…)

(not sure where @gerritbot is?)

If I had to completely guess, maybe Gerrit isn't recognising the patch as being linked to this bug due to the extra blank line in-between the Bug: & Change-Id: footers?

Change #1160698 had a related patch set uploaded (by Jon Harald Søby; author: Jon Harald Søby):

[mediawiki/extensions/Wikibase@master] Set data-property-id attribute when updating statement

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

(not sure where @gerritbot is?)

If I had to completely guess, maybe Gerrit isn't recognising the patch as being linked to this bug due to the extra blank line in-between the Bug: & Change-Id: footers?

Good hunch! Thanks!

Change #1160698 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Set data-property-id attribute when updating statement

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