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

refactor: Refactor solver store helpers #449

Merged
merged 3 commits into from
Nov 25, 2024

Conversation

bgins
Copy link
Contributor

@bgins bgins commented Nov 22, 2024

Summary

This pull request makes the following changes:

  • Move get match ID helper to parent module for reuse
  • Move log writer creator functionality into a helper function
  • Rename pkg/solver/store/types.go to pkg/solver/store/store.go

The changes in this pull request are preparatory work in support of #445.

Task/Issue reference

Implements: #445

Test plan

Start the stack. Run a job. Run the integration tests.

To test the log writers, tail /var/tmp/lilypad_deals.jsonl and watch for a new deal entry when running a job.

Related issues or PRs (optional)

Epic: https://github.com/Lilypad-Tech/internal/issues/340

@bgins bgins requested a review from a team as a code owner November 22, 2024 19:17
@bgins bgins force-pushed the bgins/refactor-solver-store-helpers branch from 7742ae6 to 888df46 Compare November 22, 2024 19:19
@bgins
Copy link
Contributor Author

bgins commented Nov 22, 2024

@cla-bot check

Copy link
Collaborator

@walkah walkah left a comment

Choose a reason for hiding this comment

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

LGTM!

@bgins bgins merged commit f909cfc into main Nov 25, 2024
3 checks passed
@bgins bgins deleted the bgins/refactor-solver-store-helpers branch November 25, 2024 17:14
walkah pushed a commit that referenced this pull request Dec 10, 2024
* refactor: Rename types.go to store.go

* refactor: Move GetMatchID to parent for reuse

We will also want this helper function in the database implementation.

* refactor: Move log writer creation to helper function
@bgins bgins self-assigned this Dec 15, 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.

2 participants