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): validate recipients in event request parsing #7758

Open
wants to merge 11 commits into
base: next
Choose a base branch
from

Conversation

BiswaViraj
Copy link
Member

@BiswaViraj BiswaViraj commented Feb 21, 2025

What changed? Why was the change needed?

  • Sanitize/trim whitespace on the IDs
  • Collect invalid IDs and log them in dry run mode
  • only use valid Ids to trigger when not in the dry run mode

Screenshots

Expand for optional sections

Related enterprise PR

Special notes for your reviewer

Copy link

linear bot commented Feb 21, 2025

@BiswaViraj BiswaViraj changed the title feat(api): validate recipients in event request parsing feat(api-service): validate recipients in event request parsing Feb 21, 2025
Copy link

netlify bot commented Feb 21, 2025

Deploy Preview for dev-web-novu ready!

Name Link
🔨 Latest commit b498190
🔍 Latest deploy log https://app.netlify.com/sites/dev-web-novu/deploys/67cacc8a74eca5000803749e
😎 Deploy Preview https://deploy-preview-7758.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 Feb 21, 2025

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

Name Link
🔨 Latest commit 5206e63
🔍 Latest deploy log https://app.netlify.com/sites/dashboard-v2-novu-staging/deploys/67cfc65a0ef0460008844527
😎 Deploy Preview https://deploy-preview-7758.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.

Copy link
Contributor

@SokratisVidros SokratisVidros left a comment

Choose a reason for hiding this comment

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

@BiswaViraj please refer to Linear for the updated requirements.

Copy link

LaunchDarkly flag references

🔍 1 flag added or modified

Name Key Aliases found Info
IS_SUBSCRIBER_ID_VALIDATION_DRY_RUN_ENABLED IS_SUBSCRIBER_ID_VALIDATION_DRY_RUN_ENABLED

Copy link

pkg-pr-new bot commented Feb 27, 2025

Open in Stackblitz

@novu/client

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

@novu/headless

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

@novu/node

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

@novu/notification-center

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

novu

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

@novu/providers

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

@novu/shared

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

commit: 5206e63

@BiswaViraj BiswaViraj force-pushed the nv-5432-fix-typeerror-related-to-subscriberidtrim-function branch from ef71502 to db95916 Compare February 28, 2025 08:08
@BiswaViraj BiswaViraj force-pushed the nv-5432-fix-typeerror-related-to-subscriberidtrim-function branch from ef45f5a to e9715e2 Compare March 10, 2025 13:30
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.

2 participants