Skip to content

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

Merged
OCA-git-bot merged 2 commits into
OCA:19.0from
camptocamp:19.0-webservice_server_env-preserve-data
Sep 16, 2026
Merged

OCA-git-bot merged 2 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
@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
@simahawk

Copy link
Copy Markdown
Contributor

@yankinmax dep merged

yankinmax and others added 2 commits September 16, 2026 08:45
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 9d7f7df to 9fc11cd Compare September 16, 2026 05:46
@simahawk

Copy link
Copy Markdown
Contributor

/ocabot merge minor

@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 19.0-ocabot-merge-pr-158-by-simahawk-bump-minor, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit b0c3b0c into OCA:19.0 Sep 16, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants