-
Notifications
You must be signed in to change notification settings - Fork 225
Clean up POLARIS_UNIFIED flag #6421
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
Conversation
This comment has been minimized.
This comment has been minimized.
dmerand
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth also removing is-polaris-unified-enabled.ts as it's also no longer used after this change?
|
Yea, good call out |
2c60706 to
f72f890
Compare
Coverage report
Show files with reduced coverage 🔻
Test suite run success3328 tests passing in 1382 suites. Report generated by 🧪jest coverage report action from e81c29c |
| }) | ||
|
|
||
| test('excludes the preact flavor by default', async () => { | ||
| test('includes all flavors including preact', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's just delete these tests - they are meaningless now. We just pass through all flavors which is already covered by the other tests
f72f890 to
ad36509
Compare
This stack of pull requests is managed by Graphite. Learn more about stacking. |
### Background Add a new template for "admin.customers.segmentation-templates.data" ### 🎩 1. Checkout this PR on the CLI Shopify/cli#6421 2. In the CLI repo, open `packages/cli-kit/src/public/common/version.ts` and update `CLI_KIT_VERSION` ```ts export const CLI_KIT_VERSION = '3.85.0' ``` 3. In the CLI repo, open `packages/app/src/cli/utilities/developer-platform-client/app-management-client.ts` and update `TEMPLATE_JSON_URL` ```ts const TEMPLATE_JSON_URL = 'https://raw.githubusercontent.com/Shopify/extensions-templates/500a2fc24ebb89635f8c7ccff21e812db2cd1e6e/templates.json' ``` 4. Run `pnpm shopify app generate extension --path=<path-to-your-app> --clone-url https://github.com/Shopify/extensions-templates#Add_Customer_Segment_Template_data_extension` 5. Verify you're able to create new data extension for customer segment ### Checklist - [x] I have 🎩'd these changes - [ ] I have squashed my commits into chunks of work with meaningful commit messages
ad36509 to
6767e9f
Compare
We will always want a tsconfig so we can type the shopify global
6767e9f to
602abeb
Compare
isaacroldan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't 🎩 but code looks good
…for_ui_extensions Remove code to delete the tsconfig for ui extensions

This pull request removes all logic related to the "Polaris Unified" early access feature from the CLI codebase. The main impact is that options and filtering based on the
POLARIS_UNIFIEDenvironment variable or theisPolarisUnifiedEnabledflag are no longer present, simplifying the code and standardizing available templates for all users.Removal of Polaris Unified feature flag logic:
javascriptPolarisEarlyAccessandtypescriptPolarisEarlyAccessoptions are no longer conditionally included in thetemplatesobject ininit.ts, so users will not see Polaris Release Candidate template branches.POLARIS_UNIFIEDenvironment variable or uses theisPolarisUnifiedEnabledfunction to filter template flavors (such as only showingpreactwhen enabled) is removed fromfetch-template-specifications.ts, resulting in consistent template filtering regardless of environment.