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

Fix task processing input validation #46058

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

julien-nc
Copy link
Member

It was dropping some optional inputs.

Copy link
Member

@marcelklehr marcelklehr left a comment

Choose a reason for hiding this comment

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

🙈 I recently discovered that I've been using the + operator wrong

@julien-nc julien-nc force-pushed the fix/task-processing-input-validation branch from cbfad3f to 0593fbf Compare June 24, 2024 14:48
@julien-nc julien-nc force-pushed the fix/task-processing-input-validation branch from 0593fbf to b5b6a72 Compare June 25, 2024 08:32
@julien-nc julien-nc force-pushed the fix/task-processing-input-validation branch from b5b6a72 to 79164fb Compare June 26, 2024 09:23
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
@julien-nc julien-nc force-pushed the fix/task-processing-input-validation branch from 79164fb to 7e1dd0b Compare July 1, 2024 08:37
… input/output keys that are not in the task values

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
@julien-nc
Copy link
Member Author

@marcelklehr I had to adjust again to make the tests pass. removeSuperfluousArrayKeys now only tries to keep the keys that are defined in the task input/output array. Tests were failing because optional values might not be set.

As the purpose of this method is to remove keys, this fix seems fine to me. But do we actually check that all the input shape fields are defined in the task? If not, do you think it should be done?

@marcelklehr
Copy link
Member

But do we actually check that all the input shape fields are defined in the task? If not, do you think it should be done?

Yes, the validateInput and validateOutput methods check this

@marcelklehr marcelklehr merged commit beececf into master Jul 1, 2024
165 checks passed
@marcelklehr marcelklehr deleted the fix/task-processing-input-validation branch July 1, 2024 10:22
@blizzz blizzz mentioned this pull request Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants