View Issue Details

IDProjectCategoryView StatusLast Update
5434Composrcorepublic2024-03-30 14:29
ReporterPDStig Assigned ToGuest  
PrioritynormalSeverityfeature 
Status newResolutionopen 
Summary5434: 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
Attach Tags
Time estimation (hours)
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

There are no notes attached to this issue.

Add Note

View Status
Note
Upload Files
Maximum size: 32,768 KiB

Attach files by dragging & dropping, selecting or pasting them.
You are not logged in You are not logged in. This means you will not get any e-mail notifications. And if you reply, we will not know for sure you are the original poster of the issue.

Issue History

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