Closed kako-nawao closed 8 years ago
Then there should be an intermediate process (probably manually) we shall do: to receive the files from the customer (excel, csv, etc.) and treat it in order to generate the yaml files. Then import them into the factories.
No, the use of YAML was to allow referencing objects in the same file (which you can't do with CSV). But I doubt we'll need that: a file is not really likely to include two related objects. If they want to import equipment types and their subtypes, they should import two files. Fuck it.
Using factories for fixtures generation is the way to go. But requiring the modification of commands to do it is not ideal. What would be awesome is to process csv files, which are way easier to manage, and create the objects using factories.
But is that feasible: how do we manage relations? Maybe using yaml instead would be an option?