Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import - new modules #6350

Merged
merged 23 commits into from
Feb 20, 2024
Merged

Import - new modules #6350

merged 23 commits into from
Feb 20, 2024

Commits on Feb 9, 2024

  1. (pkg/flow/internal): add importsource package

    An import source retrieves a module from a source.
    Add the ImportFile to retrieve a module from a file.
    Add the ImportString to retrieve a module from a string.
    wildum committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    78b370a View commit details
    Browse the repository at this point in the history
  2. Add ImportConfigNode

    Add a new config node that retrieves a module via an import source.
    It will parse the module to collect declare and import blocks.
    For every imported import block it will create ImportConfigNode children.
    The children are evaluated and ran by the parent.
    By navigating through the import tree, it's possible to access all imported declares.
    wildum committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    7c68059 View commit details
    Browse the repository at this point in the history
  3. Update flow controller to use the ImportConfigNode.

    When an ImportConfigNode is evaluated, the custom component registry is updated.
    Custom components have edges to import node that they depend on.
    The componentNodeManager can search in the customComponentRegistry for imported declares.
    ImportConfigNodes are runnable nodes. They are ran by the controller.
    When a custom component is instantiated with an imported declare, it will have the customComponentRegistry associated with the scope of the import.
    wildum committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    ad2257d View commit details
    Browse the repository at this point in the history
  4. add import test

    wildum committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    ade13d8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b943ce6 View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2024

  1. Configuration menu
    Copy the full SHA
    b7bd0f5 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2024

  1. Configuration menu
    Copy the full SHA
    a213e8b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a33a241 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b17dd73 View commit details
    Browse the repository at this point in the history
  4. extend test

    wildum committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    153010d View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2024

  1. refactor import tests

    wildum committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    29d83af View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2024

  1. Configuration menu
    Copy the full SHA
    5e6ef3c View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2024

  1. merge main

    wildum committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    35abc3c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e543e32 View commit details
    Browse the repository at this point in the history
  3. use custom args instead of local.file args for import.file

    import.file should not have "isSecret" arg because the imported module is not exported.
    It should then not use the same args as local.file
    wildum committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    1221f5d View commit details
    Browse the repository at this point in the history
  4. lint

    wildum committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    77effec View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2024

  1. Configuration menu
    Copy the full SHA
    9184077 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a2a655f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a2f1a17 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cd65c5d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d103d18 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2024

  1. Configuration menu
    Copy the full SHA
    96d9d0b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f63d560 View commit details
    Browse the repository at this point in the history