Skip to content

feat(root): create keyless environment #8276

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

Merged
merged 44 commits into from
May 22, 2025
Merged

Conversation

djabarovgeorge
Copy link
Contributor

What changed? Why was the change needed?

EE-PR

Screenshots

Expand for optional sections

Related enterprise PR

Special notes for your reviewer

Copy link

netlify bot commented May 11, 2025

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

Name Link
🔨 Latest commit
🔍 Latest deploy log https://app.netlify.com/projects/dashboard-v2-novu-staging/deploys/682f30c715916990957a1530
😎 Deploy Preview https://deploy-preview-8276.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 project configuration.

Copy link

pkg-pr-new bot commented May 12, 2025

Open in StackBlitz

@novu/js

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

@novu/nextjs

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

novu

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

@novu/react

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

@novu/react-native

npm i https://pkg.pr.new/novuhq/novu/@novu/react-native@8276

@novu/providers

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

@novu/shared

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

commit: 88df422

applicationIdentifier: body.applicationIdentifier,
subscriberHash: body.subscriberHash,
origin,
})
);
}

private buildSubscriber(body: SubscriberSessionRequestDto): SubscriberDto {
if (!body.applicationIdentifier || body.applicationIdentifier.startsWith('pk_keyless_')) {
return { subscriberId: 'keyless-subscriber-id' };
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder, why not let the Inbox generate some random one and persist it? So we don't need to modify this API part of it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good question. I was not sure who should be responsible for the subscriber generation. to me, it felt like we would want as little logic in the Inbox as possible, so I moved this logic to the API.
let me know what you think about it.

@djabarovgeorge djabarovgeorge marked this pull request as ready for review May 15, 2025 20:49
…remove unused decorators, and update avatar URLs
…bscriber logic, and improve keyless identifier management
@djabarovgeorge djabarovgeorge merged commit 2dc1b1e into next May 22, 2025
27 of 31 checks passed
@djabarovgeorge djabarovgeorge deleted the create-keyless-environment branch May 22, 2025 14:15
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