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

Restore easypost functionality #112

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

rahulsingh321
Copy link

Issue - #111

luna-lightblade and others added 6 commits January 5, 2025 15:40
The EasyPost 5.0 gem changed the way the client object is instantiated,
requiring the creation of a client that holds the API key and routing
all easypost calls through that client.

This change updates the gem's config to make the API key part of the
configuration, and create a client on instantiation that can be used to
make calls to Easypost.
The way this method is invoked as changed substantially as part of the
changes to Easypost in 5.0. Instead of calling .buy on the shipment,
.buy is now called via the client - passing in the shipment and rate IDs
to purchase.
Solidus has changed their branches from master to main.
... otherwise rspec crashes during initialization because this required
configuration option is missing.
On current versions of FactoryBot, calling .modify crashes unless you
have already called .define and created the factory elsewhere.
…ntrib#111

The buy_easypost_rate method is being called twice, causing exception:
EasyPost::Errors::InvalidRequestError (Postage already exists for this
shipment.):
@fthobe
Copy link

fthobe commented Jan 7, 2025

Fixes #113 #108 #104

@fthobe
Copy link

fthobe commented Jan 7, 2025

Partial Fix to #111

@fthobe
Copy link

fthobe commented Jan 20, 2025

@kennyadsl @tvdeyen @jarednorman this is waiting for a review for weeks now. Could somebody review it or tell us to keep it in a private repo.

@kennyadsl
Copy link
Member

@fthobe the change is welcome but it's a WIP draft PR, with specs failing. I'm afraid that if we review it now, it will change again after it will be in a mergiable state.

@rahulsingh321 rahulsingh321 changed the title [WIP] Restore easypost functionality Restore easypost functionality Jan 23, 2025
@rahulsingh321 rahulsingh321 marked this pull request as ready for review January 23, 2025 03:55
@rahulsingh321 rahulsingh321 force-pushed the issue/108/upgrade_easypost_to_5 branch from e5d8b59 to 2f3ae70 Compare January 23, 2025 05:35
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.

4 participants