-
Notifications
You must be signed in to change notification settings - Fork 41
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
Make "inline" arithmetic work in manifests #970
Comments
@jmcook1186, should the inline arithmetic feature work only for multiplication, or should it also allow division, addition, and subtraction? For example, if we have |
oh that's a good point. Maybe we can include a keyword and require names to be wrapped in
Wyt? Do you have any alternative suggestions? |
yeah, that's a good idea, but in the case of |
@jmcook1186 please add the feature request in relation to this issue as part of the description |
need a release in if-core before creating a PR, @narekhovhannisyan please help with that 🙏 |
What
Where a number is passed in a manifest, a sum should also work, e.g.
The following should be allowed:
and also the following, using other parameters in the manifest:
Why
This reduces the number of plugins required in pipelines because simple conversions that would otherwise need dedicated instances of our generic builtins can be done inline.
Context
Part of UX improvements
Prerequisites/resources
n/a
SoW (scope of work)
Acceptance criteria
Given (Setup): Inline arithmetic is enabled for manifests
When (Action): I run the following manifest
Then (Assertion): I get the following output:
The text was updated successfully, but these errors were encountered: