patchwork:stable/2.2

Last commit made on 2020-11-28
Get this branch:
git clone -b stable/2.2 https://git.launchpad.net/patchwork

Branch merges

Branch information

Name:
stable/2.2
Repository:
lp:patchwork

Recent commits

0922c8a... by Stephen Finucane <email address hidden> on 2020-11-28

lib: Drop errant comma

Signed-off-by: Stephen Finucane <email address hidden>

128a99d... by Stephen Finucane <email address hidden> on 2020-11-28

lib: Add update permissions to 'nobody' postgres user

This user needs the ability to change some attributes of 'Patch' and
'CoverLetter' instances that are stored in the 'patchwork_submission'
table, since both are are concrete subclasses of 'Submission'.

Stable-only since the 'Submission model has been removed on 'master'.

Signed-off-by: Stephen Finucane <email address hidden>
Suggested-by: Ali Alnubani <email address hidden>
Closes: #364
Stable-Only

935c185... by Stephen Finucane <email address hidden> on 2020-05-25

Post-release version bump

Signed-off-by: Stephen Finucane <email address hidden>

5a84eb1... by Stephen Finucane <email address hidden> on 2020-05-25

Release 2.2.2

Signed-off-by: Stephen Finucane <email address hidden>

4491c86... by Jan Remmet <email address hidden> on 2020-05-25

admin: fix series query

remove typo from search_fields.

Signed-off-by: Jan Remmet <email address hidden>
Signed-off-by: Stephen Finucane <email address hidden>
(cherry picked from commit 7e5d2e64e2a51a7c4b789888e93788d5ad8875c8)

85dc4da... by Stephen Finucane <email address hidden> on 2020-04-26

docker: Ignore postgres data file

Signed-off-by: Stephen Finucane <email address hidden>
(cherry picked from commit 10b6162807ed76b1b56c0a57c9e55e02e88daad1)

0c74c92... by Jeremy Kerr on 2020-04-16

parser: don't trigger database IntegrityErrors on duplicate coverletters

As we've done for the Patch and Comment models, this change prevents
database errors from duplicate CoverLetters.

Signed-off-by: Jeremy Kerr <email address hidden>
Signed-off-by: Stephen Finucane <email address hidden>
[stephenfin: Add release note]
(cherry picked from commit 55fb26bf5bb3ca81ae35426efa9b2410e206c8b2)

69cd420... by Jeremy Kerr on 2020-04-16

parser: don't trigger database IntegrityErrors on duplicate comments

As we've done for the Patch model, this change prevents database errors
from duplicate Comments.

Signed-off-by: Jeremy Kerr <email address hidden>
Reviewed-by: Stephen Finucane <email address hidden>
(cherry picked from commit 55aa9cd749f3ff0de430c8f04c687d691c3a703a)

91dce3e... by Jeremy Kerr on 2020-04-16

parser: prevent IntegrityErrors

Currently, the parser relies on causing (and catching) IntegrityErrors
on patch insert to catch duplicate (msgid,project) mails.

This change performs an atomic select -> insert instead.

Signed-off-by: Jeremy Kerr <email address hidden>
Signed-off-by: Stephen Finucane <email address hidden>
[stephenfin: Remove 'expectedFailure' marker again]
(cherry picked from commit 947c6aae94b7b554ca701c1d7e5baf000759ed2d)

9463c2b... by Jeremy Kerr on 2020-04-16

tests: ensure we don't see database errors during duplicate insert

Currently, the parser causes IntegrityErrors while inserting duplicate
patches; these tend to pollute database logs.

This change adds a check, which currently fails, to ensure we do not
cause errors during a duplicate patch parse.

Conflicts:
 patchwork/tests/test_parser.py

NOTE(stephenfin): Conflicts are once again due to import reordering. In
addition, we have to skip these tests on Django 1.11 since the
'connection.execute_wrapper' context manager was first added in Django
2.0 [1].

[1] https://docs.djangoproject.com/en/dev/releases/2.0/#models

Signed-off-by: Jeremy Kerr <email address hidden>
Signed-off-by: Stephen Finucane <email address hidden>
[stephenfin: Add 'expectedFailure' marker to keep all tests green]
(cherry picked from commit a60e75e2c6897fd262ec95a35e0e94b9027c11d4)