Skip to content

Commit

Permalink
Merge pull request #54 from hopinc/active-to-latest-rollout-refactor
Browse files Browse the repository at this point in the history
Active to latest rollout refactor
  • Loading branch information
Looskie authored Nov 10, 2022
2 parents 7ab15c6 + 40b4d96 commit d564fd9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/warm-lizards-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@onehop/js': minor
---

deprecation warning for active_rollout in favor for latest_rollout, new fields for rollout including init_container_id, health_check_failed, and last_updated_at.
22 changes: 21 additions & 1 deletion src/rest/types/ignite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,15 @@ export interface Deployment {
config: Omit<DeploymentConfig, 'volume' | 'name'>;

/**
* Current active rollout for deployment
* @deprecated Use latest_rollout
*/
active_rollout: DeploymentRollout | null;

/**
* Current active rollout for deployment
*/
latest_rollout: DeploymentRollout | null;

/**
* Current active build for deployment
*/
Expand Down Expand Up @@ -399,6 +404,21 @@ export type DeploymentRollout = {
* The build that triggered the rollout
*/
build: Build | null;

/**
* Container ID that the rollout is pertaining to
*/
init_container_id: string;

/**
* If a health check failed (causing the rollout to fail)
*/
health_check_failed: boolean;

/**
* Last time latest rollout was updated
*/
last_updated_at: Timestamp;
};

// This is a type not an interface so we can make a union
Expand Down

1 comment on commit d564fd9

@vercel
Copy link

@vercel vercel bot commented on d564fd9 Nov 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

hop-js – ./

hop-js.vercel.app
hop-js-git-master-onehop.vercel.app
js.hop.io
hop-js-onehop.vercel.app

Please sign in to comment.