Skip to content

WordPress specific code in the component #31

@HermanPeeren

Description

@HermanPeeren

In the models of the current component there is code that is specific for handling a WordPress source. The Project Brief however states:

This tool supports a flexible, extensible plugin system. Each migration source (e.g., WordPress) is handled by a dedicated plugin triggered by Joomla events.
You can easily create custom plugins to support other CMS platforms or proprietary data formats.

Having WordPress specific code in the component's models means that those models have to be updated when another source CMS is added. That is against the open-closed principle. A (typically Joomla) solution would be to put all WordPress specific code in a plugin. That can be in the same WordPress plugin you have now or (when it is handling a different aspect of the migration) by making another plugin for these adjustments.

Of course it is OK to have the current WordPress specific code temporarily in the component, as a proof of concept. But in the long run architectural considerations have to be guarded too.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions