Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29325919: Issue 2982 - Return all notifications that have title and message (Closed)

Created:
Sept. 4, 2015, 8:57 a.m. by Felix Dahlke
Modified:
Sept. 11, 2015, 1:09 p.m.
Reviewers:
Sebastian Noack
CC:
mathias, Wladimir Palant
Visibility:
Public.

Description

Issue 2982 - Return all notifications that have title and message This means we will: 1. Not return any notifications that lack title or message. 2. Return notifications for group "0" in tests, as long as they have title and message.

Patch Set 1 : #

Total comments: 12

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -107 lines) Patch
M sitescripts/notifications/test/notification.py View 1 13 chunks +95 lines, -100 lines 0 comments Download
M sitescripts/notifications/web/notification.py View 1 1 chunk +19 lines, -7 lines 0 comments Download

Messages

Total messages: 6
Felix Dahlke
https://codereview.adblockplus.org/29325919/diff/29325923/sitescripts/notifications/test/notification.py File sitescripts/notifications/test/notification.py (right): https://codereview.adblockplus.org/29325919/diff/29325923/sitescripts/notifications/test/notification.py#newcode34 sitescripts/notifications/test/notification.py:34: {"id": "1", "title": {"en-US": ""}, "message": {"en-US": ""}} Adding ...
Sept. 4, 2015, 9:08 a.m. (2015-09-04 09:08:40 UTC) #1
Wladimir Palant
https://codereview.adblockplus.org/29325919/diff/29325923/sitescripts/notifications/web/notification.py File sitescripts/notifications/web/notification.py (right): https://codereview.adblockplus.org/29325919/diff/29325923/sitescripts/notifications/web/notification.py#newcode84 sitescripts/notifications/web/notification.py:84: return _can_be_shown(active_variant) and [active_variant] or [] Yay on obfuscation! ...
Sept. 4, 2015, 11:17 a.m. (2015-09-04 11:17:05 UTC) #2
Sebastian Noack
https://codereview.adblockplus.org/29325919/diff/29325923/sitescripts/notifications/test/notification.py File sitescripts/notifications/test/notification.py (right): https://codereview.adblockplus.org/29325919/diff/29325923/sitescripts/notifications/test/notification.py#newcode34 sitescripts/notifications/test/notification.py:34: {"id": "1", "title": {"en-US": ""}, "message": {"en-US": ""}} On ...
Sept. 4, 2015, 11:38 a.m. (2015-09-04 11:38:12 UTC) #3
Sebastian Noack
https://codereview.adblockplus.org/29325919/diff/29325923/sitescripts/notifications/web/notification.py File sitescripts/notifications/web/notification.py (right): https://codereview.adblockplus.org/29325919/diff/29325923/sitescripts/notifications/web/notification.py#newcode72 sitescripts/notifications/web/notification.py:72: return "title" in notification and "en-US" in notification["title"] and ...
Sept. 4, 2015, 11:47 a.m. (2015-09-04 11:47:36 UTC) #4
Felix Dahlke
New patch set is up https://codereview.adblockplus.org/29325919/diff/29325923/sitescripts/notifications/test/notification.py File sitescripts/notifications/test/notification.py (right): https://codereview.adblockplus.org/29325919/diff/29325923/sitescripts/notifications/test/notification.py#newcode34 sitescripts/notifications/test/notification.py:34: {"id": "1", "title": {"en-US": ...
Sept. 7, 2015, 7:54 a.m. (2015-09-07 07:54:37 UTC) #5
Sebastian Noack
Sept. 7, 2015, 5:01 p.m. (2015-09-07 17:01:43 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld