Skip to content

Conversation

@HolQue
Copy link
Collaborator

@HolQue HolQue commented Nov 1, 2024

(Corresponding self tests coming soon.)

Short description:

  • 5 levels of folders and subfolders ('dynamic_imports', 'AA', 'BB', 'CC', 'DD')
  • on every level, 3 files:
    • <file_base_name>.jsonp (defining a level indicator key only, no further imports)
    • <file_base_name>.R.D.jsonp (defining a level indicator key and imports recursively another JSONP file using a dynamic path)
    • <file_base_name>.R.F.jsonp (defining a level indicator key and imports recursively another JSONP file using a fix path)
  • dynamic_imports\global_defs\global_defs_1.jsonp defines some keys used for dynamic import

Use case 1 (fix path):

"[import]" : "./dynamic_imports/dynamic_import.R.F.jsonp"

Result (like expected):

DotDict({'level': 'DD'})

Use case 2 (the same like use case 1, but with dynamic paths):

"[import]" : "./dynamic_imports/dynamic_import.R.D.jsonp"

Result:

{'AA': 'AA',
 'BB': 'BB',
 'CC': 'CC',
 'DD': 'DD',
 '[import]': '... /dynamic_imports/AA/BB/imported.BB.R.D.jsonp',
 'level': 'AA'}

It can be seen that the computation of imports stops at level 'AA'. But also here level 'DD' is expected.

@HolQue HolQue mentioned this pull request Nov 1, 2024
@test-fullautomation test-fullautomation added 0.13.1 enhancement New feature or request labels Nov 4, 2024
@test-fullautomation test-fullautomation added this to the 0.13.1 milestone Nov 4, 2024
@test-fullautomation test-fullautomation merged commit d656227 into namsonx/task/stabi_branch Nov 4, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0.13.1 enhancement New feature or request

Projects

Development

Successfully merging this pull request may close these issues.

3 participants