Skip to content

Commit

Permalink
fix: Add default Order key for RunsetSettings #23
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtruong authored Jul 8, 2024
1 parent f044ee3 commit e5e4f7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wandb_workspaces/workspaces/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ class RunsetSettings(Base):
groupby: LList[expr.MetricType] = Field(default_factory=list)
"A list of metrics to group by in the runset."

order: LList[expr.Ordering] = Field(default_factory=list)
order: LList[expr.Ordering] = Field(default_factory=lambda: [expr.Ordering(expr.Metric("CreatedTimestamp"), ascending=False)])
"A list of metrics and ordering to apply to the runset."

run_settings: Dict[str, RunSettings] = Field(default_factory=dict)
Expand Down

0 comments on commit e5e4f7f

Please sign in to comment.