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

🐝 Standardise trailing slashes of URL-like envs #4575

Merged
merged 3 commits into from
Feb 21, 2025
Merged

Conversation

Marigold
Copy link
Contributor

@Marigold Marigold commented Feb 19, 2025

Fixes https://github.com/owid/ops/issues/267, #4480, owid/etl#3889 and https://github.com/owid/ops/issues/266 (the lines of code to fixed issues ratio is unbelievable!).

Remove trailing slash from DATA_API_URL and ETL_WIZARD_URL to be consistent with the rest of variables and ETL envs. Replace string concat by urljoin to make sure it still works with old envs.

TODO after merging

  • (Optional) Update envs in ops for production and staging servers

@owidbot
Copy link
Contributor

owidbot commented Feb 19, 2025

Quick links (staging server):

Site Dev Site Preview Admin Wizard Docs

Login: ssh owid@staging-site-validate-envs

SVG tester:

Number of differences (default views): 0 ✅
Number of differences (all views): 0 ✅

Edited: 2025-02-19 09:15:20 UTC
Execution time: 1.16 seconds

Copy link
Member

@ikesau ikesau left a comment

Choose a reason for hiding this comment

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

Looks good!

now I want to urljoin all the things, but that can wait I guess 😬

Co-authored-by: Ike Saunders <11844404+ikesau@users.noreply.github.com>
@Marigold Marigold merged commit f46e9c6 into master Feb 21, 2025
27 checks passed
@Marigold Marigold deleted the validate-envs branch February 21, 2025 11:46
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.

3 participants