G'day there TQ
We have an automated process to deploy many assets at once and I would like to instantiate new EDG assets with both a pre set default search and also a default layout.
The problem requiring a better solution is that we are creating many many (100s) different asset datagraphs, content tagsets, taxonomies for many different user groups and users. Having to either as an admin, or the users, to manually add/save, saved searches and layouts is not workable.
1. search
For the default search e.g. in a tagset on the search panel to show a chosen column
I've deduced that the search config is written to the main TDB.trig, and added as a set of triples on the relevant .tch graph of the asset.
I can add the config for a "saved search" (see example below) to an ontology that is imported in my content tag sets... winner.. the saved search appears in the "search list".... cool.
### bunch of blah blah config removed for brevity..... " ;
But if I add the triples for the "default search", which appears simply as a blank node with exactly the same data (see code below) as the "saved search", again in the TDB.trig and in the relevant .tch graph, it does not appear to be "registered" as the default search.
I assume there is something going on deeper in the system registries that needs to be triggered to instantiate the search as the default.?
Is there are trick to getting this to work ?
2. Default layout
Default layouts seem to require a similar instantiation/registration process.
the short question is can a layout be included in an ontology, which is in turn included in all the various assets so that it loads as the default layout AND is loaded on the very first open event of the asset (see my comment further below).
Since the layouts are kept in the Repositories/urn_x-evn-user-data.xdb file I'm not sure of the best way to add the data.
A test of a few approaches of adding manual triples in the asset graph, or in localhost on the user-data.xdb file did not work and it seems to need some instantiation trigger.
Also, please note, my testing indicates that even though a default layout can be saved and set for all assets of a given type, that each user still must load that default layout on at least one asset of that type for it to be loaded in others :( . This has caused a lot of bother to our users. It's a low level kind of config that many forget about and is compounded by the fact that if the asset is deleted ( the urn graph dropped), but re-instantiated by our deployment loader, the layout must again be reloaded as the default next time round, which is a bit cruddy.
Any pro tips would be much appreciated. We are beginning a new project that will need to deal with the same set of UI layout configuration issues at a bigger scale and on multiple dev, test and prod instances of EDG at once. So a scalable solution workflow is our end state requirement.
Many thanks in advance
Simon