Skip to content
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

fix(buildParams): use brackets for arrays #329

Merged
merged 3 commits into from
Aug 2, 2023

Conversation

wweaver
Copy link
Collaborator

@wweaver wweaver commented Aug 2, 2023

What is the motivation for this pull request?

Fix a bug where passing multiple users to the user subscription lookup endpoint requires [] around the keys

https://www.braze.com/docs/api/endpoints/subscription_groups/get_list_user_subscription_groups/?tab=multiple%20users

image

This will replace #328 if we like this style better. I do, but it's only if Braze is consistent with this.

What is the current behavior?

/subscription/user/status?external_id=1&external_id=2

What is the new behavior?

/subscription/user/status?external_id[]=1&external_id=2

Checklist:

@codecov
Copy link

codecov bot commented Aug 2, 2023

Codecov Report

Merging #329 (79406c4) into master (5c47b70) will not change coverage.
Report is 2 commits behind head on master.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #329   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           93        93           
  Lines          471       473    +2     
  Branches        19        20    +1     
=========================================
+ Hits           471       473    +2     
Files Changed Coverage Δ
src/common/request/params.ts 100.00% <100.00%> (ø)
src/subscription/user/status.ts 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Aug 2, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 79406c4
Status: ✅  Deploy successful!
Preview URL: https://07f234da.braze-api.pages.dev
Branch Preview URL: https://ww-global-params-array.braze-api.pages.dev

View logs

@remarkablemark remarkablemark added the bug Something isn't working label Aug 2, 2023
@remarkablemark remarkablemark merged commit 10ba9d1 into master Aug 2, 2023
9 checks passed
@remarkablemark remarkablemark deleted the ww/global-params-array branch August 2, 2023 20:17
@remarkablemark
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants