Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

WIP: webhook demo#508

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ShMcK merged 5 commits intomasterfromwebhook
Oct 30, 2021
Merged

WIP: webhook demo#508

ShMcK merged 5 commits intomasterfromwebhook
Oct 30, 2021

Conversation

ShMcK
Copy link
Member

Webhook API for coderoad.

Signed-off-by: shmckshawn.j.mckay@gmail.com

Signed-off-by: shmck <shawn.j.mckay@gmail.com>
@ShMcKShMcK mentioned this pull requestAug 29, 2021
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
Copy link
Contributor

@moT01moT01 left a comment
edited
Loading

Choose a reason for hiding this comment

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

This seems to be working on my testing - nice job@ShMcK 👍

Left a few suggestions.

Edit: Wondering what happens if the request doesn't go through. At the moment, I only plan on having an event for completing an entire tutorial, which would send one request at the end. If it doesn't go through, users would have to do the whole tutorial again. It's unlikely the request won't go through, but maybe some way to verify that the request made it, and if not, a way to resend. I don't think that's needed for now, just thinking out loud.

Comment on lines +95 to +101
type WebhookEevntTutorialComplete = { tutorialId: string; version: string }

export const onTutorialComplete = (event: WebhookEevntTutorialComplete): void => {
if (WEBHOOK_EVENTS.tutorial_complete) {
callWebhookEndpoint<WebhookEevntTutorialComplete>(event)
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
typeWebhookEevntTutorialComplete={tutorialId:string;version:string}
exportconstonTutorialComplete=(event:WebhookEevntTutorialComplete):void=>{
if(WEBHOOK_EVENTS.tutorial_complete){
callWebhookEndpoint<WebhookEevntTutorialComplete>(event)
}
}
typeWebhookEventTutorialComplete={tutorialId:string;version?:string}
exportconstonTutorialComplete=(event:WebhookEventTutorialComplete):void=>{
if(WEBHOOK_EVENTS.tutorial_complete){
callWebhookEndpoint<WebhookEventTutorialComplete>(event)
}
}

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Sounds good, I'll merge for now with the note that it may require more of a guarantee.

Copy link
Contributor

Choose a reason for hiding this comment

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

Pretty sure I was just having issues running the extension without the?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

The published version has theversion?. I added it in a separate PR.

@moT01 can you post an issue if you have any more details?

}
}

type WebhookEventLevelComplete = { tutorialId: string; version: string; levelId: string }
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
typeWebhookEventLevelComplete={tutorialId:string;version:string;levelId:string}
typeWebhookEventLevelComplete={tutorialId:string;version?:string;levelId:string}

}
}

type WebhookEventStepComplete = { tutorialId: string; version: string; levelId: string; stepId: string }
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
typeWebhookEventStepComplete={tutorialId:string;version:string;levelId:string;stepId:string}
typeWebhookEventStepComplete={tutorialId:string;version?:string;levelId:string;stepId:string}

@ShMcKShMcK marked this pull request as ready for reviewOctober 30, 2021 21:54
@ShMcKShMcK merged commit268cd26 intomasterOct 30, 2021
@ShMcKShMcK deleted the webhook branchOctober 30, 2021 21:54
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@moT01moT01moT01 left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ShMcK@moT01

[8]ページ先頭

©2009-2025 Movatter.jp