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

Use JobRunner to load consent list #493

Merged
merged 7 commits into from
Nov 15, 2023
Merged

Use JobRunner to load consent list #493

merged 7 commits into from
Nov 15, 2023

Conversation

rygine
Copy link
Collaborator

@rygine rygine commented Nov 15, 2023

in this PR:

  • upgraded @xmtp/proto to support new JobRunner type
  • added pppp type to JobRunner
  • added resetLastRunTime method to JobRunner (see note below)
  • included time offset logic in JobRunner with option to disable it
  • removed time offset logic from conversations.list() as it's now included with the JobRunner
  • added reset method to ConsentList for clearing the current list
  • removed logic to auto reset the consent list when loading it when startTime was undefined
  • added JobRunner for loading the consent list
  • added return value (entries) when loading the consent list
  • renamed lastSyncedAt => lastConsentListEntryTimestamp

resetLastRunTime

the Persistence interface doesn't support removeItem as it's not supported in every persistence layer and would require additional work to support in others. also, the setItem method doesn't accept nil values. in order to support a "reset" of the last run time, this new method simply sets it to the epoch date.

@rygine rygine requested a review from a team November 15, 2023 19:55
Copy link

cloudflare-workers-and-pages bot commented Nov 15, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 92e042e
Status: ✅  Deploy successful!
Preview URL: https://2d344c7c.xmtp-js.pages.dev
Branch Preview URL: https://rygine-pppp-update3.xmtp-js.pages.dev

View logs

@rygine rygine merged commit bd3b725 into beta Nov 15, 2023
7 checks passed
@rygine rygine deleted the rygine/pppp-update3 branch November 15, 2023 20:36
Copy link
Contributor

🎉 This PR is included in version 11.3.0-beta.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link
Contributor

github-actions bot commented Jan 2, 2024

🎉 This PR is included in version 11.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants