cli icon indicating copy to clipboard operation
cli copied to clipboard

payment apps: add support for supported buyer contexts

Open punkstar opened this issue 1 year ago β€’ 1 comments

WHY are these changes introduced?

Fixes #0000

WHAT is this pull request doing?

How to test your changes?

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.

punkstar avatar May 09 '24 10:05 punkstar

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟑 Statements
71.96% (+0.13% πŸ”Ό)
7034/9775
🟑 Branches
68.79% (-0.33% πŸ”»)
3483/5063
🟑 Functions
71.44% (-0.03% πŸ”»)
1881/2633
🟑 Lines
73.27% (+0.18% πŸ”Ό)
6632/9051
Show new covered files 🐣
St.:grey_question:
File Statements Branches Functions Lines
πŸ”΄
... / shopify-developers-client.ts
1.65% 0% 0% 1.74%
🟒
... / active-app-release.ts
100% 100% 100% 100%
🟒
... / apps.ts
100% 100% 100% 100%
🟒
... / create-app-version.ts
100% 100% 100% 100%
🟒
... / create-app.ts
100% 100% 100% 100%
🟒
... / organization.ts
100% 100% 100% 100%
🟒
... / organizations.ts
100% 100% 100% 100%
🟒
... / release-version.ts
100% 100% 100% 100%
🟒
... / user-info.ts
100% 100% 100% 100%
🟒
... / shopify-developers.ts
100% 75% 100% 100%
Show files with reduced coverage πŸ”»
St.:grey_question:
File Statements Branches Functions Lines
🟒
... / app.test-data.ts
93.06% (-0.04% πŸ”»)
92.94% (-0.47% πŸ”»)
83.56%
92.55% (-0.05% πŸ”»)
🟒
... / app.ts
86.21% (-0.94% πŸ”»)
74.12% (+1.39% πŸ”Ό)
89.36% (-1.75% πŸ”»)
87.5% (-1.21% πŸ”»)
🟒
... / identifiers.ts
100% (+4.08% πŸ”Ό)
88.24% (-0.34% πŸ”»)
100% 100%
🟒
... / loader.ts
93.04% (-0.52% πŸ”»)
86.78% (-0.72% πŸ”»)
95% (-0.41% πŸ”»)
94.03% (-0.43% πŸ”»)
🟒
... / extension-instance.ts
85.71% (-0.21% πŸ”»)
77.55% (-0.88% πŸ”»)
91.11%
87.1% (-0.2% πŸ”»)
🟒
... / config.ts
91.18% (-1.68% πŸ”»)
75% (-10.71% πŸ”»)
90% (+1.11% πŸ”Ό)
96.43% (+0.78% πŸ”Ό)
🟒
... / generate.ts
100%
78.13% (-1.88% πŸ”»)
100% 100%
🟒
... / write-app-configuration-file.ts
95% (-0.12% πŸ”»)
89.29% (-3.31% πŸ”»)
100%
97.3% (-0.07% πŸ”»)
🟒
... / link.ts
96.1% (-0.41% πŸ”»)
72.73% (-19.21% πŸ”»)
100%
95.89% (-0.5% πŸ”»)
🟒
... / breakdown-extensions.ts
96.43% (-0.12% πŸ”»)
82.69% (-0.64% πŸ”»)
100% 100%
🟒
... / id-matching.ts
98.77% (-0.18% πŸ”»)
75% (-9.62% πŸ”»)
100% 100%
🟒
... / select-app.ts
92.86% (-0.48% πŸ”»)
75% 100% 100%
🟒
... / extension.ts
91.21% (-0.1% πŸ”»)
74.51% (+0.92% πŸ”Ό)
91.67%
90.91% (-0.1% πŸ”»)
🟒
... / fetch-extension-specifications.ts
95.65% (-1.01% πŸ”»)
87.5% (+7.5% πŸ”Ό)
100% 100%
πŸ”΄
... / developer-platform-client.ts
40% (+3.64% πŸ”Ό)
28.57% (-2.68% πŸ”»)
50% (-10% πŸ”»)
41.67% (+4.82% πŸ”Ό)

Test suite run success

1655 tests passing in 767 suites.

Report generated by πŸ§ͺjest coverage report action from 894b551efead0a0da180c7b17b947265001ad222

github-actions[bot] avatar May 09 '24 11:05 github-actions[bot]

We detected some changes at either packages/*/src or packages/cli-kit/assets/cli-ruby/** and there are no updates in the .changeset. If the changes are user-facing, run "pnpm changeset add" to track your changes and include them in the next release CHANGELOG.

github-actions[bot] avatar May 21 '24 09:05 github-actions[bot]

@punkstar something to also keep in mind is that the minimum required CLI version for payments app extension support is v3.60. Your PR changes would only be applicable to future CLI version releases (soonest being May 27th)

marklevi avatar May 21 '24 13:05 marklevi

Thanks for the feedback @marklevi! I've added some tests around the TOML generation to cover the new field and I've top hatted the import extension command. All looks fine!

punkstar avatar May 24 '24 16:05 punkstar