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): add create subscriber functionality with validation #7658

Merged
merged 11 commits into from
Feb 6, 2025

Conversation

BiswaViraj
Copy link
Member

What changed? Why was the change needed?

  • create subscriber endpoint

  • E2E will be in a different PR

Screenshots

Expand for optional sections

Related enterprise PR

Special notes for your reviewer

Copy link

linear bot commented Feb 5, 2025

@BiswaViraj BiswaViraj changed the title feat(subscribers): add create subscriber functionality with validation feat(api-service): add create subscriber functionality with validation Feb 5, 2025
@BiswaViraj BiswaViraj force-pushed the nv-5181-subscriber-creation-via-ui branch from 8259103 to b41bf7b Compare February 5, 2025 09:12
@@ -0,0 +1,91 @@
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
Copy link
Contributor

Choose a reason for hiding this comment

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

👏 Nice and tidy.

@@ -27,7 +27,7 @@ describe('Update Subscribers global preferences - /subscribers/:subscriberId/pre
};

try {
const firstResponse = await novuClient.subscribers.preferences.updateGlobal(
Copy link
Contributor

Choose a reason for hiding this comment

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

question: why do we have different data structure patterns?
above we have listLegacy and retrieveByLevelLegacy with suffix legacy but here we have nested object of legacy.

Copy link
Contributor

Choose a reason for hiding this comment

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

@BiswaViraj ☝️

Copy link
Member Author

Choose a reason for hiding this comment

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

I am not sure about that, it was already present before, after rebase the tests were failing so i just updated the e2e tests to use the available methods

@BiswaViraj BiswaViraj merged commit e511901 into locale-dropdown Feb 6, 2025
24 checks passed
@BiswaViraj BiswaViraj deleted the nv-5181-subscriber-creation-via-ui branch February 6, 2025 09: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.

4 participants