Draft: PoC of `embed` and `template` refactoring
What does this MR do?
This MR is based on !34 (merged)
The PoC contains 3 parts.
-
assets
folder was turned into a package for embedding the templates. It alone kills the configuration codes. -
templatecollection
is a refactor of thetemplate
andinventory
; 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. -
helpers/migrations
was modified to demo the use oftemplatecollection
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