Open arumsey opened 5 months ago
Who is using / requesting this ? What is the context ?
Who is using / requesting this ? What is the context ?
The Import as a Service team/project is requesting this feature.
Adding a declarative API on top of the existing import.js
feature will enable less technical users to participate in the import of a site. In addition, the proposed JSON configuration structure will also be used by the import service that is being devleoped so that custom code will not need to be executed on the server.
The feature being proposed is fully backwards compatible with the existing AEM Importer features. This means all existing import scripts will still work. The new abstraction layer being proposed will be built on top of the transformation file API. The responsibility of the transformation factory is to create a valid transformation object from the JSON configuration. Additionally, a developer creating an import script could even consume the declarative API if they want to simplify the work they need to do when writing a custom import script.
Finally, the introduction of a JSON configuration object will make it easier to be machine generated from a blueprint detection UI as well as AI prompts.
Ok, thanks for the details. Once you have a first draft version, we would need several projects using the declarative approach instead of the current approach. Also, it would be required to get adoption from the project leads or from non-technical users (as this is the target audience).
Introduce a higher-level Importer API that provides a declarative approach to transformations
Transformer Class
Importer Factory