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: port webhooks api to new switch pattern #1404

Closed
wants to merge 7 commits into from

Conversation

rishtigupta
Copy link
Contributor

@rishtigupta rishtigupta commented Aug 12, 2024

Description:

I had to comment out the example code for webhooks since the CI kept failing for it.
Will publish this sdk version and update the tests accordingly in a follow-up pr.

Issue

Closes https://github.com/momentohq/dev-eco-issue-tracker/issues/956

@rishtigupta rishtigupta marked this pull request as draft August 12, 2024 21:25
@rishtigupta rishtigupta force-pushed the feat/webhook-apis-new-pattern branch from 99f5f04 to d864ff0 Compare August 12, 2024 21:28
@rishtigupta rishtigupta marked this pull request as ready for review August 12, 2024 21:28
@rishtigupta rishtigupta requested review from cprice404 and a team and removed request for a team and cprice404 August 12, 2024 21:29
@rishtigupta rishtigupta marked this pull request as draft August 12, 2024 21:31
@rishtigupta rishtigupta force-pushed the feat/webhook-apis-new-pattern branch from fdf32ef to 526c381 Compare August 12, 2024 22:09
@rishtigupta rishtigupta force-pushed the feat/webhook-apis-new-pattern branch from 526c381 to fccafce Compare August 12, 2024 22:18
@rishtigupta rishtigupta force-pushed the feat/webhook-apis-new-pattern branch from 679ea20 to 3465cad Compare August 12, 2024 23:00
);
}
}
// async function example_API_ListWebhooks(topicClient: TopicClient, cacheName: string) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had to comment out the example code for webhooks since the CI kept failing for it.
Will publish this sdk version and update the tests accordingly in a follow-up pr.

Copy link
Contributor

Choose a reason for hiding this comment

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

i'm confused as to why these would fail, the package.json in the examples dir should be pinned to a released version of the SDK. Also it's important for the sake of backward compatibility that this syntax still work, so I think we will need to get to the bottom of it before we merge this.

@rishtigupta rishtigupta marked this pull request as ready for review August 12, 2024 23:11
@@ -122,6 +122,7 @@
"version": "0.9.5",
Copy link
Contributor

Choose a reason for hiding this comment

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

why did this file change? just curious

Copy link
Contributor Author

Choose a reason for hiding this comment

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

While I was experimenting with the ci build failures, I reinstalled my node modules

Copy link
Contributor

@cprice404 cprice404 left a comment

Choose a reason for hiding this comment

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

code looks good at a glance. just a few comments about keeping some test coverage for the old pattern, and getting to the bottom of whatever is going on with the examples

@@ -98,16 +97,17 @@ export function runWebhookTests(
webhook.id.cacheName,
webhook.id.webhookName
);
if (resp instanceof GetWebhookSecret.Success) {
Copy link
Contributor

Choose a reason for hiding this comment

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

it would be good to keep at least one test around that uses the old syntax.

@rishtigupta rishtigupta deleted the feat/webhook-apis-new-pattern branch August 14, 2024 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants