Skip to content

fix(js client): increase scope of retries#384

Merged
GuillaumeDecMeetsMore merged 3 commits intomasterfrom
guillaume/fix/js-client-increase-scope-of-retries
Aug 27, 2025
Merged

fix(js client): increase scope of retries#384
GuillaumeDecMeetsMore merged 3 commits intomasterfrom
guillaume/fix/js-client-increase-scope-of-retries

Conversation

@GuillaumeDecMeetsMore
Copy link
Collaborator

@GuillaumeDecMeetsMore GuillaumeDecMeetsMore commented Aug 27, 2025

Changed

  • Increase scope of HTTP requests that can be retried - include POST endpoints that are used for searching events

@GuillaumeDecMeetsMore GuillaumeDecMeetsMore self-assigned this Aug 27, 2025
@GuillaumeDecMeetsMore GuillaumeDecMeetsMore marked this pull request as ready for review August 27, 2025 08:10
}

// List of endpoints that can be retried without side-effects
const ENDPOINTS_THAT_CAN_BE_RETRIED: string[] = [

Choose a reason for hiding this comment

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

I wonder would it be better to define this as a decorator on the endpoints, or similar? So that the configuration of if it can be retried is next to the endpoint itself.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good idea, I've adapted 👍

Ideally I wanted to avoid duplicating the URL, but I think it would mean proxying the POST requests themselves to populate the set, or to have a factory for creating the methods that are idempotents. Both cases seemed too complex to me compared to just using constants

@GuillaumeDecMeetsMore GuillaumeDecMeetsMore merged commit 16b8c0a into master Aug 27, 2025
4 checks passed
@GuillaumeDecMeetsMore GuillaumeDecMeetsMore deleted the guillaume/fix/js-client-increase-scope-of-retries branch August 27, 2025 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants