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

Issue 882463003: Basic webapp UI for host-offline-reason. (Closed)

Created:
5 years, 10 months ago by Łukasz Anforowicz
Modified:
5 years, 10 months ago
Reviewers:
Jamie
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Basic webapp UI for host-offline-reason. This changelist: Adding a basic UI for displaying host-offline-reason: - When no host-offline-reason is provided, old behavior is preserved - When a host-offline-reason is provided, the text used to present a host says: "<hostname> (reported an error <time>)" rather than: "<hostname> (last online 11/11/2014)" - When a known host-offline-reason is provided, a tooltip is added to the host giving localized description of the specific host-offline-reason. Example tooltip: "Invalid host configuration." - When an unknown host-offline-reason is provided (one without a localized description text), a generic tooltip is added saying: "Unrecognized error: INVALID_HOST_CONFIGURATION." Context: After crrev.com/719983002 Chromoting host sends an host-offline-reason string before exiting. The host-offline-reason value is currently always based on ExitCodeToString function / HostExitCodes enum, but in principle host-offline-reason is not necessarily tied to an exit code (i.e. in the future the host should send "INVALID_POLICY" host-offline-reason but rather than exiting should hang around monitoring policy for changes). The host-offline-reason sent by the host is stored in the Chromoting directory. Since cr/79856832the directory sends host-offline-reason to the client as hostOfflineReason field inside a Host object. BUG=410050, 247245 TEST=Manually tried the UI in the 3 cases: hor missing, known hor, unknown hor. Committed: https://crrev.com/f0a7d8ada0ddf100cd2983f0ad1d9d853115d227 Cr-Commit-Position: refs/heads/master@{#315396}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed Jamie's feedback. #

Total comments: 6

Patch Set 3 : Fixed minor nits pointed out by Jamie. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -14 lines) Patch
M remoting/resources/remoting_strings.grd View 1 1 chunk +34 lines, -2 lines 0 comments Download
M remoting/webapp/crd/js/host.js View 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/webapp/crd/js/host_table_entry.js View 1 2 3 chunks +56 lines, -12 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Łukasz Anforowicz
Jamie, could you please take a look at a basic webapp UI for displaying host-offline-reason? ...
5 years, 10 months ago (2015-02-07 00:02:55 UTC) #2
Jamie
https://codereview.chromium.org/882463003/diff/1/remoting/resources/remoting_strings.grd File remoting/resources/remoting_strings.grd (right): https://codereview.chromium.org/882463003/diff/1/remoting/resources/remoting_strings.grd#newcode860 remoting/resources/remoting_strings.grd:860: </message> I don't think that this is the right ...
5 years, 10 months ago (2015-02-07 00:46:46 UTC) #3
Łukasz Anforowicz
Jamie, Thanks for the feedback. I've tried to address it in patchset #2. Could you ...
5 years, 10 months ago (2015-02-09 19:21:58 UTC) #4
Jamie
lgtm https://codereview.chromium.org/882463003/diff/20001/remoting/webapp/crd/js/host_table_entry.js File remoting/webapp/crd/js/host_table_entry.js (right): https://codereview.chromium.org/882463003/diff/20001/remoting/webapp/crd/js/host_table_entry.js#newcode338 remoting/webapp/crd/js/host_table_entry.js:338: * Formats host's host-offline-reason value (i.e. "INVALID_HOST_CONFIGURATION_") Nit: ...
5 years, 10 months ago (2015-02-09 19:57:15 UTC) #5
Łukasz Anforowicz
https://codereview.chromium.org/882463003/diff/20001/remoting/webapp/crd/js/host_table_entry.js File remoting/webapp/crd/js/host_table_entry.js (right): https://codereview.chromium.org/882463003/diff/20001/remoting/webapp/crd/js/host_table_entry.js#newcode338 remoting/webapp/crd/js/host_table_entry.js:338: * Formats host's host-offline-reason value (i.e. "INVALID_HOST_CONFIGURATION_") On 2015/02/09 ...
5 years, 10 months ago (2015-02-09 20:19:13 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/882463003/40001
5 years, 10 months ago (2015-02-09 20:20:40 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-09 21:16:16 UTC) #10
commit-bot: I haz the power
5 years, 10 months ago (2015-02-09 21:17:33 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f0a7d8ada0ddf100cd2983f0ad1d9d853115d227
Cr-Commit-Position: refs/heads/master@{#315396}

Powered by Google App Engine
This is Rietveld 408576698