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

feat(api-service): patch subscriber preferences v2 endpoint #7629

Merged
merged 22 commits into from
Jan 31, 2025

Conversation

ChmaraX
Copy link
Contributor

@ChmaraX ChmaraX commented Jan 30, 2025

What changed? Why was the change needed?

TODO:

  • Speakeasy annotations - replace with legacy endpoints
  • Use SDK client in tests

Copy link

linear bot commented Jan 30, 2025

@@ -51,61 +46,44 @@ describe('Get Subscriber Preferences - /subscribers/:subscriberId/preferences (G
expect(response.statusCode).to.equal(404);
});

it('should handle subscriber with modified workflow preferences', async () => {
Copy link
Contributor Author

@ChmaraX ChmaraX Jan 30, 2025

Choose a reason for hiding this comment

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

I removed GET&PATCH overlapping tests from GET endpoint and replaced them with tests testing unique GET behaviour

@ChmaraX ChmaraX marked this pull request as ready for review January 30, 2025 18:04
Copy link

pkg-pr-new bot commented Jan 30, 2025

Open in Stackblitz

@novu/client

npm i https://pkg.pr.new/novuhq/novu/@novu/client@7629

@novu/node

npm i https://pkg.pr.new/novuhq/novu/@novu/node@7629

@novu/headless

npm i https://pkg.pr.new/novuhq/novu/@novu/headless@7629

@novu/notification-center

npm i https://pkg.pr.new/novuhq/novu/@novu/notification-center@7629

novu

npm i https://pkg.pr.new/novuhq/novu@7629

@novu/providers

npm i https://pkg.pr.new/novuhq/novu/@novu/providers@7629

@novu/shared

npm i https://pkg.pr.new/novuhq/novu/@novu/shared@7629

commit: 8106df7

channels: PatchPreferenceChannelsDto;

@ApiProperty({
description: 'If provided, update workflow specific preferences, otherwise update global preferences',
Copy link
Contributor

Choose a reason for hiding this comment

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

👏

Base automatically changed from nv-5278-api-get-preferences-endpoint to next January 31, 2025 14:55
Copy link

netlify bot commented Jan 31, 2025

Deploy Preview for dev-web-novu ready!

Name Link
🔨 Latest commit 993fa2f
🔍 Latest deploy log https://app.netlify.com/sites/dev-web-novu/deploys/679ce8665c40cf0008d10512
😎 Deploy Preview https://deploy-preview-7629.dashboard.novu-staging.co
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 31, 2025

Deploy Preview for dashboard-v2-novu-staging ready!

Name Link
🔨 Latest commit 993fa2f
🔍 Latest deploy log https://app.netlify.com/sites/dashboard-v2-novu-staging/deploys/679ce8660c7cb9000870636b
😎 Deploy Preview https://deploy-preview-7629.dashboard-v2.novu-staging.co
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ChmaraX ChmaraX merged commit afd325e into next Jan 31, 2025
32 of 33 checks passed
@ChmaraX ChmaraX deleted the nv-5279-api-patchput-preferences-endpoint branch January 31, 2025 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants