File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -4825,6 +4825,9 @@ components:
4825
4825
type : boolean
4826
4826
starred :
4827
4827
type : boolean
4828
+ edited_at :
4829
+ type : string
4830
+ format : date-time
4828
4831
execution_mode :
4829
4832
type : string
4830
4833
enum : [viewer, publisher, anonymous]
Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ async fn list_apps(
132
132
"summary" ,
133
133
"versions[array_upper(versions, 1)] as version" ,
134
134
"policy->>'execution_mode' as execution_mode" ,
135
+ "app_version.created_at as edited_at" ,
135
136
"extra_perms" ,
136
137
"favorite.path IS NOT NULL as starred" ,
137
138
] )
@@ -141,9 +142,14 @@ async fn list_apps(
141
142
"favorite.favorite_kind = 'app' AND favorite.workspace_id = app.workspace_id AND favorite.path = app.path AND favorite.usr = ?"
142
143
. bind ( & authed. username ) ,
143
144
)
145
+ . left ( )
146
+ . join ( "app_version" )
147
+ . on (
148
+ "app_version.id = versions[array_upper(versions, 1)]"
149
+ )
144
150
. order_desc ( "favorite.path IS NOT NULL" )
145
- . order_by ( "path " , true )
146
- . and_where ( "workspace_id = ?" . bind ( & w_id) )
151
+ . order_by ( "app_version.created_at " , true )
152
+ . and_where ( "app. workspace_id = ? OR app.workspace_id = 'starter' " . bind ( & w_id) )
147
153
. offset ( offset)
148
154
. limit ( per_page)
149
155
. clone ( ) ;
You can’t perform that action at this time.
0 commit comments