-
Notifications
You must be signed in to change notification settings - Fork 702
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
[wrangler] Prevents uploads with both cron triggers and smart placement enabled #3390
[wrangler] Prevents uploads with both cron triggers and smart placement enabled #3390
Conversation
🦋 Changeset detectedLatest commit: 609a118 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Wouldn't it make more sense to do this validation in the API? If it becomes supported in future, it won't require people to update their wrangler versions |
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/5158640018/npm-package-wrangler-3390 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/3390/npm-package-wrangler-3390 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/5158640018/npm-package-wrangler-3390 dev path/to/script.js Additional artifacts:npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/5158640018/npm-package-cloudflare-pages-shared-3390 Note that these links will no longer work once the GitHub Actions artifact expires. |
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.
Tidy work for someone who doesn't know the code base.
Nice one @shahsimpson.
Just a couple of NITs and one minor request about ensuring test-coverage. Otherwise LGTM.
Codecov Report
@@ Coverage Diff @@
## main #3390 +/- ##
==========================================
+ Coverage 75.42% 75.47% +0.05%
==========================================
Files 182 182
Lines 11063 11070 +7
Branches 2902 2903 +1
==========================================
+ Hits 8344 8355 +11
+ Misses 2719 2715 -4
|
8250a5c
to
297ccfb
Compare
297ccfb
to
609a118
Compare
Hi @Skye-31! This validation is done in the API as well. Since the calls to deploy a worker and update cron triggers go to separate endpoints, we want to allow for users that had already deployed workers with both configured (before we added that validation) to continue to deploy via Wrangler while also being pushed to update their config. |
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.
Love it! Nice work @shahsimpson - LGTM.
Revert "Prevents uploads with both cron triggers and smart placement enabled (cloudflare#3390)" This reverts commit b5b46b4.
Revert "Prevents uploads with both cron triggers and smart placement enabled (cloudflare#3390)" This reverts commit b5b46b4.
Revert "Prevents uploads with both cron triggers and smart placement enabled (cloudflare#3390)" This reverts commit b5b46b4.
Fixes # [insert GH or internal issue number(s)].
What this PR solves / how to test:
This PR prevents uploads that enable smart placement and include cron triggers. Cron triggers are currently unsupported with smart placement.
Author has included the following, where applicable:
Reviewer is to perform the following, as applicable: