Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(135)

Issue 5370096: Add internal threading to messages within an issue

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 1 month ago by Kaelyn
Modified:
14 years, 1 month ago
CC:
codereview-discuss_googlegroups.com
Visibility:
Public.

Description

Adds an "in_reply_to" field to Messages, which stores a reference to the Message the current message was in reply to. Defaults to the first Message in an issue if it exists, to handle e.g. inline comments where the new message is not internally a direct reply to another Message.

Patch Set 1 #

Total comments: 17

Patch Set 2 : Improvements based on initial code review feedback #

Patch Set 3 : Additional changes based on techtonik's feedback #

Total comments: 2

Patch Set 4 : Check that the in_reply_to Message is a part of the current issue #

Total comments: 4

Patch Set 5 : Rebase patch against current tip #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -5 lines) Patch
M codereview/models.py View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M codereview/views.py View 1 2 3 4 6 chunks +20 lines, -3 lines 0 comments Download
M static/script.js View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M templates/issue.html View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 20
Kaelyn
14 years, 1 month ago (2011-11-14 22:33:15 UTC) #1
Andi Albrecht
[Corrected "techtonik" as reviewer :)] IIRC there was a plan for a second change following ...
14 years, 1 month ago (2011-11-15 10:26:50 UTC) #2
techtonik
On 2011/11/15 10:26:50, Andi Albrecht wrote: > [Corrected "techtonik" as reviewer :)] > > IIRC ...
14 years, 1 month ago (2011-11-15 14:35:27 UTC) #3
Kaelyn
14 years, 1 month ago (2011-11-21 22:05:40 UTC) #4
Kaelyn
Yes there is a second patch that adds the email threading; I'm still working on ...
14 years, 1 month ago (2011-11-21 22:05:46 UTC) #5
Andi Albrecht
http://codereview.appspot.com/5370096/diff/1/codereview/models.py File codereview/models.py (right): http://codereview.appspot.com/5370096/diff/1/codereview/models.py#newcode85 codereview/models.py:85: first_msg = db.ReferenceProperty() # reference to a Message (defined ...
14 years, 1 month ago (2011-11-22 07:41:22 UTC) #6
techtonik
I think the current approach with making Issue knowing about it's messages is no good. ...
14 years, 1 month ago (2011-11-22 09:50:07 UTC) #7
Kaelyn
14 years, 1 month ago (2011-11-22 18:23:15 UTC) #8
Kaelyn
For the record, Issue.first_msg and Issue.first_message were about caching a reference to a *single* message ...
14 years, 1 month ago (2011-11-22 18:26:37 UTC) #9
techtonik
With the except of small nit below, seems good to me. Andi? http://codereview.appspot.com/5370096/diff/11002/codereview/views.py File codereview/views.py ...
14 years, 1 month ago (2011-11-23 16:02:40 UTC) #10
Kaelyn
http://codereview.appspot.com/5370096/diff/11002/codereview/views.py File codereview/views.py (right): http://codereview.appspot.com/5370096/diff/11002/codereview/views.py#newcode3134 codereview/views.py:3134: logging.warn('Invalid in-reply-to Message or key given: %s', in_reply_to) On ...
14 years, 1 month ago (2011-11-23 17:41:15 UTC) #11
Kaelyn
14 years, 1 month ago (2011-11-23 17:41:20 UTC) #12
Andi Albrecht
Two other nits. But looks good then :) http://codereview.appspot.com/5370096/diff/14003/codereview/views.py File codereview/views.py (right): http://codereview.appspot.com/5370096/diff/14003/codereview/views.py#newcode307 codereview/views.py:307: max_length=1000, ...
14 years, 1 month ago (2011-11-23 18:59:06 UTC) #13
Kaelyn
14 years, 1 month ago (2011-11-23 21:19:53 UTC) #14
Kaelyn
http://codereview.appspot.com/5370096/diff/14003/codereview/views.py File codereview/views.py (right): http://codereview.appspot.com/5370096/diff/14003/codereview/views.py#newcode307 codereview/views.py:307: max_length=1000, On 2011/11/23 18:59:06, Andi Albrecht wrote: > Have ...
14 years, 1 month ago (2011-11-23 21:20:51 UTC) #15
Andi Albrecht
Looks good to me. Anatoly, do you have any comments. You're more familiar with this ...
14 years, 1 month ago (2011-11-24 11:25:11 UTC) #16
Kaelyn
On a side note, I have a patch for the email threading mostly done but ...
14 years, 1 month ago (2011-11-29 00:00:35 UTC) #17
gvrpython
Unfortunately I don't think that feature request will be satisfied any time soon. Obtaining the ...
14 years, 1 month ago (2011-11-29 00:21:59 UTC) #18
techtonik
LGTM and committed to https://code.google.com/p/rietveld/source/detail?r=a140eab7636e77e29d562d651c766a06d22a5bb9 Thanks Kaelyn now it's possible to implement threaded conversations in ...
14 years, 1 month ago (2011-11-29 17:05:32 UTC) #19
techtonik
14 years, 1 month ago (2011-11-29 17:10:30 UTC) #20
On 2011/11/29 00:21:59, gvrpython wrote:
> Unfortunately I don't think that feature request will be satisfied any time
> soon. Obtaining the message-id after the message was sent is the least
> likely; 

Although I'd prefer to move this discussion to a separate thread, I'll ask
anyway. Why it is not possible to obtain message-id? It is only logical if
send_mail() at
http://code.google.com/appengine/docs/python/mail/functions.html#send_mail
returned message-id that could later be used to query message delivery status
other stuff.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b