YahooArchive / mojito

[archiving soon] Yahoo! Mojito Framework
BSD 3-Clause "New" or "Revised" License
1.57k stars 214 forks source link

array gets concat when specialized into configurations #963

Open dmorilha opened 11 years ago

dmorilha commented 11 years ago

We have defaults.json, master section, an array containing default elements to our mojit.

Then we have applications.json, specialized section, mojit config, an array containing more specialized elements to the same mojit (of course in a more specialized way).

We are getting a concatenated array containing first the elements of the generic array before the elements of the most specialized array.

We think arrays should be entirely replaced. What is mojito's team perspective regarding this question?

caridy commented 11 years ago

FYI: blend and blend3 are both doing array concat from what I can see in the code. /cc @drewfish

dmorilha commented 11 years ago

code example https://gist.github.com/4687222

dmorilha commented 11 years ago

by the way the problem happened we think that could be a regression on the way mojito handled arrays.