Skip to content

Restore easypost functionality - #112

Open
rahulsingh321 wants to merge 15 commits into
solidusio-contrib:masterfrom
rahulsingh321:issue/108/upgrade_easypost_to_5
Open

rahulsingh321 wants to merge 15 commits into
solidusio-contrib:masterfrom
rahulsingh321:issue/108/upgrade_easypost_to_5

Conversation

@rahulsingh321

Copy link
Copy Markdown

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

fthobe commented Jan 7, 2025

Copy link
Copy Markdown

Fixes #113 #108 #104

@fthobe

fthobe commented Jan 7, 2025

Copy link
Copy Markdown

Partial Fix to #111

@fthobe

fthobe commented Jan 20, 2025

Copy link
Copy Markdown

@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
Copy Markdown
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
@JustShah

JustShah commented Jan 28, 2025

Copy link
Copy Markdown

@rahulsingh321 My draft PR might help you 🙂

#114

@rahulsingh321
rahulsingh321 force-pushed the issue/108/upgrade_easypost_to_5 branch from d869f24 to 56b1288 Compare January 29, 2025 19:53
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.

5 participants