Skip to content

Commit e3405ad

Browse files
committed
Make ordering more deterministic in transcripts
1 parent 4e8fa57 commit e3405ad

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

share-api/src/Share/Postgres/Queries.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ searchProjects caller userIdFilter (Query query) psk limit = do
159159
FROM projects_by_user_permission(#{caller}, #{ProjectView}) p
160160
JOIN users owner ON p.owner_user_id = owner.id
161161
WHERE p.owner_user_id = #{userId}
162-
ORDER BY p.created_at DESC
162+
ORDER BY p.created_at, p.slug DESC
163163
LIMIT #{limit}
164164
|]
165165
_ -> do

transcripts/share-apis/projects-flow/out/project-list.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"name": "The Transcript User",
1010
"type": "user"
1111
},
12-
"slug": "containers",
13-
"summary": "This is my project",
12+
"slug": "transcriptproject",
13+
"summary": null,
1414
"tags": [],
1515
"updatedAt": "<TIMESTAMP>",
1616
"visibility": "private"
@@ -24,8 +24,8 @@
2424
"name": "The Transcript User",
2525
"type": "user"
2626
},
27-
"slug": "transcriptproject",
28-
"summary": null,
27+
"slug": "containers",
28+
"summary": "This is my project",
2929
"tags": [],
3030
"updatedAt": "<TIMESTAMP>",
3131
"visibility": "private"

0 commit comments

Comments
 (0)