From 3b95d3b7a1fd27322d966c902dd885c9aad96bb6 Mon Sep 17 00:00:00 2001 From: Alistair Smith Date: Wed, 30 Nov 2022 17:48:12 +0100 Subject: [PATCH 1/2] fix: deprecate Deployment#active_{build,rollout} --- src/rest/types/ignite.ts | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/rest/types/ignite.ts b/src/rest/types/ignite.ts index 24d91462..81301d94 100644 --- a/src/rest/types/ignite.ts +++ b/src/rest/types/ignite.ts @@ -211,19 +211,34 @@ export interface Deployment { config: Omit; /** + * Current active rollout for deployment * @deprecated Use latest_rollout */ active_rollout: DeploymentRollout | null; + /** + * Current active build for deployment + * @deprecated Use latest_build instead + */ + active_build: Build | null; + + /** + * The active build ID to use. This can differ from .latest_build.id + * because if we promote an older build to production, then the latest_build + * will *not* be the active build. + */ + build_id: Build['id'] | null; + /** * Current active rollout for deployment */ latest_rollout: DeploymentRollout | null; /** - * Current active build for deployment + * Current active build for deployment. + * Is nullable if the deployment has no builds yet. */ - active_build: Build | null; + latest_build: Build | null; /** * The amount of containers in the running state From 491ddfa6d08f9b472a52c211458e71b21bc20cb2 Mon Sep 17 00:00:00 2001 From: Alistair Smith Date: Wed, 30 Nov 2022 17:55:32 +0100 Subject: [PATCH 2/2] docs(changeset): Deprecate Deployment.active_{build,rollout} --- .changeset/cyan-gorillas-sniff.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/cyan-gorillas-sniff.md diff --git a/.changeset/cyan-gorillas-sniff.md b/.changeset/cyan-gorillas-sniff.md new file mode 100644 index 00000000..647a1cc0 --- /dev/null +++ b/.changeset/cyan-gorillas-sniff.md @@ -0,0 +1,5 @@ +--- +'@onehop/js': patch +--- + +Deprecate Deployment.active\_{build,rollout}