Page MenuHomePhabricator

populate pagelinks for ZObjects
Open, MediumPublic

Description

Currently https://www.wikifunctions.org/wiki/Special:WhatLinksHere/Z4 is empty. Ideally this should show all ZObjects that refers to this ZObject (i.e. all targets of active links displayed in https://www.wikifunctions.org/view/en/Z11 are considered linked from Z11). However whether we need to link each ZObject to Z2 or Z11 etc. may be discussed.

Important use case: Before deleting a ZObject we need to know whether they are used elsewhere.

Event Timeline

The links tables are used for wikitext page links on the wiki, for example I created https://www.wikifunctions.org/wiki/User:Jdforrester_(WMF)/sandbox with a link to Z1 and indeed it shows up on https://www.wikifunctions.org/wiki/Special:WhatLinksHere/Z1. I don't think conceptually Object<->Object links should be considered the same kind of link; we track them in a different table.

Are they any way to expose such links? A benefit of tracing them in pagelinks is that a warning will be shown while trying to delete the object.

Are they any way to expose such links? A benefit of tracing them in pagelinks is that a warning will be shown while trying to delete the object.

For Functions/Implementations/Test cases, that's what powers the linked tables on e.g. https://www.wikifunctions.org/view/de/Z802 and you get a warning when disconnecting/connecting them. For Types, like with Properties on Wikidata, making and deleting them is a very big deal and won't be a common issue, but adding a very major warning about current usage is a good idea. That won't be a page link, however; want to re-purpose this task, or should I file a new one?

a ZObject can be referred from other ZObjects in various ways, such as part of composite type (including parameter of generic types, function signuatures), and there should be a way to catch all of them.

T346006: "Select function" when function is already selected is one of cases user are not aware of a function being deleted is in use somewhere.

T346006: "Select function" when function is already selected is one of cases user are not aware of a function being deleted is in use somewhere.

No? The only references are the deletion request (which is a link), a Project chat message, and a user sandbox.

Links from outside of MediaWiki – in this case, Phabricator – do not trigger MediaWiki's "what links here" feature.

Some user proposed an object for deletion: https://www.wikifunctions.org/wiki/Wikifunctions:Requests_for_deletions#Z11488

It is used, but the usage is not shown in WhatLinksHere. Populate pagelinks can allow users to find its usage, and if the object is deleted, to update the usage so that exist objects will not break.