View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
5952 | Composr | import | public | 2024-09-18 00:09 | 2024-09-18 00:21 |
Reporter | PDStig | Assigned To | Guest | ||
Priority | normal | Severity | feature | ||
Status | new | Resolution | open | ||
Summary | 5952: Refactor hooks/modules/admin_import | ||||
Description | Refactor 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 Information | This 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. | ||||
Tags | Roadmap: Over the horizon | ||||
Attach Tags | |||||
Time estimation (hours) | |||||
Sponsorship open | |||||
|
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. |
|
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. |
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 |