agent icon indicating copy to clipboard operation
agent copied to clipboard

Import - new modules

Open wildum opened this issue 1 year ago • 0 comments

PR Description

This PR adds the import functionality of the new modules with import.string and import.file.

The functionality is described in #5547

The change introduces a new type of node: ImportConfigNode. It imports modules from an ImportSource to retrieve declare and import blocks. For every import block, it creates an ImportConfigNode child. The child is evaluated and runs inside of its parent. When the ImportSource retrieves new content, the ImportConfigNode updates its declares and import node children. Then it propagates an update to the root ImportConfigNode which will notify the controller that it has been updated. The loader will then update the CustomComponentRegistry with new content and will trigger the dependants of the ImportConfigNode for reevaluation.

Notes to the Reviewer

The PR can be reviewed commit by commit.

PR Checklist

  • [x] Tests updated

wildum avatar Feb 09 '24 17:02 wildum