-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
[17.0][MIG] webservice: Migration to 17.0 #55
Conversation
Thanks for taking over. Are you able to fix the tests? Should be not so complicated |
IMHO some errors are linked to OCA/OCB@4111f02 |
c47f5dd
to
7f5236e
Compare
Hi there, I updated my PR for this as well but was struggling with the tests. If anybody knows how to do this, please let us know.
Here the responses.calls will be empty |
7f5236e
to
8c1e734
Compare
@SilvioC2C congrats for the passed tests. Finally. |
@john-herholz-dt @yankinmax @imlopes @gurneyalex tests are finally green, would you mind reviewing please? 🙏 |
Sorry, just saw your comment.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this huge work!!!
This PR has the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see where I was wrong, thanks @SilvioC2C very nice
@simahawk can you merge it please? I saw you merged the migration to 16.0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, cannot be merged like this...
Issues:
- commits are a bit messed up or incomplete
- the mocking of the response seems useless as you should use
responses
@SilvioC2C pls ping me and we can have a look together.
This PR includes: However, that's not merged yet and by the looks of the reviewer's comments there's still some work to do there. Alternatively, I'd suggest keeping the forward-port on a separate PR, so we can move on with the actual migration |
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: web-api-16.0/web-api-16.0-webservice Translate-URL: https://translation.odoo-community.org/projects/web-api-16-0/web-api-16-0-webservice/
Currently translated at 100.0% (76 of 76 strings) Translation: web-api-16.0/web-api-16.0-webservice Translate-URL: https://translation.odoo-community.org/projects/web-api-16-0/web-api-16-0-webservice/it/
The use of a compute method on ``oauth2_flow`` when this field is touched by the server environment mixin causes it to be defined twice as computed, with differents settings, and this ultimately causes a warning message in the logs: ``` WARNING odoo odoo.modules.registry: webservice.backend: inconsistent 'compute_sudo' for computed fields: protocol, url, auth_type, username, password, api_key, api_key_header, oauth2_flow, oauth2_clientid, oauth2_client_secret, oauth2_token_url, oauth2_authorization_url, oauth2_audience, oauth2_scope, content_type ``` We fix this by overriding method ``compute_server_env()``
d6722d9
to
a630501
Compare
a630501
to
0398355
Compare
@simahawk @ivantodorovich @imlopes @yankinmax @john-herholz-dt I have reworked the PR to take care of the pending PR #47 (which has been superseded by #63, now merged) and the tests (but I'm still open to comments and suggestions). In the meanwhile, would you mind giving this PR another round of reviews? 😅 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @SilvioC2C , I like your changes regarding tests.
/ocabot migration webservice |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at c8f979a. Thanks a lot for contributing to OCA. ❤️ |
Based on #34, includes #35 and #47 forwardport