Skip to content

Minor code refactor - #251

Open
ipmach wants to merge 3 commits into
developmentfrom
imp/core_components
Open

Minor code refactor#251
ipmach wants to merge 3 commits into
developmentfrom
imp/core_components

Conversation

@ipmach

@ipmach ipmach commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Task

Minor changes to improve the code overall structure.

  • Improve persistency file separation from Core components.
  • Add prefix in the ID generator to allow unique IDs for different components.

Description

  • Now the IDs are not simple a number but the name of the component and the number.
  • Persistency interfaces now in the same file for code clean

     Core Component / Core Detector ------>  |(persistence module) ----> interface -----> Rest stuff |

  • This Pull-Request goes to the development branch.
  • I have successfully run prek locally.
  • I have added tests to cover my changes.
  • I have linked the issue-id to the task-description.
  • I have performed a self-review of my own code.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

storage_options: dict[str, Any] = {}


def get_configured_variables(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is actually not related to the persistency. I think we should move it to a config related file.

return result


def get_global_variables(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get_global_variables is specific to VariableDetectors and should be located there probably.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants