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

Issue 84943003: chromium-status: automatically linkify usernames/status messages (Closed)

Created:
7 years ago by vapier
Modified:
7 years ago
CC:
chromium-reviews, cmp+cc_chromium.org
Visibility:
Public.

Description

chromium-status: automatically linkify usernames/status messages Automatically convert all usernames in the Who col to mailto links. This makes the field much narrower w/out reducing information which allows more space for the message field. There is a large amount of links that can be created based on the status messages, both from the automatic stuff the bots produce as well as the common conventions of developers. Add support for declaring regexes that in turn create links of the data. We also add support for doing instance-specific linking (for cases where source data is ambiguous as to the target, but make sense when considered in the instance they are shown). We only use this for ChromeOS atm, but should be easy to extend if people are interested. Hopefully this should help out sheriffs by cutting out a few steps. BUG=chromium:314501 TEST=ran an appengine instance with example statuses and checked output TEST=`./tests/main_test.py` passes Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=239012

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix is_email check #

Total comments: 16

Patch Set 3 : feedback from maruel #

Total comments: 14

Patch Set 4 : address Vadim's feedback in status.py #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -2 lines) Patch
M status.py View 1 2 3 3 chunks +113 lines, -0 lines 0 comments Download
M stylesheets/style.css View 1 chunk +7 lines, -0 lines 0 comments Download
M templates/main.html View 1 1 chunk +18 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
vapier
what do you think of this approach ? using a little bit of recursion and ...
7 years ago (2013-11-25 04:31:50 UTC) #1
cmp
adding people for review https://codereview.chromium.org/84943003/diff/1/templates/main.html File templates/main.html (right): https://codereview.chromium.org/84943003/diff/1/templates/main.html#newcode47 templates/main.html:47: <a href="{% if a_link.email %}mailto:{% ...
7 years ago (2013-11-25 05:04:55 UTC) #2
vapier
https://codereview.chromium.org/84943003/diff/1/templates/main.html File templates/main.html (right): https://codereview.chromium.org/84943003/diff/1/templates/main.html#newcode47 templates/main.html:47: <a href="{% if a_link.email %}mailto:{% endif %}{{ a_link.target }}">{{ ...
7 years ago (2013-11-25 15:24:33 UTC) #3
M-A Ruel
https://codereview.chromium.org/84943003/diff/60001/status.py File status.py (right): https://codereview.chromium.org/84943003/diff/60001/status.py#newcode26 status.py:26: """Simple object to hold text that might be linked""" ...
7 years ago (2013-11-25 16:18:14 UTC) #4
vapier
https://codereview.chromium.org/84943003/diff/60001/status.py File status.py (right): https://codereview.chromium.org/84943003/diff/60001/status.py#newcode26 status.py:26: """Simple object to hold text that might be linked""" ...
7 years ago (2013-11-25 17:51:26 UTC) #5
cmp
Adding Vadim and Robbie this may have time. Aaron or Stefan, feel free to finish ...
7 years ago (2013-12-03 15:16:16 UTC) #6
cmp
On 2013/12/03 15:16:16, cmp wrote: > Adding Vadim and Robbie this may have time. Aaron ...
7 years ago (2013-12-03 15:53:46 UTC) #7
Vadim Sh.
https://codereview.chromium.org/84943003/diff/70001/status.py File status.py (right): https://codereview.chromium.org/84943003/diff/70001/status.py#newcode25 status.py:25: class Link(object): I'd convert it to collections.namedtuple. Shorter, immutable, ...
7 years ago (2013-12-03 20:06:36 UTC) #8
vapier
https://codereview.chromium.org/84943003/diff/70001/status.py File status.py (right): https://codereview.chromium.org/84943003/diff/70001/status.py#newcode25 status.py:25: class Link(object): we discussed collections in the previous patch. ...
7 years ago (2013-12-04 07:54:32 UTC) #9
vapier
PTAL; i think all the status.py feedback is addressed now. i couldn't do the template ...
7 years ago (2013-12-05 07:23:32 UTC) #10
Vadim Sh.
On 2013/12/05 07:23:32, vapier wrote: > PTAL; i think all the status.py feedback is addressed ...
7 years ago (2013-12-05 18:27:24 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vapier@chromium.org/84943003/90001
7 years ago (2013-12-05 19:36:05 UTC) #12
commit-bot: I haz the power
7 years ago (2013-12-05 19:36:18 UTC) #13
Message was sent while issue was closed.
Change committed as 239012

Powered by Google App Engine
This is Rietveld 408576698