From ba2e131804cb28c9ae133aaafe24187243f6e2f3 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Thu, 8 Sep 2016 08:48:02 -0400 Subject: Include build number in server version given to the client (#3984) --- api/context.go | 2 +- api/web_hub.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'api') diff --git a/api/context.go b/api/context.go index 37b426c21..b63005d64 100644 --- a/api/context.go +++ b/api/context.go @@ -150,7 +150,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { } w.Header().Set(model.HEADER_REQUEST_ID, c.RequestId) - w.Header().Set(model.HEADER_VERSION_ID, fmt.Sprintf("%v.%v", model.CurrentVersion, utils.CfgHash)) + w.Header().Set(model.HEADER_VERSION_ID, fmt.Sprintf("%v.%v.%v", model.CurrentVersion, model.BuildNumber, utils.CfgHash)) if einterfaces.GetClusterInterface() != nil { w.Header().Set(model.HEADER_CLUSTER_ID, einterfaces.GetClusterInterface().GetClusterId()) } diff --git a/api/web_hub.go b/api/web_hub.go index c4abc5a7a..452fa10f8 100644 --- a/api/web_hub.go +++ b/api/web_hub.go @@ -64,7 +64,7 @@ func (h *Hub) Register(webConn *WebConn) { h.register <- webConn msg := model.NewWebSocketEvent("", "", webConn.UserId, model.WEBSOCKET_EVENT_HELLO) - msg.Add("server_version", fmt.Sprintf("%v.%v", model.CurrentVersion, utils.CfgHash)) + msg.Add("server_version", fmt.Sprintf("%v.%v.%v", model.CurrentVersion, model.BuildNumber, utils.CfgHash)) go Publish(msg) } -- cgit v1.2.3-1-g7c22 From b6ed10a31ecf16f7a0cf594db6b5a10e983e2db9 Mon Sep 17 00:00:00 2001 From: Jason Blais Date: Thu, 8 Sep 2016 08:48:12 -0400 Subject: PLT-3766 Change remaining LDAP references to AD/LDAP (#3985) * Update user.go * Update en.json * Update ldap_test_button.jsx * Update en.json --- api/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api') diff --git a/api/user.go b/api/user.go index daa405ad4..a33e2f7d7 100644 --- a/api/user.go +++ b/api/user.go @@ -2156,7 +2156,7 @@ func emailToLdap(c *Context, w http.ResponseWriter, r *http.Request) { return } - go sendSignInChangeEmail(c, user.Email, c.GetSiteURL(), "LDAP") + go sendSignInChangeEmail(c, user.Email, c.GetSiteURL(), "AD/LDAP") m := map[string]string{} m["follow_link"] = "/login?extra=signin_change" -- cgit v1.2.3-1-g7c22