Skip to content

API version 2. See https://docs.patch.io/#/changelog for changes#72

Merged
joustrich merged 1 commit intomainfrom
2.0.0
Oct 13, 2022
Merged

API version 2. See https://docs.patch.io/#/changelog for changes#72
joustrich merged 1 commit intomainfrom
2.0.0

Conversation

@joustrich
Copy link

@joustrich joustrich commented Oct 12, 2022

What

API version 2. See https://docs.patch.io/#/changelog for changes

Why

To support API version 2

SDK Release Checklist

  • Have you added an integration test for the changes?
  • Have you built the gem locally and made queries against it successfully?
  • Did you update the changelog?
  • Did you bump the package version in the code generator?
  • If endpoints were removed, did you manually remove the corresponding files? (this should be rare)
  • For breaking changes, did you plan for the release of the new SDK versions and deploy the API to production?

@joustrich joustrich requested a review from a team October 12, 2022 22:08
@pcothenet
Copy link
Contributor

pcothenet commented Oct 12, 2022

@joustrich could you add a Ruby 3.1.x to the test matrix? And maybe we drop 2.6.x. WDYT?

Copy link
Contributor

@pcothenet pcothenet left a comment

Choose a reason for hiding this comment

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

Looking good, but the issue with the spec seems legit

@joustrich
Copy link
Author

@joustrich could you add a Ruby 3.1.x to the test matrix? And maybe we drop 2.6.x. WDYT?

Sounds good to me!

Comment on lines +43 to +47
describe 'create_order_line_item test' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
Copy link
Contributor

Choose a reason for hiding this comment

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

just confirming we will want specs here correct?

Copy link
Author

Choose a reason for hiding this comment

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

I wasn't sure. Most of these seemed to be empty across the SDKs in favor of integration tests. I added a full integration test for creating an empty order, creating/updating line items, deleting line items and then deleting the draft order in each SDK, which should give pretty good coverage.

@joustrich joustrich merged commit 564d897 into main Oct 13, 2022
@joustrich joustrich deleted the 2.0.0 branch October 13, 2022 16:21
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.

3 participants