mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
improvement(api-keys): move to workspace level (#1765)
* fix(billing): should allow restoring subscription (#1728) * fix(already-cancelled-sub): UI should allow restoring subscription * restore functionality fixed * fix * improvement(api-keys): move to workspace level * remove migration to prep merge * remove two more unused cols * prep staging merge * add migration back --------- Co-authored-by: Waleed <walif6@gmail.com> Co-authored-by: Siddharth Ganesan <33737564+Sg312@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
c99bb0aaa2
commit
fe9ebbf81b
@@ -158,7 +158,6 @@ class WorkflowExecutionResult:
|
||||
class WorkflowStatus:
|
||||
is_deployed: bool
|
||||
deployed_at: Optional[str] = None
|
||||
is_published: bool = False
|
||||
needs_redeployment: bool = False
|
||||
```
|
||||
|
||||
|
||||
@@ -77,7 +77,6 @@ def status_example():
|
||||
status = client.get_workflow_status("your-workflow-id")
|
||||
print(f"Status: {{\n"
|
||||
f" deployed: {status.is_deployed},\n"
|
||||
f" published: {status.is_published},\n"
|
||||
f" needs_redeployment: {status.needs_redeployment},\n"
|
||||
f" deployed_at: {status.deployed_at}\n"
|
||||
f"}}")
|
||||
|
||||
@@ -42,7 +42,6 @@ class WorkflowStatus:
|
||||
"""Status of a workflow."""
|
||||
is_deployed: bool
|
||||
deployed_at: Optional[str] = None
|
||||
is_published: bool = False
|
||||
needs_redeployment: bool = False
|
||||
|
||||
|
||||
@@ -296,7 +295,6 @@ class SimStudioClient:
|
||||
return WorkflowStatus(
|
||||
is_deployed=status_data.get('isDeployed', False),
|
||||
deployed_at=status_data.get('deployedAt'),
|
||||
is_published=status_data.get('isPublished', False),
|
||||
needs_redeployment=status_data.get('needsRedeployment', False)
|
||||
)
|
||||
|
||||
|
||||
@@ -79,12 +79,10 @@ def test_workflow_status():
|
||||
status = WorkflowStatus(
|
||||
is_deployed=True,
|
||||
deployed_at="2023-01-01T00:00:00Z",
|
||||
is_published=False,
|
||||
needs_redeployment=False
|
||||
)
|
||||
assert status.is_deployed is True
|
||||
assert status.deployed_at == "2023-01-01T00:00:00Z"
|
||||
assert status.is_published is False
|
||||
assert status.needs_redeployment is False
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user