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: implemented event triggers #103

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Villarley
Copy link

@Villarley Villarley commented Mar 3, 2025

❗ Pull Request Information

This PR implements Hasura event triggers for escrow_transactions to monitor changes in status and refund_status. It ensures proper communication with external APIs when the transaction state transitions.

🌀 Summary of Changes

  • Added Hasura event trigger escrow_status_update for status changes

  • Added Hasura event trigger escrow_refund_status_update for refund_status changes

  • Configured webhooks in storage-service to handle these triggers

  • Implemented logic to filter events and prevent unnecessary API calls

  • Updated Hasura metadata to include filtering for meaningful status transitions

🛠 Testing

Evidence Before Solution

Video: Before Fix - Loom Video

Evidence After Solution

Video: After Fix - Loom Video

🐂 Related Issue

This pull request will close #97 upon merging.

Make sure to follow the Git Guidelines for Atomic Commits and read Contributing Guide

The Pull request needs to have the format mentioned below in the Git Guideline

Contributing Guide

Git Guidelines

🎉 Thank you for reviewing this PR! 🎉

@sotoJ24 sotoJ24 self-requested a review March 3, 2025 05:54
@rvalenciano
Copy link
Contributor

rvalenciano commented Mar 3, 2025

Please fill the PR template so we can properly review this @Villarley

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.

Implement UPDATE Event Triggers for escrow_transactions Status Changes
2 participants