Skip to content

Commit

Permalink
Fixed the order of runs
Browse files Browse the repository at this point in the history
Signed-off-by: Rashida Kanchwala <[email protected]>
  • Loading branch information
rashidakanchwala committed Jan 10, 2022
1 parent bcaa303 commit abe6d54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Please follow the established format:
- Include the ID number for the related PR (or PRs) in parentheses
-->

## Bug fixes and other changes

- Fix the order of the runs list in experiment tracking. (#691)

# Release 4.2.0

## Major features and improvements
Expand Down
2 changes: 1 addition & 1 deletion package/kedro_viz/api/graphql.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def get_all_runs() -> List[Run]:
session = data_access_manager.db_session
if not session:
return runs
for run_data in session.query(RunModel).all():
for run_data in session.query(RunModel).order_by(RunModel.id.desc()).all():
run = format_run(run_data.id, json.loads(run_data.blob))
runs.append(run)
return runs
Expand Down

0 comments on commit abe6d54

Please sign in to comment.