-
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
Design a generic subtract
plugin
#672
Design a generic subtract
plugin
#672
Comments
@zanete @pazbardanl |
@jmcook1186 , that's awesome, very quick work! All of the scenarios make sense apart from the first one. Perhaps this is because I'm really new to the framework and have n't used it myself, I'm a bit confused about what you'd expect to happen. You could even be more specific about the use of the
|
hi @zanete / @jmcook1186 can i get a hint / pointer on this: |
Hi @pazbardanl you can add dosc to if.greensoftware.foundation by raising PRs against the if-docs repo (https://github.com/Green-Software-Foundation/if-docs). |
Thanks for this @pazbardanl, great work. And @zanete that's a great idea, generally I think it's good for plugin ACs to just be manifest files that people can run so there is no ambiguity, but if there are lots of edge cases it can save a lot of time if it's just a table, given this manifest file, if you replace the values according to those in this table then it should output the last col etc... |
@manushak please review |
Sub of: #656
What
Create a new generic
subtract
plugin in 'if-plugins`Why
We want to support as many pipelines as possible using generic plugins that can be adapted to many use cases. We currently have
sum
,multiply
,coefficient
. We also need to supportsubtract
.As a user I want to be able to execute any arbitrary logic using
if
plugins.Prerequisites/resources
None
SoW (scope of work)
if-plugins
repoif-plugins
repoif.greensoftware.foundation
if
repo demonmstrating usageNote the plugin code can be copied from the
sum
plugin and modified to subtract rather than add.Acceptance criteria
A plugin called
Subtract
exists in theif-plugins
repositoryGiven (Setup): the
subtract
plugin existsWhen (Action): a user has downloaded and installed
if
andif-plugins
Then (Assertion): the user should be able to include
subtract
in a pipeline and subtract any parameter that exists in their input data from any other parameter in their input data.Unit tests exists with 100% coverage over
subtract
Given (Setup): a user has downloaded and installed
if-plugins
When (Action): a user runs
npx jest --coverage
Then (Assertion): the coverage report should show that
subtract
is 100% covered and passingDocumentation exists in plugin readme
Given (Setup): the user visits the
if-plugins
repositoryWhen the user navigates to
src/lib/subtract
Then the user sees a README containing documentation describing the
subtract
plugin, copying the format from the other plugin readmes.Documentation exists in if.greensoftware.foundation
Given: the user is on if.greensoftware.foundation
When (Action): they navigate to
reference/plugins
and find thesubtract
plugin sectionThen (Assertion): they see a link to the plugin readme for the subtract plugin
Example manifests exists
Given: the user has downloaded and installed
if
When (Action): the user navigates to
if/manifests/plugins
Then (Assertion): they see manifests that include the
subtract
pluginThe text was updated successfully, but these errors were encountered: