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

[DO NOT MERGE] refactor: avoid duplicate tweet by re-structure and modularize the reminder options #106

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

Conversation

wildan3105
Copy link
Owner

@wildan3105 wildan3105 commented May 29, 2024

Resolves #62 and #54

Checklist

  • Unit test updated
  • Manual test locally

Screenshot of the test

* refactor(job): store each match with 2 different reminder_times

* refactor(match-fetcher): add reminder_time in redis fixtures and double up the match stored

* fix: format

* temp: add branch to target against for CI test
* chore: add hours_to_match inside redis

* fix: npm format
…105)

* refactor(match-reader): fetch latest redis match and immediately remove it from data once published

* refactor(match-reader): use match time and update test

* run npm format

* fix: better error handling
* chore: update prettier format

* update package.json

* update serp API get implementation in http get test

* chore: add optional query of club and location when fetching serp API

* refactor(job): fetch using env variables and add guard for converting date string to date

* test: adjust test for error handling

* refactor: change date calculation
@wildan3105 wildan3105 temporarily deployed to cfc-schedules-tweet May 30, 2024 08:10 Inactive
@wildan3105 wildan3105 marked this pull request as ready for review May 30, 2024 08:17
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.

Make consumer to be idempotent
1 participant