roxy icon indicating copy to clipboard operation
roxy copied to clipboard

Specify a collection when loading content

Open dmcassel opened this issue 12 years ago • 8 comments

$ ml local deploy content --collection=samples

dmcassel avatar Jun 04 '13 05:06 dmcassel

In my applications I tend to have some config XML files in one collection, and a set of data files in another collection. Ideally the fix should allow multiple collections per document, and multiple sets of content deployed with different collections.

adamfowleruk avatar Jul 18 '13 10:07 adamfowleruk

That would be handy. The trick is how to specify it. Perhaps the answer is to also add this to the "ml {env} load {path}" command, which you could do multiple times. I don't want to make this kind of loading too complex, in that I'm not trying to replace mlcp/recordloader/xqsync, just to provide a simple alternative.

dmcassel avatar Jul 18 '13 13:07 dmcassel

Is it worth altering the data structure so that you have /data/load1 load2 etc. In the root check for a load1.xqsync/mlcp/rl file which holds the relevant configuration. Nice and simple, supports copy/paste workflows too. What do you think? Maybe have a separate /loader/ folder for this rather than re-use /data/

adamfowleruk avatar Jul 18 '13 16:07 adamfowleruk

I propose closing this one, as Roxy is integrated with MLCP, which already has this capability. If anyone thinks it should stay open, please say so.

dmcassel avatar Mar 04 '16 18:03 dmcassel

The only vote pro/against closing is: can we specify collections and such over XCC? Should be possible somehow I guess, but not sure if the Ruby XCC lib already supports it, and if not, if it is trivial to add or not. If it is more than trivial, I'd say using MLCP instead makes a lot of sense..

By the way, I often override deploy_rest and such in app_specific, to adjust doc-permissions and such. You can do that with deploy_content as well, and do whatever you like in there..

grtjn avatar Mar 04 '16 19:03 grtjn

Love to revisit this one. Got some Jenkins processes where this would save some time.

heelix avatar Oct 25 '16 12:10 heelix

@heelix is using the integration with MLCP an option for you? You can have MLCP options files as part of your repo, and in the options you can specify the collections to be used for documents in a particular directory.

dmcassel avatar Oct 25 '16 14:10 dmcassel

The Ruby xcc lib does support collections. It would be trivial to add this to the ml load command..

grtjn avatar Jun 13 '17 13:06 grtjn