Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow function call in rule-type translators #3

Open
4 tasks
aseeland opened this issue Apr 26, 2023 · 0 comments
Open
4 tasks

Allow function call in rule-type translators #3

aseeland opened this issue Apr 26, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@aseeland
Copy link
Contributor

aseeland commented Apr 26, 2023

At the moment a rule-translator is defined by trigger (a source_key which value is used to apply the different rules) and individual key-value pairs for each trigger-value with a list of translators.

Another optional key should be added, e.g. trigger_callback, where a string of an implemented function can be given. As a first example, a function should be implemented, that returns the (dataverse-)type of the value as string.
The keys of the individual key-value pairs are then the return values of the trigger_callback (instead of the trigger values).

As a test example the mapping of parameter values to different EngMeta fields (depending on the type, float vs text) can be used.

  • add function reference mechanism in yml-configs
  • implement get_type as first function that can be referenced in yml-config
  • update documentation (service.yaml and README.md)
  • add unit test
@aseeland aseeland added the enhancement New feature or request label Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant