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

fix: deleting listeners from event stream pagination #122

Merged
merged 3 commits into from
Jun 6, 2024

Conversation

EnriqueL8
Copy link
Contributor

When deleting an event stream that has more listeners that the default pagination limit, it was failing due to incorrect logic of deleting the listener before using it as "offset" to query the next set of listeners to delete.

This PR fixes this by querying the next set before deleting the last one.

Signed-off-by: Enrique Lacal <enrique.lacal@kaleido.io>
@EnriqueL8 EnriqueL8 requested a review from a team as a code owner June 6, 2024 14:24
@EnriqueL8
Copy link
Contributor Author

Tested locally with a custom build of evmconnect in FF CLI

Copy link
Contributor

@peterbroadhurst peterbroadhurst left a comment

Choose a reason for hiding this comment

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

We shouldn't need to duplicate code to fix the bug here

Signed-off-by: Enrique Lacal <enrique.lacal@kaleido.io>
@EnriqueL8
Copy link
Contributor Author

Thanks for the pointer @peterbroadhurst - radically simpler now

Signed-off-by: Enrique Lacal <enrique.lacal@kaleido.io>
Copy link
Contributor

@peterbroadhurst peterbroadhurst left a comment

Choose a reason for hiding this comment

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

Thanks for the extra go-round to simplify @EnriqueL8

@peterbroadhurst peterbroadhurst merged commit 9ada795 into main Jun 6, 2024
2 checks passed
@peterbroadhurst peterbroadhurst deleted the fix_delete_listeners branch June 6, 2024 17:26
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