Skip to content

v1.1.2

Choose a tag to compare

@davidullmann271 davidullmann271 released this 09 Dec 11:17
· 261 commits to main since this release
15e337c

🚀 New Feature:

Addition of utility ContextMetadata object

  • it can store various types of parameters useful for async executors or any other context
  • values can be queried from SQL, TM1, or given by manual input
  • collection of the parameter definitions can be stored in a yaml file for easier/cleaner init
  • template yaml-s can be rendered using helper functions for the parameters such as "as_set_mdx" or "as_member_unique_name" for easier usage
  • currently supported parameter types: dimension_element, dimension_element_list, other
  • currently supported helper properties: as_string, as_set_mdx, as_member_unique_name, default

Usage example:

1. Define an init yaml with content like this:

kép

2. Create the ContextMetadata object using the init yaml:

kép

3. Define a template yaml, call the parameter and its needed property:

kép

4. The output dictionary will be rendered with the parameter and property defined:

kép