The code seems to do what it is aimed for, but I'd like to throw ...
12 years, 2 months ago
(2012-02-21 08:15:05 UTC)
#2
The code seems to do what it is aimed for, but I'd like to throw in a proposal
to make it more explicit.
http://codereview.appspot.com/5687062/diff/1/codereview/views.py
File codereview/views.py (right):
http://codereview.appspot.com/5687062/diff/1/codereview/views.py#newcode1497
codereview/views.py:1497: # Create (and send) a message if needed.
It is not clear what is the point in creating message, but not sending it? An
ideal pseudocode is something like:
# Create message
# Post message if there is a message
# Email message if 'send_mail' is set
The people who are reading this code are asking:
- What is sent if there is no message?
- What does _notify_issue() does?
I remember that empty replies are inserted on issue update. It doesn't help
much. It would be nice to insert the phrase "XXX added Patch Set NNN" if we add
these messages anyway.
On Tue, Feb 21, 2012 at 9:15 AM, <techtonik@gmail.com> wrote: > The code seems to ...
12 years, 2 months ago
(2012-02-21 12:05:49 UTC)
#3
On Tue, Feb 21, 2012 at 9:15 AM, <techtonik@gmail.com> wrote:
> The code seems to do what it is aimed for, but I'd like to throw in a
> proposal to make it more explicit.
>
>
> http://codereview.appspot.com/5687062/diff/1/codereview/views.py
> File codereview/views.py (right):
>
> http://codereview.appspot.com/5687062/diff/1/codereview/views.py#newcode1497
> codereview/views.py:1497: # Create (and send) a message if needed.
> It is not clear what is the point in creating message, but not sending
> it? An ideal pseudocode is something like:
> # Create message
> # Post message if there is a message
> # Email message if 'send_mail' is set
>
> The people who are reading this code are asking:
> - What is sent if there is no message?
> - What does _notify_issue() does?
>
> I remember that empty replies are inserted on issue update. It doesn't
> help much. It would be nice to insert the phrase "XXX added Patch Set
> NNN" if we add these messages anyway.
I'd prefer just to make the "-m" switch work as expected. We can do
the server side refactorings later.
--
Andi
>
> http://codereview.appspot.com/5687062/
On 2012/02/21 12:05:49, Andi Albrecht wrote: > I'd prefer just to make the "-m" switch ...
12 years, 2 months ago
(2012-02-21 14:41:51 UTC)
#4
On 2012/02/21 12:05:49, Andi Albrecht wrote:
> I'd prefer just to make the "-m" switch work as expected. We can do
> the server side refactorings later.
Sadly our code misinterprets -m for -t on patchset uploads. I could fix that.
M-A
http://codereview.appspot.com/5687062/diff/1/upload.py File upload.py (right): http://codereview.appspot.com/5687062/diff/1/upload.py#newcode2261 upload.py:2261: message = message or title @M-A: Do we mix ...
12 years, 2 months ago
(2012-02-21 14:50:33 UTC)
#5
On 2012/02/21 14:41:51, M-A wrote: > On 2012/02/21 12:05:49, Andi Albrecht wrote: > > I'd ...
12 years, 1 month ago
(2012-02-21 23:07:43 UTC)
#7
On 2012/02/21 14:41:51, M-A wrote:
> On 2012/02/21 12:05:49, Andi Albrecht wrote:
> > I'd prefer just to make the "-m" switch work as expected. We can do
> > the server side refactorings later.
>
> Sadly our code misinterprets -m for -t on patchset uploads. I could fix that.
>
> M-A
I thought it was a feature. Supply one message in external file and the first
line will also be used as a title.
Issue 5687062: Add message from upload.py when updating an issue (fixes issue351).
(Closed)
Created 12 years, 2 months ago by Andi
Modified 11 years, 8 months ago
Reviewers: techtonik, GvR, M-A
Base URL:
Comments: 3