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 Document Collapse #9

Merged
merged 3 commits into from
Nov 28, 2022
Merged

Fix Document Collapse #9

merged 3 commits into from
Nov 28, 2022

Conversation

sarvalabs-manish
Copy link
Member

  • Resolves Incorrect Wiretype On Document Collapse #7
  • Refactored Document.Bytes() method to correctly encode Document data
  • Refactored EncodeError generation to be done by Polorize instead of the polorize function.
  • Refactored Depolorize function returning an error for non pointer objects to be wrapped by DecodeError
  • Split the example functions into test files instead of being maintained on a dedicated examples test module

- Refactored EncodeError created by the polorize function, it now returns a bare error that is wrapped into an EncodeError by Polorize. This is for uniformity with the Depolorize flow where all errors from depolorize are wrapped by it into DecodeError
- Refactored Depolorize error for non pointer objects to be wrapped in a DecodeError. Update the relevant test case
- Fixed a bug with Document.Bytes() that caused it return pack encoded bytes instead of doc encoded bytes. #7
- Updated test case for the Bytes() method to be accurate.
Removed examples_test.go file and moved the testable example functions into polo_test.go and document_test.go
@sarvalabs-manish sarvalabs-manish added the bug Something isn't working label Nov 28, 2022
@sarvalabs-manish sarvalabs-manish self-assigned this Nov 28, 2022
@sarvalabs-manish sarvalabs-manish requested review from sarvalabs-rahul and removed request for sarvalabs-rahul November 28, 2022 21:44
@sarvalabs-manish sarvalabs-manish merged commit b403b4a into main Nov 28, 2022
@sarvalabs-manish sarvalabs-manish removed the request for review from sarvalabs-rahul November 28, 2022 21:46
@sarvalabs-manish sarvalabs-manish deleted the fix/doc-collapse branch November 28, 2022 21:46
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

Successfully merging this pull request may close these issues.

Incorrect Wiretype On Document Collapse
1 participant