Skip to content

Extend onSubscribeAddresses to include checkpoints #657

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

Merged
merged 1 commit into from
May 22, 2025

Conversation

samholmes
Copy link
Contributor

@samholmes samholmes commented May 15, 2025

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

@swansontec swansontec changed the title wqExtend onSubscribeAddresses to include checkpoints Extend onSubscribeAddresses to include checkpoints May 19, 2025
Copy link
Contributor

@swansontec swansontec left a comment

Choose a reason for hiding this comment

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

One change needed.

typeof param === 'string'
? {
address: param,
checkpoint: 'latest'
Copy link
Contributor

Choose a reason for hiding this comment

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

I would use undefined instead of 'latest'. That is the existing pattern in the change server - the checkpoint is optional, and skipping it means we either don't know or care, so check everything.

In either case, "latest" is the opposite of what we want. Even if we did a string, it should be "oldest", to indicate that we don't know the start point, so go back to the beginning.

But yeah, trying to do try { parseInt } is a little annoying, so let's keep the string contents 100% under plugin control. We don't want to insert our own strings here.

@samholmes samholmes enabled auto-merge May 22, 2025 15:29
@samholmes samholmes merged commit 3dbada6 into master May 22, 2025
2 checks passed
@samholmes samholmes deleted the sam/ecs-updates branch May 22, 2025 15:32
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.

2 participants