-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2022-03-17] Cleanup: URL Configs #7489
Comments
Triggered auto assignment to @laurenreidexpensify ( |
cc @mananjadhav if you're interested |
I would like to work on this one if possible |
@roryabraham Yeah I am interested. Here's my proposal. Based on the comment here: I'll update the references in
These values have to be updated in I am guessing we don't need to change anything for Apart from these, there are three other URLs in
App/src/components/HTMLEngineProvider/HTMLRenderers/AnchorRenderer.js Lines 22 to 25 in 2c14f01
cc - @NikkiWines |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
Triggered auto assignment to @iwiznia ( |
@mananjadhav Should we name it the way url appears? i.e. subdomain then domain.
Then |
Well I guess that works too. |
🎀👀🎀 C+ reviewed @iwiznia I recommend that we hire @mananjadhav to fix this. Left to right URL naming (subdomain then domain) seems the simplest, so I think we should go for that. |
Looks good but let's first define:
What exactly are you not sure about? |
|
We're using
Don't have any good ideas on the name. |
My thought was add a util: |
This sounds reasonable to me
But is that on purpose? Why wouldn't we want to use https in all links? |
Reading |
🤷 let's just use the one with https, I don't think it's a big deal. |
📣 @mananjadhav You have been assigned to this job by @laurenreidexpensify! |
Was a bit unwell, will push an update tonight. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.41-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2022-03-17. 🎊 |
@mananjadhav @rushatgabhane paid 👍🏽 |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Coming from this issue. This is a non-standard issue in that we're just asking for some code cleanup.
Problem
We currently have a number of different URL constants in this repo:
expensifyCashURL
URL_EXPENSIFY_CASH
EXPENSIFY_URL_CASH
expensifyURL
EXPENSIFY_URL_COM
The list goes on...
Why this is important
This is confusing for developers and might sometimes lead to the wrong URL being used.
Solution
@NikkiWines Suggested a solution in this comment. Generically, I would request the following traits in a solution:
.env
files (and thus are environment-specific), but use a fallback if the url is missing from the config for some reason.CASH
, because this platform is no longer called Expensify.cashView all open jobs on GitHub
The text was updated successfully, but these errors were encountered: