Skip to content

Add 'get-bucket-notification-cfg' subcmd for R2#5461

Merged
petebacondarwin merged 3 commits intocloudflare:mainfrom
mattdeboard:add-get-notif-config-command
Apr 2, 2024
Merged

Add 'get-bucket-notification-cfg' subcmd for R2#5461
petebacondarwin merged 3 commits intocloudflare:mainfrom
mattdeboard:add-get-notif-config-command

Conversation

@mattdeboard
Copy link
Copy Markdown
Contributor

What this PR solves / how to test

Fixes MQ-599.

Author has addressed the following

  • Tests
    • TODO (before merge)
    • Included
    • Not necessary because:
  • Changeset (Changeset guidelines)
    • TODO (before merge)
    • Included
    • Not necessary because:
  • Public documentation

@mattdeboard mattdeboard requested a review from a team as a code owner April 1, 2024 15:35
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 1, 2024

🦋 Changeset detected

Latest commit: 7e353e8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
wrangler Minor
@cloudflare/vitest-pool-workers Patch

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

@mattdeboard mattdeboard force-pushed the add-get-notif-config-command branch 2 times, most recently from aab752a to 96a76f2 Compare April 1, 2024 15:39
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 1, 2024

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/8524092101/npm-package-wrangler-5461

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/5461/npm-package-wrangler-5461

Or you can use npx with this latest build directly:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8524092101/npm-package-wrangler-5461 dev path/to/script.js
Additional artifacts:
npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8524092101/npm-package-create-cloudflare-5461 --no-auto-update
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8524092101/npm-package-cloudflare-kv-asset-handler-5461
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8524092101/npm-package-miniflare-5461
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8524092101/npm-package-cloudflare-pages-shared-5461
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8524092101/npm-package-cloudflare-vitest-pool-workers-5461

Note that these links will no longer work once the GitHub Actions artifact expires.


wrangler@3.43.0 includes the following runtime dependencies:

Package Constraint Resolved
miniflare workspace:* 3.20240329.0
workerd 1.20240329.0 1.20240329.0
workerd --version 1.20240329.0 2024-03-29

Please ensure constraints are pinned, and miniflare/workerd minor versions match.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.24%. Comparing base (38f7d54) to head (7e353e8).
Report is 3 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5461      +/-   ##
==========================================
+ Coverage   72.15%   72.24%   +0.09%     
==========================================
  Files         326      329       +3     
  Lines       16853    16976     +123     
  Branches     4311     4324      +13     
==========================================
+ Hits        12160    12265     +105     
- Misses       4693     4711      +18     
Files Coverage Δ
packages/wrangler/src/queues/client.ts 96.87% <100.00%> (+0.20%) ⬆️
packages/wrangler/src/r2/helpers.ts 92.70% <100.00%> (+1.62%) ⬆️
packages/wrangler/src/r2/index.ts 86.78% <100.00%> (-1.43%) ⬇️
packages/wrangler/src/r2/notification.ts 100.00% <100.00%> (ø)

... and 16 files with indirect coverage changes

@mattdeboard mattdeboard force-pushed the add-get-notif-config-command branch from 13357e6 to 1ebe20f Compare April 1, 2024 15:52
Comment thread packages/wrangler/src/r2/helpers.ts Outdated
Comment thread packages/wrangler/src/r2/helpers.ts Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In other commands you are sending metrics events, did you want to do that here too?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Can you link to an example of what you mean?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not a blocker for this PR, and it is up to you whether to you want to add metrics for these commands.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh, wow, nice, I did not know that was in there. That is actually a great idea but I'm going to make a separate work ticket to do it for all the notification handlers

@mattdeboard mattdeboard force-pushed the add-get-notif-config-command branch 5 times, most recently from 9f97580 to b294f61 Compare April 1, 2024 18:54
Comment thread .changeset/rare-toys-wave.md Outdated
@mattdeboard mattdeboard force-pushed the add-get-notif-config-command branch from 1e9bb62 to 7e353e8 Compare April 2, 2024 14:00
Copy link
Copy Markdown
Contributor

@petebacondarwin petebacondarwin left a comment

Choose a reason for hiding this comment

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

LGTM!

@petebacondarwin petebacondarwin merged commit f69e562 into cloudflare:main Apr 2, 2024
@workers-devprod workers-devprod mentioned this pull request Apr 2, 2024
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.

3 participants