View Issue Details

IDProjectCategoryView StatusLast Update
0005434Composrcorepublic2024-03-30 14:29
ReporterPatrick SchmalstigAssigned To 
SeverityFeature-request 
Status non-assignedResolutionopen 
Product Version 
Fixed in Version 
Summary0005434: Standardize hooks for actualisations
DescriptionMake a standard where every actualisation (add/edit/remove) function for content can trigger actualisation hooks. Hooks should support pre-actualisation (where parameters can be modified or errors thrown for validation) and post-actualisation. Composr should not crash when hooks do not exist. Hooks should also support an info function which can define an order of execution (or use priority instead).

By having this system, we can significantly reduce the need for contentious_overrides (very nice, but unreliable for IDE code checking and can easily break when source code is changed) or sources_custom for addons. We can also reduce many addon-based clauses within sources files by moving them to these hooks (which means, for example, clauses for the points addon in the code for feedback would no longer exist on PHP runtime when the points addon is not installed since the hooks don't exist).
TagsRisk: Core rearchitecting, Roadmap: Over the horizon
Time estimation (hours)
Sponsorship open

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2023-11-04 07:03 Patrick Schmalstig New Issue
2023-11-04 07:03 Patrick Schmalstig Tag Attached: Risk: Core rearchitecting
2023-11-04 07:03 Patrick Schmalstig Tag Attached: Roadmap: v12
2024-03-26 00:58 Patrick Schmalstig Tag Renamed Roadmap: v12 => Roadmap: Over the horizon
2024-03-30 14:04 Patrick Schmalstig Project Composr alpha bug reports => Composr
2024-03-30 14:29 Patrick Schmalstig Category General / Uncategorised => core