#5540 - Add minimum required Composr version property to every addon / block / module / theme

  • By
  • Added
  • 11 views
Identifier #5540
Issue type Feature request or suggestion
Title Add minimum required Composr version property to every addon / block / module / theme
Status Completed
Tags

Risk: Changes core website behaviour (custom)

Roadmap: v11 (custom)

Handling member PDStig
Addon core
Description As we prepare v11 alpha for its first bleeding edge release, we need to make sure people do not accidentally install v10 components into v11 and vice versa.

Add a couple of new properties to every addon / block / module / theme's info function:

min_cms_version - float
max_cms_version - float

min_cms_version is required. It defines the minimum version of Composr required to install the addon / block / module / theme. In v11, this is set to 11.0. Any / all components that either do not have this property set, or it is set < 11.0, will trigger an error when someone tries to install or upgrade it.

max_cms_version - optional, but recommended when there is a later version of Composr out that the component would not work. Again, if Composr's version is > this version, trying to install or upgrade it will result in an error.

If possible, when exporting a component, it should set min_cms_version to the version of the software when exported and the developer did not define this property.
Steps to reproduce

Additional information min_cms_version support needs implemented in v10 as well. While we do not need to define this property on any components (this would cause unnecessary upgrading of every addon, which we don't want), v10 needs to at least error if someone tries to install a v11 component on v10.

For backwards compatibility, v10 should allow installing any component that has min_cms_version undefined, but v11 should error if you try to install something with this property undefined (min_cms_version is a required property for all components starting in v11).

Document this all as well. And add unit tests for these properties.
Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated