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

chore: extract observer loop and add tests #81

Merged
merged 11 commits into from
Feb 6, 2025

Conversation

NikolasHaimerl
Copy link
Contributor

@NikolasHaimerl NikolasHaimerl commented Feb 4, 2025

This PR proposes the following changes:

  1. Extract the functionality of deal observer loop into its own function to be called by the loop
  2. Test the extracted functionality

Closes #61 .
See implementation plan.

Nikolas Haimerl added 2 commits February 4, 2025 15:04
@NikolasHaimerl NikolasHaimerl marked this pull request as ready for review February 4, 2025 15:08
@juliangruber

This comment was marked as resolved.

backend/lib/deal-observer.js Outdated Show resolved Hide resolved
backend/lib/deal-observer.js Outdated Show resolved Hide resolved
@juliangruber
Copy link
Member

@NikolasHaimerl FYI:

Screenshot 2025-02-06 at 10 24 13 Screenshot 2025-02-06 at 10 24 20

Here I picked the last option, "Resolved". This helps keep the issue clean

@juliangruber juliangruber changed the title chore: extract obxerver loop and add tests chore: extract observer loop and add tests Feb 6, 2025
backend/lib/deal-observer.js Show resolved Hide resolved
backend/test/deal-observer.test.js Outdated Show resolved Hide resolved
backend/test/deal-observer.test.js Outdated Show resolved Hide resolved
backend/test/deal-observer.test.js Outdated Show resolved Hide resolved
Copy link
Member

@juliangruber juliangruber left a comment

Choose a reason for hiding this comment

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

👏

@NikolasHaimerl NikolasHaimerl merged commit 85b7cb3 into main Feb 6, 2025
8 checks passed
@NikolasHaimerl NikolasHaimerl deleted the nhaimerl-test-deal-observer-main-loop branch February 6, 2025 13:58
Copy link

sentry-io bot commented Feb 6, 2025

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ Error: Failed to make RPC request Filecoin.ChainHead rpcRequest(service) View Issue
  • ‼️ Error: Failed to make RPC request Filecoin.ChainHead rpcRequest(service) View Issue
  • ‼️ Error: Connection terminated unexpectedly loadDeals(deal-observer) View Issue
  • ‼️ Error: Error inserting deals storeActiveDeals(deal-observer) View Issue
  • ‼️ Error: Error inserting deals storeActiveDeals(deal-observer) View Issue

Did you find this useful? React with a 👍 or 👎

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.

Test Main Loop Function
3 participants