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

Switch to Fetch based requests, get rid of %% based url templates #2396

Merged
merged 3 commits into from
Oct 30, 2023

Conversation

anoek
Copy link
Member

@anoek anoek commented Oct 18, 2023

This patch overhauls our requests utility functions in two ways:

  1. We've moved away from using jQuery's XHRHttpRequest wrapper to using the now standard fetch API.

  2. We've moved away from using the %% as an ID place holder in our URLs. The original purpose of the change to %% was to enable typing of our http requests (the change predated typescript's template literal types that would have obviated that change), however there was never any follow-through on that and now with the advancements in typescript we can achieve typing without the need to have the %% placeholders anyways, so this PR makes the change back to the clearer less error prone string template style of specifying URLs.

@github-actions
Copy link

github-actions bot commented Oct 18, 2023

Uffizzi Ephemeral Environment deployment-38856

☁️ https://app.uffizzi.com/github.com/online-go/online-go+com/pull/2396

📄 View Application Logs etc.

What is Uffizzi? Learn more!

@anoek anoek force-pushed the fetch_based_requests branch from 9285dff to 5c0d92d Compare October 19, 2023 11:57
@anoek anoek force-pushed the fetch_based_requests branch from 97154f5 to dc7a357 Compare October 24, 2023 22:27
@anoek anoek merged commit 82226d2 into devel Oct 30, 2023
4 checks passed
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.

1 participant