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

Remove API Client config from link command #3411

Merged
merged 2 commits into from
Feb 9, 2024

Conversation

alvaro-shopify
Copy link
Contributor

@alvaro-shopify alvaro-shopify commented Feb 9, 2024

WHY are these changes introduced?

Partially Fixes: https://github.com/Shopify/develop-app-management/issues/1612

Versioned app configuration has been 100% rolled out altogether with the 3.55.0 release. That means that the CLI should not use api client configuration anymore

WHAT is this pull request doing?

  • link command is not merging the remote API Client configuration
  • Removed unused API Client configuration from the app API requests

How to test your changes?

  • link command should work as expected

Post-release steps

Measuring impact

How do we know this change was effective? Please choose one:

  • n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix
  • Existing analytics will cater for this addition
  • PR includes analytics changes to measure impact

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes
  • I've made sure that any changes to dev or deploy have been reflected in the internal flowchart.

Copy link
Contributor

github-actions bot commented Feb 9, 2024

Thanks for your contribution!

Depending on what you are working on, you may want to request a review from a Shopify team:

  • Themes: @shopify/advanced-edits
  • UI extensions: @shopify/ui-extensions-cli
    • Checkout UI extensions: @shopify/checkout-ui-extensions-api-stewardship
  • Hydrogen: @shopify/hydrogen
  • Other: @shopify/cli-foundations

Copy link
Contributor

github-actions bot commented Feb 9, 2024

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
73.88% (-0.05% 🔻)
6592/8922
🟡 Branches
70.63% (-0.12% 🔻)
3193/4521
🟡 Functions
73.43% (-0.07% 🔻)
1733/2360
🟡 Lines
74.9% (-0.05% 🔻)
6215/8298
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / config.ts
86.67% (-6.67% 🔻)
70.59% (-11.76% 🔻)
87.5%
87.5% (-8.33% 🔻)
🟢
... / breakdown-extensions.ts
97.2%
80.43% (-4.35% 🔻)
100% 100%

Test suite run success

1580 tests passing in 738 suites.

Report generated by 🧪jest coverage report action from 8e37004

Copy link
Contributor

@gonzaloriestra gonzaloriestra left a comment

Choose a reason for hiding this comment

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

I've tried creating a new app and running link, but I'm getting an error:

Fix a schema error in /Users/gonzalo/tests/2024-02-09/shopify.app.toml:                                                │
│  [                                                                                                                      │
│    {                                                                                                                    │
│      "code": "invalid_type",                                                                                            │
│      "expected": "string",                                                                                              │
│      "received": "undefined",                                                                                           │
│      "path": [                                                                                                          │
│        "name"                                                                                                           │
│      ],                                                                                                                 │
│      "message": "Required"                                                                                              │
│    },                                                                                                                   │
│    {                                                                                                                    │
│      "code": "invalid_type",                                                                                            │
│      "expected": "object",                                                                                              │
│      "received": "undefined",                                                                                           │
│      "path": [                                                                                                          │
│        "auth"                                                                                                           │
│      ],                                                                                                                 │
│      "message": "Required"                                                                                              │
│    },                                                                                                                   │
│    {                                                                                                                    │
│      "code": "invalid_type",                                                                                            │
│      "expected": "object",                                                                                              │
│      "received": "undefined",                                                                                           │
│      "path": [                                                                                                          │
│        "webhooks"                                                                                                       │
│      ],                                                                                                                 │
│      "message": "Required"                                                                                              │
│    },                                                                                                                   │
│    {                                                                                                                    │
│      "code": "invalid_type",                                                                                            │
│      "expected": "string",                                                                                              │
│      "received": "undefined",                                                                                           │
│      "path": [                                                                                                          │
│        "application_url"                                                                                                │
│      ],                                                                                                                 │
│      "message": "Required"                                                                                              │
│    },                                                                                                                   │
│    {                                                                                                                    │
│      "code": "invalid_type",                                                                                            │
│      "expected": "boolean",                                                                                             │
│      "received": "undefined",                                                                                           │
│      "path": [                                                                                                          │
│        "embedded"                                                                                                       │
│      ],                                                                                                                 │
│      "message": "Required"                                                                                              │
│    }                                                                                                                    │
│  ]

'@shopify/app': patch
---

Remove api client configuration from the link command
Copy link
Contributor

Choose a reason for hiding this comment

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

This is transparent for the users, I think we don't need a changelog entry.

packages/app/src/cli/services/app/select-app.ts Outdated Show resolved Hide resolved
@alvaro-shopify alvaro-shopify force-pushed the remove-api-client-config-from-link branch from 3564dab to 8e37004 Compare February 9, 2024 16:33
@alvaro-shopify alvaro-shopify added this pull request to the merge queue Feb 9, 2024
Merged via the queue into main with commit c43c4d9 Feb 9, 2024
@alvaro-shopify alvaro-shopify deleted the remove-api-client-config-from-link branch February 9, 2024 16:57
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.

2 participants