#5952 - Refactor hooks/modules/admin_import

  • By
  • Added
  • 16 views
Identifier #5952
Issue type Feature request or suggestion
Title Refactor hooks/modules/admin_import
Status Open
Tags

Roadmap: Over the horizon (custom)

Handling member Deleted
Addon 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.
Steps to reproduce

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.
Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated