mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-20 07:04:38 +00:00
Add runtime issue clear action
This commit is contained in:
parent
ec8e816d0d
commit
b224294b0e
11 changed files with 82 additions and 2 deletions
|
|
@ -133,6 +133,7 @@ export interface MockFoundryAppClient {
|
|||
selectOrganization(organizationId: string): Promise<void>;
|
||||
updateOrganizationProfile(input: UpdateMockOrganizationProfileInput): Promise<void>;
|
||||
triggerGithubSync(organizationId: string): Promise<void>;
|
||||
clearOrganizationRuntimeIssues(organizationId: string, actorId?: string): Promise<void>;
|
||||
completeHostedCheckout(organizationId: string, planId: MockBillingPlanId): Promise<void>;
|
||||
openBillingPortal(organizationId: string): Promise<void>;
|
||||
cancelScheduledRenewal(organizationId: string): Promise<void>;
|
||||
|
|
@ -585,6 +586,21 @@ class MockFoundryAppStore implements MockFoundryAppClient {
|
|||
this.importTimers.set(organizationId, timer);
|
||||
}
|
||||
|
||||
async clearOrganizationRuntimeIssues(organizationId: string, actorId?: string): Promise<void> {
|
||||
await this.injectAsyncLatency();
|
||||
void actorId;
|
||||
this.requireOrganization(organizationId);
|
||||
this.updateOrganization(organizationId, (organization) => ({
|
||||
...organization,
|
||||
runtime: {
|
||||
...organization.runtime,
|
||||
status: "healthy",
|
||||
errorCount: 0,
|
||||
issues: [],
|
||||
},
|
||||
}));
|
||||
}
|
||||
|
||||
async completeHostedCheckout(organizationId: string, planId: MockBillingPlanId): Promise<void> {
|
||||
await this.injectAsyncLatency();
|
||||
this.requireOrganization(organizationId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue