-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Refactor: Create libs/ApiUtils #15178
Commits on Mar 9, 2023
-
CONFIG - rename API ROOT urls for clarity
This makes it clear that we don't have a `URL_API_ROOT` that works both on staging and prod
Configuration menu - View commit details
-
Copy full SHA for 743ae89 - Browse repository at this point
Copy the full SHA 743ae89View commit details -
Configuration menu - View commit details
-
Copy full SHA for db491dd - Browse repository at this point
Copy the full SHA db491ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for a851403 - Browse repository at this point
Copy the full SHA a851403View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c60df7 - Browse repository at this point
Copy the full SHA 4c60df7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92bb599 - Browse repository at this point
Copy the full SHA 92bb599View commit details -
Update
TestToolMenu
to useApiUtils
Default the initial toggle value to `ApiUtils.isUsingStagingApi()`
Configuration menu - View commit details
-
Copy full SHA for 8cf601b - Browse repository at this point
Copy the full SHA 8cf601bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c64b57 - Browse repository at this point
Copy the full SHA 9c64b57View commit details -
Rename CONFIG.PRODUCTION_API_ROOT to PRIMARY_API_ROOT
Changed the name to PRIMARY to better represent the value - It's the primary and preferred API root on DEV and PROD - We can toggle between PRIMARY and STAGING on DEV or STAGING
Configuration menu - View commit details
-
Copy full SHA for 6df8c6f - Browse repository at this point
Copy the full SHA 6df8c6fView commit details -
Apply suggestions from code review
Co-authored-by: Marc Glasser <marc.aaron.glasser@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4708122 - Browse repository at this point
Copy the full SHA 4708122View commit details -
Configuration menu - View commit details
-
Copy full SHA for 595bb23 - Browse repository at this point
Copy the full SHA 595bb23View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d88ebf - Browse repository at this point
Copy the full SHA 6d88ebfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f85692 - Browse repository at this point
Copy the full SHA 8f85692View commit details -
Configuration menu - View commit details
-
Copy full SHA for b75f313 - Browse repository at this point
Copy the full SHA b75f313View commit details -
Configuration menu - View commit details
-
Copy full SHA for ebdb915 - Browse repository at this point
Copy the full SHA ebdb915View commit details -
Rename CONFIG.PRIMARY_API_ROOT to DEFAULT
Changed the name to DEFAULT to better represent the value - It's the default and preferred API root on DEV and PROD - We can toggle between DEFAULT and STAGING on DEV or STAGING
Configuration menu - View commit details
-
Copy full SHA for 0269102 - Browse repository at this point
Copy the full SHA 0269102View commit details -
ApiUtils - Apply suggestions from code review
Co-authored-by: Vit Horacek <36083550+mountiny@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for ca66fba - Browse repository at this point
Copy the full SHA ca66fbaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 39fd3c6 - Browse repository at this point
Copy the full SHA 39fd3c6View commit details
Commits on Mar 10, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7b49753 - Browse repository at this point
Copy the full SHA 7b49753View commit details -
ApiUtils - Move
Onyx.connect
insidegetEnvironment
promiseOnyx callback should always run after we have ENV_NAME from `getEnvironment`
Configuration menu - View commit details
-
Copy full SHA for 9be14bc - Browse repository at this point
Copy the full SHA 9be14bcView commit details -
Update NetworkConnection - use the updated CONFIG value - DEFAULT_API…
…_ROOT This was a leftover usage of the old config name that I forgot to update Also updated a comment using the old name - URL_API_ROOT
Configuration menu - View commit details
-
Copy full SHA for e3d84f9 - Browse repository at this point
Copy the full SHA e3d84f9View commit details
Commits on Mar 13, 2023
-
ApiUtils - remove
canUseStagingServer
Move the logic inside the Onyx callback
Configuration menu - View commit details
-
Copy full SHA for 3be8792 - Browse repository at this point
Copy the full SHA 3be8792View commit details -
Docs: Update src/libs/ApiUtils.js
Co-authored-by: Abdelhafidh Belalia <16493223+s77rt@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for c197b41 - Browse repository at this point
Copy the full SHA c197b41View commit details
Commits on Mar 16, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d641fa8 - Browse repository at this point
Copy the full SHA d641fa8View commit details