Skip to content
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

feat: Support non-string parameters. Closes #1236 #2317

Merged
merged 19 commits into from
Nov 29, 2022
Merged

feat: Support non-string parameters. Closes #1236 #2317

merged 19 commits into from
Nov 29, 2022

Conversation

AalokAhluwalia
Copy link
Contributor

Checklist:

@AalokAhluwalia
Copy link
Contributor Author

Addresses #1236

@AalokAhluwalia AalokAhluwalia marked this pull request as ready for review November 18, 2022 22:29
AalokAhluwalia and others added 12 commits November 18, 2022 14:31
Signed-off-by: Aalok <aalok_ahluwalia@intuit.com>
Signed-off-by: Aalok <aalok_ahluwalia@intuit.com>
Signed-off-by: Aalok <aalok_ahluwalia@intuit.com>
Signed-off-by: Aalok <aalok_ahluwalia@intuit.com>
Signed-off-by: Aalok <aalok_ahluwalia@intuit.com>
Signed-off-by: Aalok <aalok_ahluwalia@intuit.com>
Signed-off-by: Aalok <aalok_ahluwalia@intuit.com>
Signed-off-by: Aalok <aalok_ahluwalia@intuit.com>
Signed-off-by: Aalok <aalok_ahluwalia@intuit.com>
Signed-off-by: Aalok <aalok_ahluwalia@intuit.com>
Signed-off-by: AdamKorcz <adam@adalogics.com>
Signed-off-by: Aalok <aalok_ahluwalia@intuit.com>
// When true, a number, boolean, json or string parameter may be extracted. When the field is unspecified, or explicitly
// false, the behavior is to turn the extracted field into a string or json. (e.g. when set to true, the parameter
// 123 will resolve to the numerical type, but when false, or not provided, the string "123" will be resolved)
UseRawDataValue bool `json:"useRawDataValue,omitempty" protobuf:"bytes,5,opt,name=useRawDataValue"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Please add it to the end of the struct - do not change the order of original properties.

  2. If it not specified, consider it as the string (reverting fix: payload serialization in sensor. Fixes #2272 #2273), in this case, if expecting a JSON, just set it to true.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 made the change. let me know if the wording of this comment can be improved.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe making it a bit simpler like UserRawData?

Also, it would be better to add this to the doc.
https://github.com/argoproj/argo-events/blob/master/docs/tutorials/02-parameterization.md

All the rest looks good to me! Thanks again!

Copy link
Member

@whynowy whynowy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@whynowy whynowy merged commit 76b14c2 into argoproj:master Nov 29, 2022
whynowy pushed a commit that referenced this pull request Dec 12, 2022
Signed-off-by: Aalok <aalok_ahluwalia@intuit.com>
bilalba pushed a commit to intuit-data-os/argo-events that referenced this pull request Jan 9, 2023
)

Signed-off-by: Aalok <aalok_ahluwalia@intuit.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants