Skip to content

[17.0][BKP] webservice_server_env: make server_environment an optional dependency - #153

Merged
OCA-git-bot merged 4 commits into
OCA:17.0from
camptocamp:17.0-remove-server-env-dep-webservice
Nov 10, 2026
Merged

OCA-git-bot merged 4 commits into
OCA:17.0from
camptocamp:17.0-remove-server-env-dep-webservice

Conversation

@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 mod:webservice_server_env Module webservice_server_env series:17.0 labels Aug 19, 2026
@yankinmax
yankinmax force-pushed the 17.0-remove-server-env-dep-webservice branch from 18abc64 to 8b3a59a Compare August 19, 2026 08:18
@yankinmax yankinmax changed the title [17.0][ADD] webservice_server_env: make server_environment an optional dependency [17.0][BKP] webservice_server_env: make server_environment an optional dependency Aug 19, 2026
@yankinmax
yankinmax force-pushed the 17.0-remove-server-env-dep-webservice branch 3 times, most recently from 172ded2 to 6e574d4 Compare August 20, 2026 06:38
@yankinmax
yankinmax force-pushed the 17.0-remove-server-env-dep-webservice branch from 6e574d4 to f8766a3 Compare August 24, 2026 07:36
@petrus-v

petrus-v commented Nov 9, 2026

Copy link
Copy Markdown

all dependents PRs has been merged, could you rebase

@yankinmax
yankinmax force-pushed the 17.0-remove-server-env-dep-webservice branch from 57a0c23 to d9094d6 Compare November 9, 2026 09:37
@yankinmax

Copy link
Copy Markdown
Contributor Author

all dependents PRs has been merged, could you rebase

DONE, thank you

Comment thread webservice_server_env/__manifest__.py Resolved
dreispt and others added 3 commits November 9, 2026 13:36
PR#146 split server_environment out of `webservice` into the optional
`webservice_server_env` module, but the logic resetting `oauth2_flow`
when `auth_type` is no longer "oauth2" only lived in
`webservice_server_env`'s `_compute_server_env` override.

Without `server_environment` installed, switching a backend's
`auth_type` away from "oauth2" (via the UI or a plain write) silently
left a stale `oauth2_flow`, which `_get_adapter_protocol` would then
still factor into the selected component.

Add an `_onchange_auth_type` plus `create`/`write` overrides on
`webservice.backend` itself so the reset is guaranteed unconditionally,
independent of `server_environment`. `webservice_server_env`'s own
override is unchanged and still covers its own case (env-var-driven
values).
@yankinmax
yankinmax force-pushed the 17.0-remove-server-env-dep-webservice branch from d9094d6 to 038f5e8 Compare November 9, 2026 11:37

@petrus-v petrus-v 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.

code looks good to me

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@simahawk

Copy link
Copy Markdown
Contributor

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 17.0-ocabot-merge-pr-153-by-simahawk-bump-nobump, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 79b9892 into OCA:17.0 Nov 10, 2026
8 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 76221f3. 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.

7 participants