Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Moving ShopifyCli::Helpers::PartnersAPI to ShopifyCli::PartnersAPI #508

Merged

Conversation

mkevinosullivan
Copy link
Contributor

@mkevinosullivan mkevinosullivan commented Apr 9, 2020

WHY are these changes introduced?

WHAT is this pull request doing?

  • moving lib/shopify-cli/helpers/partners_api.rb to lib/shopify-cli/partners_api.rb
  • moving test/shopify-cli/helpers/partners_api_test.rb to test/shopify-cli/partners_api_test.rb
  • changing references of Helpers::PartnersAPI to ShopifyCli::PartnersAPI in impacted helpers and tasks
  • changing autoload from lib/shopify-cli/helpers.rb to lib/shopify_cli.rb

Notes

  • Marked [WIP] Work In Progress as testing of commands that use the impacted helpers and tasks has yet to be completed

@mkevinosullivan mkevinosullivan requested a review from a team as a code owner April 9, 2020 00:29
Copy link
Contributor

@ayronshopify ayronshopify left a comment

Choose a reason for hiding this comment

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

🔥 🚒

@mkevinosullivan
Copy link
Contributor Author

Tophat testing (to validate that PartnersAPI works correctly after code changes)

  • start in a non-app directory
  • shopify create rails - correctly authenticates against Partners login
  • log out again
  • shopify serve - correctly authenticates against Partners login
  • mv .env .env.old to prep for next command
  • shopify connect - correctly authenticates against Partners login
    • Issue: the connect command does not populate the SHOP= line, like create does
  • update .env with SHOP= line
  • shopify authenticate shop - correctly authenticates against the shop
  • shopify authenticate identity - correct re-authenticates against Partners login
    • Issue: if logged out, will launch browser tab to authenticate against partner login, THEN prompt to re-authenticate appears from CLI.
  • change out of app directory to a non-app directory
  • shopify create node - correctly authenticates against Partners login
  • log out again
  • shopify serve - correctly authenticates against Partners login
  • mv .env .env.old to prep for next command
  • shopify connect - correctly authenticates against Partners login
    • Issue: the connect command does not populate the SHOP= line, like create does
  • update .env with SHOP= line
  • shopify authenticate shop - correctly authenticates against the shop
  • shopify authenticate identity - correct re-authenticates against Partners login
    • Issue: if logged out, will launch browser tab to authenticate against partner login, THEN prompt to re-authenticate appears from CLI.

@mkevinosullivan mkevinosullivan changed the title [WIP] Moving ShopifyCli::Helpers::PartnersAPI to ShopifyCli::PartnersAPI Moving ShopifyCli::Helpers::PartnersAPI to ShopifyCli::PartnersAPI Apr 9, 2020
@tanema tanema force-pushed the shopify_cli_v2_feature branch from d71d601 to 1f1b0e6 Compare April 13, 2020 19:25
@tanema
Copy link
Contributor

tanema commented Apr 13, 2020

Sorry, you will have to rebase because I rebased the feature branch and there was a change to the partners API.

Context, refactor the remaining code accordingly,
delete Helpers::OS and update test cases as needed.
ShopifyCli::PartnersAPI
- moving lib/shopify-cli/helpers/partners_api.rb to
  lib/shopify-cli/partners_api.rb
- moving test/shopify-cli/helpers/partners_api_test.rb to
  test/shopify-cli/partners_api_test.rb
- changing references of Helpers::PartnersAPI to ShopifyCli::PartnersAPI
  in impacted helpers and tasks
- changing autoload from lib/shopify-cli/helpers.rb to
  lib/shopify_cli.rb
ShopifyCli::PartnersAPI
- moving lib/shopify-cli/helpers/partners_api.rb to
  lib/shopify-cli/partners_api.rb
- moving test/shopify-cli/helpers/partners_api_test.rb to
  test/shopify-cli/partners_api_test.rb
- changing references of Helpers::PartnersAPI to ShopifyCli::PartnersAPI
  in impacted helpers and tasks
- changing autoload from lib/shopify-cli/helpers.rb to
  lib/shopify_cli.rb
@mkevinosullivan mkevinosullivan force-pushed the partnersapi-from-helpers-to-shopifycli branch from 30a85dd to 5d6dd3f Compare April 13, 2020 21:55
@mkevinosullivan mkevinosullivan merged commit 1a7c267 into shopify_cli_v2_feature Apr 14, 2020
@tanema tanema deleted the partnersapi-from-helpers-to-shopifycli branch April 14, 2020 17:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants