You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Check types of RunParameter to catch errors and give user feedback #83
Yehia Elbehery (@yehiaelbehery) Thanks for offering help. I will share some more details as this might help.
The example might be a bit too ambiguous, so I will collect some more details tomorrow 👍
Arjen Kroezen (@arjendev) I updated the issue. In fact, we do not validate anything at the moment in the framework.
I think simple guard clauses would be enough so only valid RunParameter and PipelineRunVariable could be instantiated. What do you think?
Leonard Herold (@LeonardHd), perhaps we can also introduce the check to verify we pass in the right type of the output argument in activity.set_result and the output argument in state.add_activity_result. These should only accept dictionary and lists iirc. This was the place where you accidently pushed in a tuple and got an internal error, right?
Activity
yehiaelbehery commentedon Apr 17, 2024
Hi Leonard Herold (@LeonardHd), I can work on this.
LeonardHd commentedon Apr 18, 2024
Yehia Elbehery (@yehiaelbehery) Thanks for offering help. I will share some more details as this might help.
The example might be a bit too ambiguous, so I will collect some more details tomorrow 👍
LeonardHd commentedon Apr 24, 2024
Arjen Kroezen (@arjendev) I updated the issue. In fact, we do not validate anything at the moment in the framework.
I think simple guard clauses would be enough so only valid
RunParameterandPipelineRunVariablecould be instantiated. What do you think?Yehia Elbehery (@yehiaelbehery) let's see what Arjen's point of view here is, as he leads the API concepts.
arjendev commentedon Apr 24, 2024
Sounds good!
Leonard Herold (@LeonardHd), perhaps we can also introduce the check to verify we pass in the right type of the output argument in
activity.set_resultand the output argument instate.add_activity_result. These should only accept dictionary and lists iirc. This was the place where you accidently pushed in a tuple and got an internal error, right?