-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
#779 Received state for orders #789
Conversation
Oops, one thing I forgot, I realised just after merging: we probably need to migrate received orders to the state! |
can we PLEASE require tests for such fundamental changes. testing the core model should be no problem with the current testing infrastructure. this change nearly screams that i might cause a regression somewhere in the future |
Hmm I can see this causes tension if a fundamental change happens that not all developers are aware of. Perhaps such a change would better have been discussed on the developers mailing-list. Regarding testing, do you mean the affected scopes and the |
i don't see a problem with the change itself. it's fine and i support it. i just want to encourage us to write tests. |
Sure, I can try and add some tests for the order model 😊 - I've started here: https://github.com/foodcoops/foodsoft/pull/809/files
That is a bit tricky though: This part calls Before I take a go at this - some more questions: @wvengen Could you maybe describe how to reproduce the error fixed by your commit d906a73? (If it is still reproducible, I may have caused a regression with my new |
sorry, my bad. though that
the main problem is, that the article_prices are calculated in ruby and not in the database and i expect some missing eager loading. changing that is a bigger refactoring, which should be planed wisely and target also some limitations also. |
Yes, I added it (and @paroga has already merged it). |
No description provided.