launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #21597
[Merge] lp:~cjwatson/launchpad/mp-job-new-revision-author into lp:launchpad
Colin Watson has proposed merging lp:~cjwatson/launchpad/mp-job-new-revision-author into lp:launchpad.
Commit message:
Fix crash when scanning a Git-based MP when we need to link a new RevisionAuthor to an existing Person.
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
Related bugs:
Bug #1693543 in Launchpad itself: "oops when generating diff in git merge proposal"
https://bugs.launchpad.net/launchpad/+bug/1693543
For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/mp-job-new-revision-author/+merge/324641
--
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~cjwatson/launchpad/mp-job-new-revision-author into lp:launchpad.
=== modified file 'database/schema/security.cfg'
--- database/schema/security.cfg 2017-05-19 15:52:35 +0000
+++ database/schema/security.cfg 2017-05-25 17:35:24 +0000
@@ -2009,7 +2009,7 @@
public.productseries = SELECT
public.project = SELECT
public.revision = SELECT
-public.revisionauthor = SELECT, INSERT
+public.revisionauthor = SELECT, INSERT, UPDATE
public.seriessourcepackagebranch = SELECT
public.sourcepackagename = SELECT
public.structuralsubscription = SELECT
=== modified file 'lib/lp/code/model/tests/test_branchmergeproposaljobs.py'
--- lib/lp/code/model/tests/test_branchmergeproposaljobs.py 2017-05-19 15:52:35 +0000
+++ lib/lp/code/model/tests/test_branchmergeproposaljobs.py 2017-05-25 17:35:24 +0000
@@ -272,10 +272,15 @@
subscriber = self.factory.makePerson()
bug.default_bugtask.target.addSubscription(subscriber, subscriber)
bmp, _, _, patch = self.createExampleGitMerge()
+ committer = self.factory.makePerson()
self.hosting_fixture.getLog.result = [
{
u"sha1": unicode(hashlib.sha1("tip").hexdigest()),
u"message": u"Fix upside-down messages\n\nLP: #%d" % bug.id,
+ u"committer": {
+ u"name": committer.display_name,
+ u"email": committer.preferredemail.email,
+ },
},
]
job = UpdatePreviewDiffJob.create(bmp)
Follow ups