Skip to content

[19.0] webservice_server_env: preserve data on install - #158

Open
yankinmax wants to merge 3 commits into
OCA:19.0from
camptocamp:19.0-webservice_server_env-preserve-data
Open

[19.0] webservice_server_env: preserve data on install#158
yankinmax wants to merge 3 commits into
OCA:19.0from
camptocamp:19.0-webservice_server_env-preserve-data

Conversation

@yankinmax

@yankinmax yankinmax commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

This is basically the same idea as we've introduced in v18 PR:

Here we only need to include the data preservation on install.
Depends on:

Includes:

@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_server_env Module webservice_server_env series:19.0 labels Aug 24, 2026
simahawk and others added 2 commits September 1, 2026 11:56
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 19.0-webservice_server_env-preserve-data branch from 857969a to 9d7f7df Compare September 1, 2026 08:57
@OCA-git-bot OCA-git-bot added the mod:webservice Module webservice label Sep 1, 2026
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:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants