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

Webhook simulation #273

Merged
merged 5 commits into from
Sep 24, 2021
Merged

Webhook simulation #273

merged 5 commits into from
Sep 24, 2021

Conversation

AlexP11223
Copy link
Contributor

@AlexP11223 AlexP11223 commented Sep 23, 2021

Adds #260

At first I was thinking to simply save the time of the last webhook and display it here, but then I figured out that we can detect the simulated webhook by the ID we get after the API request. So it is saved into options and checked in the webhook listener. This way we get a bit better UX and no confusing logs because of failed webhook verifications (simulated webhook cannot be verified).

The status is checked every 2 sec via ajax, after 30 sec it displays an error but still tries for the next 30 sec.

Peek.2021-09-23.10-32.mp4

If failed:
image

@AlexP11223 AlexP11223 requested a review from Dinamiko September 23, 2021 07:44
Copy link
Contributor

@Dinamiko Dinamiko left a comment

Choose a reason for hiding this comment

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

Awesome work!

@Dinamiko Dinamiko merged commit 7aac842 into trunk Sep 24, 2021
@Dinamiko Dinamiko deleted the webhook-simulation branch September 24, 2021 07:28
@Dinamiko Dinamiko mentioned this pull request Sep 24, 2021
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