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] ID field usage in string representation of EasyPost objects #311

Merged
merged 4 commits into from
Apr 10, 2024

Conversation

nwithan8
Copy link
Member

@nwithan8 nwithan8 commented Apr 9, 2024

Description

Previous method of reflection to retrieve the id of an EasyPostResource often failed, resulting in fallback to empty string. As a result, the string representation of any EasyPostResource was often an empty string.

New method improves toString calculation, including accounting for present/non-present id field (ephemeral objects).

Testing

Pull Request Type

Please select the option(s) that are relevant to this PR.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Improvement (fixing a typo, updating readme, renaming a variable name, etc)

@nwithan8 nwithan8 requested a review from a team as a code owner April 9, 2024 22:54
@jchen293
Copy link
Member

I know the code is very old, but is it possible to have a unit test for this change?

@nwithan8 nwithan8 merged commit 3807ef8 into master Apr 10, 2024
17 checks passed
@nwithan8 nwithan8 deleted the printing branch April 10, 2024 19:25
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.

None yet

3 participants