launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #24838
Re: [Merge] ~pappacena/launchpad:gitrepo-status into launchpad:master
Pushed the requested changes, with one question.
Diff comments:
> diff --git a/lib/lp/code/enums.py b/lib/lp/code/enums.py
> index c472c6a..8a09a72 100644
> --- a/lib/lp/code/enums.py
> +++ b/lib/lp/code/enums.py
> @@ -148,6 +149,25 @@ class GitRepositoryType(DBEnumeratedType):
> """)
>
>
> +class GitRepositoryStatus(DBEnumeratedType):
> + """Git Repository Status
> +
> + The current situation of this Git Repository.
> + """
> +
> + AVAILABLE = DBItem(1, """
> + Available
> +
> + This repository is available to be used.
> + """)
> +
> + CREATING = DBItem(2, """
> + Creating
> +
> + This repository is being created on git hosting system.
> + """)
Ok!
> +
> +
> class GitObjectType(DBEnumeratedType):
> """Git Object Type
>
> diff --git a/lib/lp/code/model/gitrepository.py b/lib/lp/code/model/gitrepository.py
> index 2e9080f..0421884 100644
> --- a/lib/lp/code/model/gitrepository.py
> +++ b/lib/lp/code/model/gitrepository.py
> @@ -351,6 +355,8 @@ class GitRepository(StormBase, WebhookTargetMixin, GitIdentityMixin):
> assert IDistribution.providedBy(target.pillar)
> self.ociprojectname = target.ociprojectname
> self.distribution = target.pillar
> + self.status = (status if status is not None
> + else GitRepositoryStatus.AVAILABLE)
Adding the XXX comment here, but I didn't get exactly what should be changed in the column declaration.
> self.owner_default = False
> self.target_default = False
>
--
https://code.launchpad.net/~pappacena/launchpad/+git/launchpad/+merge/385208
Your team Launchpad code reviewers is requested to review the proposed merge of ~pappacena/launchpad:gitrepo-status into launchpad:master.
References