-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement DataList as iterator #15
Comments
I wanted to implement this but realized that it requires a change in |
So very true about customer projects. That said, could we not just implement our own |
Sure, I'm just not a big fan of overriding such methods.. I'll try to implement this tomorrow. From: Mike LaySent: Tuesday, March 11, 2014 22:30To: mkly/DataReply To: mkly/DataCc: Remo LaubacherSubject: Re: [Data] Implement DataList as iterator (#15)So very true about customer projects. That said, could we not just implement our own get() method and add the iterator methods to the DataList class? I'll leave this to investigate later. —Reply to this email directly or view it on GitHub. |
Awesome. No rush though. Data still needs some work. For example, I'm not sure if all the child attributes of the relation attributes are being deleted properly, and I need to write a whole bunch more tests!!! Thanks again for the input. |
Well, I'm somehow in a rush because we need that export functionality and I want that to be on top of an iterator to keep the memory consumption at a reasonable level. The PR linked above is still a work in progress, the first element is empty and I'll have to add some unit tests as well. I just created the PR to make my progress "visible".. |
That's great to hear that you are getting some use out of this in production. I wouldn't stress out too much about unit tests right now. I haven't posted instructions on how to even get the test harness up. I can always write those underneath any additions you might make. Is it the csv export you are talking about for the data itself? There is actually a bit of a start to import "Datas" right now in an xml format. I decided to wait on it because of time contraints. https://github.com/mkly/Data/blob/master/src/data/models/data.php#L155-L171 That is for Datas nested in DataTypes. Its a work in progress and unused functionality, so you can change that method if you have a preference to it being different. |
Yes, we need all the attributes specified for a data type in columns with a row for each entry in the data table. |
See Remo/concrete5@f371ab2
The text was updated successfully, but these errors were encountered: