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

Refactor base64 decoding null check. #13

Merged
merged 2 commits into from
Nov 22, 2024
Merged

Refactor base64 decoding null check. #13

merged 2 commits into from
Nov 22, 2024

Conversation

tjni
Copy link
Owner

@tjni tjni commented Nov 22, 2024

The base64 decoding function is used to deserialize channel values, pending writes, and pending sends. Even though pending writes and pending sends also have nullable blobs according to the DB schema, they seem to always hold non-null values.

The code and type hints in the _load_checkpoint method assume that pending write and pending sends are non-null, so we continue to do the same and only scope null handling to channel values.

We also add a test to catch this regression moving forward.

Builds off of #11.

@tjni tjni force-pushed the refactor-non-null-check branch from 018f737 to a02c7f8 Compare November 22, 2024 23:27
tjni added 2 commits November 22, 2024 15:36
The base64 decoding function is used to deserialize channel values,
pending writes, and pending sends. Even though pending writes and
pending sends also have nullable blobs according to the DB schema,
they seem to always hold non-null values.

The code and type hints in the _load_checkpoint method assume that
pending write and pending sends are non-null, so we continue to do
the same and only scope null handling to channel values.
@tjni tjni force-pushed the refactor-non-null-check branch from a02c7f8 to b2da631 Compare November 22, 2024 23:37
@tjni tjni merged commit b014abd into main Nov 22, 2024
6 checks passed
@tjni tjni deleted the refactor-non-null-check branch November 22, 2024 23:40
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.

1 participant