Page MenuHomePhabricator

System for creating links to entities by their IDs within JavaScript
Closed, ResolvedPublic

Description

In JavaScript, right now we can't easily generate links to entities for which we only know the ID. This is because we don't know the entity namespaces. We would need a map for entity prefixes and their namespaces, so we can generate links.


Version: unspecified
Severity: enhancement

Details

Reference
bz43003

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:07 AM
bzimport set Reference to bz43003.
bzimport added a subscriber: Unknown Object (MLST).

Will this work? There shouldn't be any other implications (like we had with site-links) in generating a simple link to an entity. If we know the full name, we should be able to create a link to a local item in all cases.

We need to ask for the label anyway, so we might also ask for the URI from the backend.

This is not really done with 43003 (i.e. no duplicate), but 43003 could be done with this. We decided to solve 43003 differently though.

So this should remain open. Some functionality to cover this, for creating a link to any item of whom only the id is known, may or may not still be helpful e.g. for gadget developers.

Since we are now generating the links using backend formatters, such a system is not needed anymore.