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: cron and pinpin rewire #531

Merged
merged 1 commit into from
Oct 22, 2021
Merged

Conversation

vasco-santos
Copy link
Contributor

@vasco-santos vasco-santos commented Oct 12, 2021

This PR rewires cron jobs and also pinpin because why not!? Needed functions were added to the DB Client to ease the transition between Fauna and Postgres with the env variable like before.

This PR includes:

  • cron jobs
    • added dag cargo views refresh cron
    • updated pin job to use DB client (transparent on wether using Fauna or Postgres underneath)
  • pinpin
    • updated to use DB client

The DB now includes tests that "simulate" the same flows that the cron jobs do. However, we should also create a test environment for these mocking DB to have better testing guarantees. Let me know if you agree and I will create an issue to track it.

Needs:

Closes #520

@vasco-santos vasco-santos changed the title chore: cron rewirec chore: cron rewire Oct 12, 2021
@vasco-santos vasco-santos force-pushed the chore/cron-rewire branch 10 times, most recently from e57ae8f to 36ac294 Compare October 14, 2021 19:13
@vasco-santos vasco-santos changed the title chore: cron rewire chore: cron and pinpin rewire Oct 14, 2021
@vasco-santos vasco-santos force-pushed the chore/cron-rewire branch 4 times, most recently from 7773461 to 2ed9432 Compare October 18, 2021 09:14
@vasco-santos
Copy link
Contributor Author

Updated DB:

image

@vasco-santos vasco-santos force-pushed the chore/cron-rewire branch 2 times, most recently from 907a43f to 74af489 Compare October 19, 2021 14:38
@vasco-santos vasco-santos marked this pull request as ready for review October 19, 2021 14:42
@vasco-santos vasco-santos force-pushed the chore/cron-rewire branch 2 times, most recently from 102cf52 to bec04a2 Compare October 20, 2021 14:00
Copy link
Contributor

@hugomrdias hugomrdias left a comment

Choose a reason for hiding this comment

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

LGTM but im missing bits of context from the overall structure so i may have missed things in the review.

@vasco-santos vasco-santos merged commit 177414c into chore/db-migration Oct 22, 2021
@vasco-santos vasco-santos deleted the chore/cron-rewire branch October 22, 2021 12:54
vasco-santos added a commit that referenced this pull request Oct 22, 2021
vasco-santos added a commit that referenced this pull request Oct 22, 2021
vasco-santos added a commit that referenced this pull request Oct 22, 2021
@vasco-santos vasco-santos mentioned this pull request Oct 22, 2021
vasco-santos added a commit that referenced this pull request Oct 22, 2021
vasco-santos added a commit that referenced this pull request Oct 22, 2021
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.

3 participants