View Issue Details

IDProjectCategoryView StatusLast Update
2496Composrcore_addon_managementpublic2016-10-19 15:06
ReporterChris Graham Assigned ToChris Graham  
PrioritynormalSeverityfeature 
Status closedResolutionno change required 
Summary2496: Simplifications to addon system
DescriptionI don't believe we need the addon.inf files inside the addon tars, the addon_install_code.php files, or most of the DB tables.

The addons_dependencies and addons_files tables can be removed.
The addons table can be stripped down so it is more similar the modules and blocks tables (i.e. just for versioning).

These things exist from the older ocPortal designs, and have carried through to Composr while other parts of our addon system were indeed streamlined.

Instead 100% use of addon_registry hooks would be used for all meta information. The addon management tools will generate these as required.
TagsNo tags attached.
Attach Tags
Time estimation (hours)3
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

Chris Graham

2016-10-19 15:06

administrator   ~4438

I was a bit confused when I wrote this up, trying to remember the state of play within both ocPortal and Composr, when both were divergent.

Composr actually uses the addon.inf for good reasons. Having the registry hook there implies a trust to run PHP code. We can't have it so that every third party who generates a theme or language pack has to be trusted with a PHP file in their addon.

addon_install_code.php is not strictly necessary but it is a nice little feature to have simple code execution without having to build a proper registry hook.

Issue History

Date Modified Username Field Change
2016-04-24 23:34 Chris Graham New Issue
2016-10-19 15:06 Chris Graham Note Added: 0004438
2016-10-19 15:06 Chris Graham Status Not Assigned => Closed
2016-10-19 15:06 Chris Graham Assigned To => Chris Graham
2016-10-19 15:06 Chris Graham Resolution open => no change required