[16.0][ADD] fs_storage_environment: make server_environment an optional dependency#574
[16.0][ADD] fs_storage_environment: make server_environment an optional dependency#574
Conversation
7c2ccac to
33155f9
Compare
ivantodorovich
left a comment
There was a problem hiding this comment.
Thanks @yankinmax !
| "data": [ | ||
| "views/fs_storage_view.xml", | ||
| ], | ||
| "auto_install": True, |
There was a problem hiding this comment.
Do we need a migration script in fs_storage to get fs_storage_environment automatically installed on existing deployments? or is the auto_install: True enough?
|
@yankinmax It's a breaking change on a critical addon. It would have been nice to have a discussion about this before making such a change. If someone using environment conf updates the fs_storage addon to the new version without having the fs_storage_environment into its addon path, it will break its installation without any error message explaining why. I'm a little bit afraid by such a change.
|
lmignon
left a comment
There was a problem hiding this comment.
If you remove the dependency on server_environment at the fs_storage level you also need to create glue addons for:
- fs_attachment
- fs_attachment_s3
- fs_storage_backup
But are we ready for such a change? I could manage it on my own projects but these addons are widely used. I think it’s important to gather as much feedback as possible before deciding whether to make this change across all versions or focus on the most recent one.
|
Hello @lmignon I completely understand the situation. |
| "endpoint_url": "$AWS_ENDPOINT_URL", | ||
| } | ||
| """, | ||
| ) |
There was a problem hiding this comment.
This part eval_options_from_env can stay, it is not related to server_environment.
It’s important to keep in mind the different installation methods used by the different integrators. There’s no guarantee that the glue modules will be in the addon's path even if the new version of fs_storage is installed (this is currently the case when dependencies are managed by pip for exemple). |
How do you recommend we proceed? Usually auto-installing the newly created glue module and ensuring the transition is smooth is enough -- then, custom deployment details are a responsibility of each integrator. The same thing occurs when new python dependencies are added to existing modules if you're not using pip to install odoo addons. |
|
Hello reviewers, after trying several approaches to write migration script we've decided to investigate further the I'll put this and related PR's to draft for now. |
@yankinmax @ivantodorovich |
PR is aimed to remove
server_environmentdependency fromfs_storagein the scope of this issue: