Alex-Ikanow / aleph2_bucket_builder

A user interface providing the ability to build up complex JSON objects (such as Aleph2 buckets) with simple nested combinations of self-generating forms
0 stars 4 forks source link

Allow _name to be overriden #10

Closed Alex-Ikanow closed 8 years ago

Alex-Ikanow commented 8 years ago

Currently there's lots of cases where the element has a name field, it seems a bit horrible to have 2 name functions. A better method would be to allow users to build their own { "key": "_name" } fields and then copy that over the default one (ie in the same place as the schema). So eg analytic jobs could restrict to [a-zA-Z0-9_]+ and then copy blah.short_name -> curr_obj.name in the builder method

Alex-Ikanow commented 8 years ago

Done f7d26d90cd61ea65b80266a6bdf621d376f6c0f2