← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~twom/launchpad:export-git-id-on-api into launchpad:master

 

Tom Wardill has proposed merging ~twom/launchpad:export-git-id-on-api into launchpad:master.

Commit message:
Add gitrepository.id to API

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~twom/launchpad/+git/launchpad/+merge/385683

This is useful for doing production operations with turnip, notably repacking.
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~twom/launchpad:export-git-id-on-api into launchpad:master.
diff --git a/lib/lp/code/interfaces/gitrepository.py b/lib/lp/code/interfaces/gitrepository.py
index 62a11f5..0e96fdc 100644
--- a/lib/lp/code/interfaces/gitrepository.py
+++ b/lib/lp/code/interfaces/gitrepository.py
@@ -131,7 +131,7 @@ def git_repository_name_validator(name):
 class IGitRepositoryView(IHasRecipes):
     """IGitRepository attributes that require launchpad.View permission."""
 
-    id = Int(title=_("ID"), readonly=True, required=True)
+    id = exported(Int(title=_("ID"), readonly=True, required=True))
 
     date_created = exported(Datetime(
         title=_("Date created"), required=True, readonly=True))

Follow ups