Skip to content

Draft: PoC of `embed` and `template` refactoring

Lucas Li requested to merge 20-spike-investigate-usage-of-embed into main

What does this MR do?

This MR is based on !34 (merged)

The PoC contains 3 parts.

  1. assets folder was turned into a package for embedding the templates. It alone kills the configuration codes.
  2. templatecollection is a refactor of the template and inventory; it also initializes a global template store using the embedded assets. There is no need for environmental variables. The package interface and signature are significantly improved, and we will have better maintainability, IMO.
  3. helpers/migrations was modified to demo the use of templatecollection

Author's Checklist

For anything in this list which will not be completed, please provide a reason in the MR discussion.

Required

  • Ensure a release milestone is set.
  • MR title and description are up to date, accurate, and descriptive.
  • MR targeting the appropriate branch.
  • MR has a green pipeline on GitLab.com.
  • When ready for review, MR is labeled workflowready for review per the MR workflow.

Expected

  • Test plan indicating conditions for success has been posted and passes.
  • Documentation is created or updated.
  • Tests are added.

Related issues

Edited by Lucas Li

Merge request reports