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

Implement Additional Error Handling in Transform / Walk Code #938

Open
bflad opened this issue Feb 29, 2024 · 0 comments
Open

Implement Additional Error Handling in Transform / Walk Code #938

bflad opened this issue Feb 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bflad
Copy link
Member

bflad commented Feb 29, 2024

Module version

v1.6.0

Use-cases

Similar to #933 there might be other tftypes package Transform()/Walk() logic which may or may not be fully handling the error return properly. While most of this sort of logic in the framework should be returning diagnostics to wrapping logic rather than error back to the Transform()/Walk() caller, there are cases where tftypes.Value can get errantly set, especially in the case of dynamic types.

Proposal

Double check Transform()/Walk() for error return handling, including:

  • NullifyCollectionBlocks
  • ReifyNullCollectionBlocks
  • Any others

The error return should be converted into a "unexpected" error diagnostic so provider developers and framework maintainers can more easily determine triage steps, rather than the potential for other unexpected behavior.

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant