Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Issue 2643803003: config: Update remote URL handling. (Closed)

Created:
3 years, 11 months ago by dnj
Modified:
3 years, 11 months ago
Reviewers:
Vadim Sh., iannucci
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, maruel+w_chromium.org, tandrii+luci-go_chromium.org
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

config: Update remote URL handling. Remove ServiceURL from "common/config".Interface. The remote inteface now takes in a "host" (e.g., "example.com") and a boolean, "insecure", which determines if HTTPS (false) or HTTP (true) should be used. Update "luci_config/server/cfgclient" to use the "host" and "insecure" properties. Update "gaeconfig" to use a host field. For backwards-compatibility purposes, it will extract the host field from a URL if it has one. Update the LogDog services API to include the configuration service host in services.GetConfig. BUG=chromium:682465 TEST=unit Review-Url: https://codereview.chromium.org/2643803003 Committed: https://github.com/luci/luci-go/commit/b6f14156e798268e632ddbd6376842144c9c4ae6

Patch Set 1 #

Patch Set 2 : Added test, fixed a bit, translation on save and load. #

Total comments: 4

Patch Set 3 : Fix "nost" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+862 lines, -703 lines) Patch
M common/config/impl/filesystem/fs.go View 1 chunk +0 lines, -7 lines 0 comments Download
M common/config/impl/memory/memory.go View 1 chunk +0 lines, -6 lines 0 comments Download
M common/config/impl/remote/remote.go View 2 chunks +15 lines, -12 lines 0 comments Download
M common/config/impl/remote/remote_test.go View 2 chunks +8 lines, -3 lines 0 comments Download
M common/config/interface.go View 1 chunk +0 lines, -3 lines 0 comments Download
M logdog/api/endpoints/coordinator/services/v1/pb.discovery.go View 1 chunk +590 lines, -584 lines 0 comments Download
M logdog/api/endpoints/coordinator/services/v1/service.proto View 1 chunk +4 lines, -0 lines 0 comments Download
M logdog/api/endpoints/coordinator/services/v1/service.pb.go View 3 chunks +57 lines, -46 lines 0 comments Download
M logdog/appengine/coordinator/endpoints/services/getConfig.go View 2 chunks +15 lines, -4 lines 0 comments Download
M logdog/appengine/coordinator/endpoints/services/getConfig_test.go View 3 chunks +8 lines, -1 line 0 comments Download
M logdog/server/service/config/flag.go View 3 chunks +13 lines, -3 lines 0 comments Download
M logdog/server/service/config/flag_test.go View 1 chunk +1 line, -1 line 0 comments Download
M luci_config/appengine/gaeconfig/default.go View 1 chunk +3 lines, -2 lines 0 comments Download
M luci_config/appengine/gaeconfig/settings.go View 1 2 8 chunks +55 lines, -22 lines 0 comments Download
A luci_config/appengine/gaeconfig/settings_test.go View 1 1 chunk +56 lines, -0 lines 0 comments Download
M luci_config/server/cfgclient/backend/client/client.go View 5 chunks +21 lines, -7 lines 0 comments Download
M luci_config/server/cfgclient/backend/client/client_test.go View 1 chunk +7 lines, -1 line 0 comments Download
M luci_config/server/cfgclient/backend/testconfig/local_service.go View 1 chunk +8 lines, -0 lines 0 comments Download
M luci_config/server/cfgclient/backend/testconfig/local_service_test.go View 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 11 (5 generated)
dnj
PTAL. This field has always kind of sucked; hopefully this will make it better.
3 years, 11 months ago (2017-01-19 04:39:14 UTC) #2
iannucci
lgtm
3 years, 11 months ago (2017-01-19 19:10:45 UTC) #3
iannucci
https://codereview.chromium.org/2643803003/diff/20001/luci_config/appengine/gaeconfig/settings.go File luci_config/appengine/gaeconfig/settings.go (right): https://codereview.chromium.org/2643803003/diff/20001/luci_config/appengine/gaeconfig/settings.go#newcode137 luci_config/appengine/gaeconfig/settings.go:137: `service. This is the nost name (e.g., "example.com") of ...
3 years, 11 months ago (2017-01-19 19:18:02 UTC) #4
dnj
https://codereview.chromium.org/2643803003/diff/20001/luci_config/appengine/gaeconfig/settings.go File luci_config/appengine/gaeconfig/settings.go (right): https://codereview.chromium.org/2643803003/diff/20001/luci_config/appengine/gaeconfig/settings.go#newcode137 luci_config/appengine/gaeconfig/settings.go:137: `service. This is the nost name (e.g., "example.com") of ...
3 years, 11 months ago (2017-01-20 00:29:39 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2643803003/40001
3 years, 11 months ago (2017-01-20 00:30:17 UTC) #8
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 00:42:48 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://github.com/luci/luci-go/commit/b6f14156e798268e632ddbd6376842144c9c4ae6

Powered by Google App Engine
This is Rietveld 408576698