Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Choose conditional and operator when create a segmentation by csv #1270

Open
barbararochazup opened this issue May 27, 2021 · 3 comments
Open
Labels
enhancement New feature or request good first issue Good for newcomers moove Improvements/additions/fixes for moove module. ui Improvements/additions/fixes for ui module.

Comments

@barbararochazup
Copy link
Contributor

barbararochazup commented May 27, 2021

Today when a segmentation with csv is created, by default, the conditional is Equals and the operator is Or:

image

Should be applicable give to the user the option to choose the conditional and operator that would like.

Maybe a new field Conditional and other Operator as Key field:
image

#RelatedTo: https://forum.zup.com.br/t/utilizacao-da-condicional-contains-na-regra/83/4

@barbararochazup barbararochazup added enhancement New feature or request good first issue Good for newcomers ui Improvements/additions/fixes for ui module. moove Improvements/additions/fixes for moove module. labels May 27, 2021
@github-actions
Copy link

This issue is considered stale, please check if it will still be considered. If nothing is done, it will be closed in 7 days.

@wfcosta
Copy link

wfcosta commented Aug 27, 2021

@barbararochazup, tudo bem?

a ideia é que o csv fique dessa forma?

truckDriverId;EQUAL;123
truckDriverId2;GREATER_THAN;5512
truckDriverId3;GREATER_THAN_OR_EQUAL;1232133
truckDriverId4;LOWER_THAN;44612
truckDriverId5;STARTS_WITH;8123
truckDriverId6;NOT_EQUAL;8123
truckDriverId7;ENDS_WITH;8123
truckDriverId8;MATCHES;8123
truckDriverId9;MATCHES;8123
truckDriverId10;CONTAINS;8123
AND

truckDriverId;EQUAL;123
truckDriverId2;GREATER_THAN;5512
truckDriverId3;GREATER_THAN_OR_EQUAL;1232133
truckDriverId4;LOWER_THAN;44612
truckDriverId5;STARTS_WITH;8123
truckDriverId6;NOT_EQUAL;8123
truckDriverId7;ENDS_WITH;8123
truckDriverId8;MATCHES;8123
truckDriverId9;MATCHES;8123
truckDriverId10;CONTAINS;8123
OR

ou você tem alguma outra sugestão?

@barbararochazup
Copy link
Contributor Author

Hi @wfcosta

I had thought otherwise, with a new field on UI (Screen) to indicate how conditional would be used.

So the CSV file would continue in the same format:

truckerDriverId
123
5512
8123

But your sugestion looks good!

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
enhancement New feature or request good first issue Good for newcomers moove Improvements/additions/fixes for moove module. ui Improvements/additions/fixes for ui module.
Projects
None yet
Development

No branches or pull requests

2 participants