* cc: Adam Johnson (removed)
Comment:
Please don’t CC me on tickets I have no relation to.
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: Adam Johnson (added)
Comment:
Sorry, I thought the CC was done by OP. It happens sometimes that people
just ping me because they’ve seen my blog or something. Why did you add me
Natalia? I don’t remember working on emails 😅
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:8>
Comment (by Natalia Bidart):
Hey Adam, I should have been more explicit, my bad! I CC'd you because I
read your comment in ticket:32907#comment:1 and it seemed that you were
interested/knowledgeable in the topic. Sorry if that was hasty!
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:9>
Comment (by Florian Apolloner):
Should we override with the data in `headers` or should be throw an
exception? As the behavior is broken now an exception wouldn't be the
worst thing and feels more correct (ie use the existing API to set `to`
because that might do other things under the hood etc…)
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:10>
* cc: Florian Apolloner (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:11>
Comment (by Adam Johnson):
I agree that an exception sounds more correct, probably a ValueError, for
any keys in headers that correspond to the explicit arguments like “to”.
Natalia - no worries, I just saw this message after a number of other
spammy ones 😅
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:12>
* needs_better_patch: 1 => 0
* has_patch: 1 => 0
* needs_tests: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:13>
Comment (by Salvo Polizzi):
Hi, i made a PR for this bug:
https://github.com/django/django/pull/17606/files
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:14>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:15>
* cc: David Wobrock (added)
* needs_better_patch: 0 => 1
* status: new => assigned
* owner: nobody => Salvo Polizzi
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:16>
Comment (by Salvo Polizzi):
Replying to [comment:16 David Wobrock]:
> This is the PR you meant https://github.com/django/django/pull/17642,
right? :)
Yes, it is
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:17>
* needs_better_patch: 1 => 0
* needs_tests: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:18>
* needs_better_patch: 0 => 1
* needs_tests: 0 => 1
Comment:
I do not see any tests in the PR, just because no tests fail after changes
doesn't mean there are no tests required ;)
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:19>
Comment (by Florian Apolloner):
When working on the patch, please consider the history of the file:
https://github.com/django/django/commit/5e75678c8b was added to ensure
that `to` in `extra_headers` takes precedence and should have prevented a
duplicate `to` header. Apparently this got broken in
https://github.com/django/django/commit/da82939e5a31dea21a4f4d5085dfcd449fcbed3a
Whatever the final solution is (raising an error if possible is preferred
-- I fear it is not), existing tests and usecases shouldn't break.
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:20>
Comment (by Salvo Polizzi):
Replying to [comment:19 Florian Apolloner]:
> I do not see any tests in the PR, just because no tests fail after
changes doesn't mean there are no tests required ;)
I'm sorry, I will provide tests. Thanks for giving me some feedback
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:21>
* needs_better_patch: 1 => 0
* needs_tests: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:22>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:23>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:24>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:25>
Comment (by Salvo Polizzi):
Replying to [comment:25 Mariusz Felisiak]:
Hi Mariusz, what do i need to fix in the PR? I'm asking you because I
haven't seen any reviews in the PR anymore.
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:26>
Comment (by Mariusz Felisiak):
Sorry, I forgot to click "Submit the review".
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:27>
Comment (by Salvo Polizzi):
I left some comments in the new PR:
https://github.com/django/django/pull/17674
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:28>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:29>
* needs_better_patch: 0 => 1
Comment:
We need to find
[https://github.com/django/django/pull/17642#issuecomment-1875327543
answers] before this PR will be reviewable again. We cannot review PR if
we are not sure what we want to achieve. I don't see any discussion on the
forum or the mailing list, or any answers for my questions.
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:30>
Comment (by Natalia Bidart):
[https://forum.djangoproject.com/t/repeated-headers-in-email-message/26748
Forum post]
--
Ticket URL: <https://code.djangoproject.com/ticket/35033#comment:31>