View Issue Details

IDProjectCategoryView StatusLast Update
5952Composrimportpublic2024-09-18 00:21
ReporterPDStig Assigned ToGuest  
PrioritynormalSeverityfeature 
Status newResolutionopen 
Summary5952: Refactor hooks/modules/admin_import
DescriptionRefactor hooks/modules/admin_import...

create a new subtype... hooks/imports, and anything under that represents an importer, e.g. hooks/imports/cms_merge

Then, create PHP hooks based on addon within each import folder. Start with a core.php which defines information for the importer as a whole as well as functions that can be accessed by any hook within that importer. All other hooks for that importer extend the core.php class and define dependencies and a run function.
Additional InformationThis is to make support for importing data from non-bundled addons much easier to do (currently not easily possible). It also makes importing more organised as the hooks for each importer are addon-based. We can also define overrides for a specific import hook instead of having to override the entire importer itself.

Marked as Over the Horizon but there is a chance this implementation will be needed for v11 so compo.sr can be properly upgraded.
TagsRoadmap: Over the horizon
Attach Tags
Time estimation (hours)
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

PDStig

2024-09-18 00:13

administrator   ~9400

Last edited: 2024-09-18 00:19

Alternatively we can just make a sources_custom/hooks/modules/admin_import and also associate it with the import addon. But have addon guards for every importer. This is not ideal though. But this may be the route I take for now if I must add support.

PDStig

2024-09-18 00:15

administrator   ~9401

Last edited: 2024-09-18 00:21

Note that this will not work for the tracker addon because that uses non-standard database tables (e.g. we don't create them through the standard database API of Composr, so meta information is not registered). Data for MantisBT will still need to be imported manually (or via MantisBT itself) even if we add support for importing non-bundled addons otherwise.

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
2024-09-18 00:09 PDStig New Issue
2024-09-18 00:09 PDStig Tag Attached: Roadmap: Over the horizon
2024-09-18 00:13 PDStig Note Added: 0009400
2024-09-18 00:15 PDStig Note Added: 0009401
2024-09-18 00:16 PDStig Note Edited: 0009401
2024-09-18 00:19 PDStig Note Edited: 0009400
2024-09-18 00:21 PDStig Note Edited: 0009401