ESCL / pjtracker

Project Tracker system
http://pjtracker.com
0 stars 0 forks source link

Generic fixture processor #26

Closed kako-nawao closed 8 years ago

kako-nawao commented 8 years ago

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?

omelendrez commented 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.

kako-nawao commented 8 years ago

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.