Conversation
This comment has been minimized.
This comment has been minimized.
c07d411 to
d68918c
Compare
theme pull: Pass development theme from CLI 3’s to CLI 2’s local storagetheme pull/push: Pass development theme from CLI 3’s to CLI 2’s local storage
ebfe37e to
df61baf
Compare
Contributor
Coverage report
Test suite run success1074 tests passing in 535 suites. Report generated by 🧪jest coverage report action from 3185b2a |
mgmanzella
reviewed
Mar 1, 2023
Contributor
mgmanzella
left a comment
There was a problem hiding this comment.
noice!! had a couple questions
Contributor
Author
|
Can someone from @Shopify/cli-foundations 🎩 this PR, to confirm that it's only not working on @mgmanzella’s machine? Thank you 😊 Update: PR was able to get 🎩ted :) |
mgmanzella
approved these changes
Mar 2, 2023
Contributor
mgmanzella
left a comment
There was a problem hiding this comment.
nice job!! tophatting looked great, thank you @Poitrin!
Contributor
Differences in type declarationsWe detected differences in the type declarations generated by Typescript for this branch compared to the baseline ('main' branch). Please, review them to ensure they are backward-compatible. Here are some important things to keep in mind:
New type declarationsWe found no new type declarations in this PR Existing type declarationspackages/cli-kit/dist/public/node/themes/theme-manager.d.ts@@ -8,6 +8,6 @@ export declare abstract class ThemeManager {
protected abstract context: string;
constructor(adminSession: AdminSession);
findOrCreate(): Promise<Theme>;
- protected fetch(): Promise<Theme | undefined>;
+ fetch(): Promise<Theme | undefined>;
private create;
}
\ No newline at end of file
|
Poitrin
pushed a commit
to Shopify/shopify-cli
that referenced
this pull request
Mar 3, 2023
### WHY are these changes introduced? Backports changes from CLI 3 to CLI 2, until CLI 2 is sunset. ### WHAT is this pull request doing? Back-port from * Shopify/cli#1369 * Shopify/cli#1410
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WHY are these changes introduced?
Fixes #1387
WHAT is this pull request doing?
shopify theme pullor… pushis called, development theme ID, if existing, and passes it from CLI 3 to 2, so that CLI 2 can set the development theme ID in its own local storage (ShopifyCLI::DB). That way, development theme is not treated as foreign development and therefore not hidden from the select list anymore.[yours]label inshopify theme openlist, if applicable.How to test your changes?
Note:
(pnpm )shopify:run→ CLI 3,shopify-dev→ CLI 2theme pullpnpm buildshopify:run theme list’s andshopify-dev theme list’s[yours]development themes have different IDs, if development themes exist.shopify:run theme init, with name e.g.draft-1shopify:run theme dev --path="./draft-1"shopify:run theme pull --path="./draft-2"pullcommand lists a development theme with[yours]label. Note down the name and Ctrl+C.shopify:run theme listandshopify-dev theme listboth list the[yours]development theme, with the ID and name you noted down before.theme pushshopify-dev theme delete <Theme ID of the development theme you just created>shopify-dev theme listdoes not list the theme anymoreshopify:run theme dev --path="./draft-1"and note down the ID of the new development themeshopify:run theme list→ Note down the name of the development themeshopify:run theme push --path="./draft-1"and verify that the development theme with the name you noted down is listedtheme openshopify:run theme open[development] [yours].Measuring impact
How do we know this change was effective? Please choose one:
Checklist
devordeployhave been reflected in the internal flowchart.