-
Notifications
You must be signed in to change notification settings - Fork 119
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
Clarify / make more uniform handling for templates without logic #597
Comments
^^^ @dselman |
@jeromesimeon while investigating this issue, I was working with ergo-engine code. I found out the following behaviour.
. I guess v0.22.0 still must be in development so just thought of reporting this behaviour to you. |
Hello @jeromesimeon , |
It's expected. Not really because Ergo |
Look in the template library for templates without a logic directory (I think there are a few). |
@sanketshevkar I think I read your question a little fast. I don't think there is one without logic but with formulae... Someone will have to try and create one! |
@jeromesimeon I have searched templates in cicero template library, but found none. Also, I was curious that what would be the cases where there could be a need to If we want to |
Those are all good question. I think it depends how you think of "no logic" is it really no logic, or is it "empty logic" in which case you could have a default initialisation to an empty state and no request would trigger execution but the trigger call could still exist. |
Thank you @jeromesimeon. I think this problem is better handled from the ergo packages than cicero. I am trying the same. Would that be the correct thing to do? Also, do all templates need to have a contractName? I am the same signature block template you used above. I'm getting a error in ergo-engine because the contractName is null.
|
@sanketshevkar I think it could probably be handled directly in template studio? This would be worth investigating as it's much less intrusive. (i.e., not do the invoke call in the first place) |
@jeromesimeon, yeah I'll investigate this approach too. But then I have changed some code on the |
Right. yes sorry I confused two different issues here maybe. If we do want to support |
Hi @jeromesimeon, I have created a PR for the ergo respository. |
Is your feature request related to a problem? Please describe.
Currently:
parse
anddraft
but no other command (e.g.,initialize
ortrigger
)This can be a bit surprising, especially
cicero initialize
sometimes works when there is no logic (e.g., when a formula is in the template grammar).Also this means testing logicless templates is somewhat cumbersome / different from other templates.
This can also mean some API calls will throw lower-level exceptions for logicless templates in some cases.
Describe the solution you'd like
More uniform handling of templates with or without logic. For instance:
initialize
clause)Additional context
Example with the signature block template from https://templates.accordproject.org/[email protected]
The text was updated successfully, but these errors were encountered: