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

Adding assert to static tasks for data type #745

Merged
merged 1 commit into from
Apr 7, 2022
Merged

Conversation

JackUrb
Copy link
Contributor

@JackUrb JackUrb commented Apr 4, 2022

Overview

In upgrading to 1.0, we revealed some tasks that weren't following the expected format for Static Tasks. This adds an assertion to the underlying AgentState which is now responsible for noting when the expected data format isn't met. It also updates a comment in-code to point to the leaky abstraction where the ClientIOHandler contains some code that services a specific blueprint, however I don't have a short-term solution to resolve this one.

Testing

Automated testing

@JackUrb JackUrb requested a review from pringshia April 4, 2022 17:50
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 4, 2022
Copy link
Contributor

@pringshia pringshia left a comment

Choose a reason for hiding this comment

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

Thanks for adding. Good to have the validation closer to the data source.

@JackUrb JackUrb merged commit 3151ac0 into main Apr 7, 2022
@JackUrb JackUrb deleted the abstract-static-assert branch April 7, 2022 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants