You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are places in the code where the url scheme is hardcoded to https. As a result, when a developer has all of the micro services up locally, the webapp micro service cannot call the search cache service because the scheme is hardcoded.
Definition of Done
Find all places of hardcoded with https and have it use the appropriate scheme depending on where it is deployed (locally or google cloud)
The microservices work together not only when deployed but locally.
jcscottiii
changed the title
Search cache testing will not work when hostname is localhost (http scheme needed)
Remove hardcoded https scheme and use appropriate scheme depending on environment.
Sep 30, 2022
Background
There are places in the code where the url scheme is hardcoded to
https
. As a result, when a developer has all of the micro services up locally, the webapp micro service cannot call the search cache service because the scheme is hardcoded.Definition of Done
https
and have it use the appropriate scheme depending on where it is deployed (locally or google cloud)Examples (not exhaustive)
Example 1:
wpt.fyi/api/query/search.go
Lines 165 to 166 in cee243f
Example 2:
wpt.fyi/shared/fetch_runs.go
Lines 25 to 26 in 9c7b693
Example 3:
wpt.fyi/api/checks/update.go
Line 234 in 9c7b693
Example 4:
wpt.fyi/shared/appengine.go
Line 329 in 9c7b693
Example 5:
wpt.fyi/shared/appengine.go
Line 359 in 9c7b693
Example 6:
wpt.fyi/shared/run_diff.go
Line 51 in 9c7b693
Example 7:
wpt.fyi/shared/run_diff.go
Line 383 in 9c7b693
Example 8:
wpt.fyi/webapp/admin_handler.go
Line 57 in 9c7b693
Example 9:
wpt.fyi/webapp/login.go
Line 259 in 9c7b693
The text was updated successfully, but these errors were encountered: