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

fix: Webhooks trigger render error #215

Merged
merged 1 commit into from
Mar 12, 2024
Merged

Conversation

jonas-martinez
Copy link
Collaborator

@jonas-martinez jonas-martinez commented Feb 22, 2024

About this PR

Closes #214

The problem was coming from the fact that we did not have a default View to render our controller results. I simply added the default view BaseView from the lenra_common lib and now it properly works. No error is shown in the console when triggering a webhook.

I've also added a default error view "FallbackController" just in case.

Technical highlight/advice

How to test my changes

Checklist

  • I didn't over-scope my PR
  • My PR title matches the commit convention
  • I did not include breaking changes
  • I made my own code-review before requesting one

I included unit tests that cover my changes

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

I added/updated the documentation about my changes

  • 📜 README.md
  • 📕 docs/*.md
  • 📓 docs.lenra.io
  • 🙅 no documentation needed

@jonas-martinez jonas-martinez self-assigned this Feb 22, 2024
@taorepoara
Copy link
Member

You should add a unit test to make sure that the problem won't come back

@taorepoara taorepoara merged commit 45d2168 into main Mar 12, 2024
34 checks passed
@taorepoara taorepoara deleted the fix-webhook-trigger-render branch March 12, 2024 12:50
@shiipou
Copy link
Contributor

shiipou commented Mar 12, 2024

🎉 This PR is included in version 1.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@taorepoara taorepoara restored the fix-webhook-trigger-render branch September 16, 2024 12:28
taorepoara added a commit that referenced this pull request Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Webhook trigger cannot send response
3 participants