Closed lasley closed 7 years ago
Alright this seems to work in local & is ready to review assuming CI goes 🍏
I updated the changelog in the PR description to contain a complete list of changes made (also documented in my commit msg)
Couple notes to bring out of the changelog:
clouder.model
method providing a new env & commit in a context manager. This is a more transaction-safe approach while still maintaining original intent IMO9.0.x.x.x
to indicate we're using v9. Connector isn't out for 10 yet, so probably not good to make that jump quite yet (also removes a lint error).cc @t3ddftw
@YannickB - I deployed a few containers, but yeah good call with the One Click deploy.
I'm going to wait for @t3ddftw to give us a review as well - lots of changes here that I'd like more eyes on.
Ok. During the oneclick process, note that the last step (the duplication of Odoo instance into a test install) was already broken before your changes. Everything else was working.
In general oneclick is the best way to check all the code, we can't use travis here because it's obviously kinda difficult to test an infrastructure installation with unit test (but I still hope we'll find a solution one day to automatise this part).
I've got us covered on the testing of external services via unit tests, no problem (connector-carepoint coverage, connector-dns coverage).
Big undertaking though so I want to make sure we've got major changes done before tackling that.
That's good to know, agree we have other priorities but that's something I have in mind since quite a long time, good to see we have some clues.
You're spammy @t3ddftw - please use the "review" feature instead of "single comment"
Thanks for the reviews @YannickB & @t3ddftw - comments attended to. Haven't functionally reviewed fully yet, so still WIP.
Description of latest changes:
In hindsight, the top two I probably should have done in separate PRs.
Ok looks good enough for me, let me know when I can merge.
FYI there's an issue with this that I have been resolving. Probably shouldn't have made so many changes at once - debugging has been a real pain. Too late now though 😆
Alright this seems to work now.
I had to remove the transaction handling for the moment in order to minimize the scope of this ticket troubleshooting. I left the centralization of it in though, which will make for an easier refactor once I study the environment a bit more. I'm going to make an issue for that.
Ok, should I merge it now ?
Yup we're good to merge 👍
And done, thanks for everything
[IMP] clouder: Centralize and improve path/str handling …
ClouderModel
methodClouderModel
self.raise_error
for models that aren't inherited fromclouder.model
ClouderError
in models not inherited fromclouder.model
clouder.container
9.0.2.0.0
to match OCA style for 9, while keeping w/ semantic increase