Skip to content

[18.0][REF] webservice: split core to webservice_core - #164

Merged
OCA-git-bot merged 2 commits into
OCA:18.0from
camptocamp:18-ws-split-core
Sep 23, 2026
Merged

OCA-git-bot merged 2 commits into
OCA:18.0from
camptocamp:18-ws-split-core

Conversation

@simahawk

Copy link
Copy Markdown
Contributor
  • leave component dependency and oauth implementation into webservice
  • define new handler mechanism (similar to endpoint)
  • move request handling to a mixin that can be reusable
  • add some documentation (!!!)

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @etobella,
some modules you are maintaining are being modified, check this out!

@OCA-git-bot OCA-git-bot added mod:webservice Module webservice series:18.0 mod:webservice_core Module webservice_core labels Sep 15, 2026
@simahawk
simahawk force-pushed the 18-ws-split-core branch 2 times, most recently from 99b6ed2 to 9072116 Compare September 16, 2026 10:09
@simahawk
simahawk marked this pull request as ready for review September 16, 2026 10:16

@Ricardoalso Ricardoalso left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM in the overall

Some open points I found

@Ricardoalso Ricardoalso Sep 21, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like discussed, it would be great to incorporate the content_only flag mentioned in #142 into this mixin.

Keeping the request.content as the default (even if it isn't respecting the Request documentation)

All of Requests’ functionality can be accessed by these 7 methods. They all return an instance of the Response object.

https://requests.readthedocs.io/en/latest/api/#main-interface

but at least it would be configurable in the GUI and we avoid breaking things (FIX proposal done in #144)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll tackle this in a second PR to ease review.

Comment thread webservice_core/models/webservice_backend.py Outdated
Comment thread webservice_core/utils.py
Comment thread webservice_core/tests/test_webservice.py

@etobella etobella left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Greatº

webservice_core: improve tech_name

* go to mixin to be reusable
* auto-generate it and auto-clean it
@simahawk

Copy link
Copy Markdown
Contributor Author

@Ricardoalso all comments addressed

@simahawk

Copy link
Copy Markdown
Contributor Author

FTR I've bumped webservice version manually to 2.0.0

@simahawk

Copy link
Copy Markdown
Contributor Author

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 18.0-ocabot-merge-pr-164-by-simahawk-bump-nobump, awaiting test results.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

@simahawk The merge process could not be finalized, because command twine upload --disable-progress-bar --non-interactive --repository-url https://upload.pypi.org/legacy/ -u __token__ odoo_addon_webservice_core-18.0.1.0.0.2-py3-none-any.whl failed with output:

Uploading distributions to https://upload.pypi.org/legacy/
Uploading odoo_addon_webservice_core-18.0.1.0.0.2-py3-none-any.whl
�[33mWARNING �[0m Error during upload. Retry with the --verbose option for more details. 
�[31mERROR   �[0m HTTPError: 429 Too Many Requests from https://upload.pypi.org/legacy/  
         Too Many Requests                                                      

@simahawk

Copy link
Copy Markdown
Contributor Author

@OCA/pypi-support can you pls register webservice_core on pypi? 😇

@simahawk

Copy link
Copy Markdown
Contributor Author

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 18.0-ocabot-merge-pr-164-by-simahawk-bump-nobump, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit e9ed28d into OCA:18.0 Sep 23, 2026
5 of 7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 9da7e37. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants