← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~cjwatson/launchpad:fix-ci-build-api into launchpad:master

 

Colin Watson has proposed merging ~cjwatson/launchpad:fix-ci-build-api into launchpad:master.

Commit message:
Fix webservice export of ICIBuild

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

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

We need to export this on "beta" for the usual annoying reasons related to bug 760849.
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/launchpad:fix-ci-build-api into launchpad:master.
diff --git a/lib/lp/code/interfaces/cibuild.py b/lib/lp/code/interfaces/cibuild.py
index 7cd0d87..6146dfe 100644
--- a/lib/lp/code/interfaces/cibuild.py
+++ b/lib/lp/code/interfaces/cibuild.py
@@ -186,7 +186,9 @@ class ICIBuildAdmin(IBuildFarmJobAdmin):
     """`ICIBuild` methods that require launchpad.Admin."""
 
 
-@exported_as_webservice_entry(as_of="devel", singular_name="ci_build")
+# XXX cjwatson 2022-05-17 bug=760849: "beta" is a lie to get WADL generation
+# working.  Individual attributes must set their version to "devel".
+@exported_as_webservice_entry(as_of="beta", singular_name="ci_build")
 class ICIBuild(ICIBuildView, ICIBuildEdit, ICIBuildAdmin, IPackageBuild):
     """A build record for a pipeline of CI jobs."""