PrestaShop / PrestaShop

PrestaShop is the universal open-source software platform to build your e-commerce solution.
https://www.prestashop-project.org/
Other
7.93k stars 4.76k forks source link

Allow to extend native modules in the autoupgrade module #28599

Open Progi1984 opened 2 years ago

Progi1984 commented 2 years ago

Prerequisites

Is your feature request related to a problem?

As defined in this PR https://github.com/PrestaShop/autoupgrade/pull/484, native modules are defined in composer.lock of the project. If we build a distribution, we would want to add our own native modules to this existing list.

Describe the solution you'd like

We allow to define additionals native modules. This definition comes back from an API. This API is defined in a file (which path is modules/autoupgrade/workspace/config.json which have a key configuration > external > api and have an array as value). The API can have a patten with the output version of upgrade (%version_current%, %version_upgrade%). The API outputs an array like this :

{
    "native_modules":["module_abc"]
}

Alternatives you've considered

No response

Additional context

No response

Do you plan to work on this feature?

hibatallahAouadni commented 2 years ago

Hello @Progi1984

Thank you for your suggestion. The Product Team will take it into consideration for future developments. Please be aware that there is no guarantee that this feature will be developed anytime soon. Waiting for your PR :rocket:

Thank you

matthieu-rolland commented 2 years ago

As discussed IRL, this is the way to go 👍

MatShir commented 2 years ago

LGTM !