Skip to content

Commit 9f12b3a

Browse files
committed
remove priciple
1 parent b63e1bb commit 9f12b3a

File tree

1 file changed

+0
-12
lines changed
  • src/mcp_agent/cli/cloud/commands/workflows/runs

1 file changed

+0
-12
lines changed

src/mcp_agent/cli/cloud/commands/workflows/runs/main.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ async def _list_workflow_runs_async(
6969
if not workflows_data:
7070
workflows_data = []
7171

72-
# Apply filtering
7372
workflows = workflows_data
7473
if status:
7574
status_filter = _get_status_filter(status)
@@ -172,33 +171,27 @@ def _print_workflows_text(workflows, status_filter, server_id_or_url):
172171
table.add_column("Status", style="yellow", width=15)
173172
table.add_column("Run ID", style="dim", width=15)
174173
table.add_column("Created", style="dim", width=20)
175-
table.add_column("Principal", style="dim", width=15)
176174

177175
for workflow in workflows:
178-
# Handle both dict and object formats
179176
if isinstance(workflow, dict):
180177
workflow_id = workflow.get("workflow_id", "N/A")
181178
name = workflow.get("name", "N/A")
182179
execution_status = workflow.get("execution_status", "N/A")
183180
run_id = workflow.get("run_id", "N/A")
184181
created_at = workflow.get("created_at", "N/A")
185-
principal_id = workflow.get("principal_id", "N/A")
186182
else:
187183
workflow_id = getattr(workflow, "workflow_id", "N/A")
188184
name = getattr(workflow, "name", "N/A")
189185
execution_status = getattr(workflow, "execution_status", "N/A")
190186
run_id = getattr(workflow, "run_id", "N/A")
191187
created_at = getattr(workflow, "created_at", "N/A")
192-
principal_id = getattr(workflow, "principal_id", "N/A")
193188

194189
status_display = _get_status_display(execution_status)
195190

196-
# Handle created_at formatting
197191
if created_at and created_at != "N/A":
198192
if hasattr(created_at, "strftime"):
199193
created_display = created_at.strftime("%Y-%m-%d %H:%M:%S")
200194
else:
201-
# Try to parse ISO string
202195
try:
203196
from datetime import datetime
204197
dt = datetime.fromisoformat(str(created_at).replace("Z", "+00:00"))
@@ -216,7 +209,6 @@ def _print_workflows_text(workflows, status_filter, server_id_or_url):
216209
status_display,
217210
run_id_display,
218211
created_display,
219-
_truncate_string(str(principal_id) if principal_id else "N/A", 15),
220212
)
221213

222214
console.print(table)
@@ -239,17 +231,14 @@ def _print_workflows_yaml(workflows):
239231

240232
def _workflow_to_dict(workflow):
241233
"""Convert workflow dict to standardized dictionary format."""
242-
# If it's already a dict, just return it
243234
if isinstance(workflow, dict):
244235
return workflow
245236

246-
# Otherwise convert from object attributes
247237
return {
248238
"workflow_id": getattr(workflow, "workflow_id", None),
249239
"run_id": getattr(workflow, "run_id", None),
250240
"name": getattr(workflow, "name", None),
251241
"created_at": getattr(workflow, "created_at", None).isoformat() if getattr(workflow, "created_at", None) else None,
252-
"principal_id": getattr(workflow, "principal_id", None),
253242
"execution_status": getattr(workflow, "execution_status", None).value if getattr(workflow, "execution_status", None) else None,
254243
}
255244

@@ -266,7 +255,6 @@ def _get_status_display(status):
266255
if not status:
267256
return "❓ Unknown"
268257

269-
# Convert to string for comparison
270258
status_str = str(status).lower()
271259

272260
if "running" in status_str:

0 commit comments

Comments
 (0)