aquametalabs / aquameta

Web development platform built entirely in PostgreSQL
GNU General Public License v3.0
1.1k stars 52 forks source link

generic bundle-row text identifier and reverse functionality #187

Open erichanson opened 5 years ago

erichanson commented 5 years ago

As bundles emerge as the central organizing pattern for Aquameta modules, it's becoming clear that a very common pattern is to reference a row by its bundle name, plus "name", whatever that might be. We do this with widgets already on import, referencing {namespace}:{widget.name} and have a custom function for resolving them. Other places do crude hacks around this missing functionality as well.

It would be nice to be able to do this generically with all manner of other things, for example documentation. A bundle's documentation should be able to link to sub-pages just by referencing them by name, but since multiple bundles may contain documents with the same name -- unique to the bundle but not globally -- it's the same pattern as widget. There are other examples too.

So, create something akin to a "bundle_row_id" which should contain: