tracardi icon indicating copy to clipboard operation
tracardi copied to clipboard

Plugin that checks if two arrays are different.

Open atompie opened this issue 3 years ago • 6 comments
trafficstars

Is your feature request related to a problem? Please describe. Plugin that checks if two arrays are different.. This plugin is very simple in terms of python. The challenge is to add it as plugin. This is also very simple if you read this http://docs.tracardi.com/plugins/tutorial/part1/ and http://docs.tracardi.com/plugins/tutorial/part2

Describe the solution you'd like User defines in plugin configuration what two arrays should be compared. Both arrays must be referenced by dot-notation.

Example of configuration

{
   "array1": "[email protected]",
   "array2": "[email protected]",
}

Input: Workflow payload

Output: If the arrays are the same returns the payload on True port if not returns an the difference between arrays.

A = [10, 20, 30, 40, 80]
 B = [100, 30, 80, 40, 60]

set(A) - set(B) = {10, 20}
set(B) - set(A) = {100, 60}

Additional context You will need to setup the dev environment. Here is the tutorial how to do it. Also to understand how the plugins work please read http://docs.tracardi.com/plugins/tutorial/part1/ and http://docs.tracardi.com/plugins/tutorial/part2/ . The next part is o its way so you can extend your knowledge about Tracardi plugins.

atompie avatar Nov 01 '22 21:11 atompie

@patromi would you like to do this plug-in ?

atompie avatar Nov 05 '22 03:11 atompie

@atompie Sure :)

patromi avatar Nov 05 '22 12:11 patromi

hi @atompie I would like to work on this issue, can you please assign this to me?

ddninja avatar Oct 22 '23 14:10 ddninja

@atompie Hello I'm a student in CMU and I have a project. I'm interested in working on this issue. Looks doable could do assign me?

shahad1307 avatar Nov 18 '23 20:11 shahad1307

@shahad1307 Sure assigned. Please work on branch 0.8.2-dev

atompie avatar Nov 18 '23 23:11 atompie

@shahad1307 Please work on branch 0.8.2-dev and this may help to speed up the development: https://www.youtube.com/watch?v=R_kr9mBAKAU

atompie avatar Nov 19 '23 00:11 atompie