Page MenuHomePhabricator

OOUI's generated docs link wrong source files for inherited methods
Open, Stalled, Needs TriagePublicBUG REPORT

Description

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

What happens?:

image.png (251×454 px, 13 KB)

  • Options are still not explaned
  • The source links to Window.js, line 355

What should have happened instead?:

Context: T185396

Event Timeline

Change #1048881 had a related patch set uploaded (by Novem Linguae; author: Novem Linguae):

[oojs/ui@master] JSDoc: add {@link} to some links

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

Change #1048884 had a related patch set uploaded (by Novem Linguae; author: Novem Linguae):

[oojs/ui@master] JSDoc: don't @inheritdoc when params are different

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

Good job, thanks! So it's misplaced @inheritdoc that is to blame.

But wait... If @inheritdoc erases all documentation, it erases "Source" as well. So, while the problem with parameters is alleviated, it's still wrong source files that are linked. JSDuck had this right.

Could the behavior of @inheritdoc be changed? I'll tag "JSDoc WMF theme" back, because of course a fundamental solution would be preferred.

Change #1048881 merged by jenkins-bot:

[oojs/ui@master] JSDoc: add {@link} to some links

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

Change #1048884 abandoned by Novem Linguae:

[oojs/ui@master] JSDoc: don't @inheritdoc when params are different

Reason:

Abandoning until we decide on the overall strategy at T368287

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