Closed Bug 813484 Opened 12 years ago Closed 4 years ago

Kuma: Add a "what links here" feature

Categories

(developer.mozilla.org Graveyard :: General, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: public, Unassigned)

References

Details

(Whiteboard: [specification][type:feature][triaged])

Before marking a page as junk, it is important to know "what links here".

This feature was available before the switch to Kuma.
Priority: -- → P2
Whiteboard: feature request;
This would go in the "Site tools" drop-down menu we haven't added yet, along with the dashboards. See bug 841534.
Whiteboard: feature request; → [type:feature]
bug 773855 is about the same feature for templates.
Whiteboard: [type:feature] → [specification][type:feature][triaged]
(In reply to Florian Scholz [:fscholz] (elchi3) from comment #3)
> fwiw, Sumo has exactly this feature:
> 
> https://support.mozilla.org/en-US/kb/common-questions-after-updating-to-new-
> firefox/links
> https://github.com/mozilla/kitsune/blob/master/kitsune/wiki/views.py#L1314

Hmm, though also FWIW, I'm not sure I'd do it *exactly* the way kitsune does it [1].

Looks like they maintain a MySQL table with an inventory of links between docs. Rows get deleted and reinserted on parsing the doc at render time. I'd rather try doing this in elasticsearch as a parse-and-index job in the background, similar to what we do with CSS class names and such.

[1] https://github.com/mozilla/kitsune/commit/2de9fcd0555d42bb62889af7cb2dca00d75e0188
Oh, and another reason why I'd rather do it in elasticsearch: One of our use cases is bug 1023763, where docs are possibly linking to wiki URLs that don't exist yet. The kitsune approach tracks existing docs linking to existing docs. So, that is kind of a non-starter.

I think we need to find all docs that contain a link to some arbitrary URL string, whether that doc exists yet or not.
Priority: P2 → P3
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.