Skip to content

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

Open
yankinmax wants to merge 5 commits into
OCA:17.0from
camptocamp:17.0-remove-server-env-dep-webservice
Open

[17.0][BKP] webservice_server_env: make server_environment an optional dependency#153
yankinmax wants to merge 5 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 2 times, most recently from fc4921d to 172ded2 Compare August 19, 2026 14:25
@yankinmax
yankinmax force-pushed the 17.0-remove-server-env-dep-webservice branch from 6e574d4 to f8766a3 Compare August 24, 2026 07:36
yankinmax and others added 2 commits August 24, 2026 10:42
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:webservice_server_env Module webservice_server_env mod:webservice Module webservice series:17.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants