Skip to content

Commit

Permalink
feat(model): add order_by field for list model endpoints (#186)
Browse files Browse the repository at this point in the history
Because

- Model hub page support `order_by` option
- Model banner needs to show latest model state

This commit

- add `order_by` input query string
- add watch latest model endpoints

resolves INS-4774
  • Loading branch information
heiruwu authored May 28, 2024
1 parent bbf250d commit 7486703
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions config/settings-env/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -1352,6 +1352,7 @@
"page_token",
"visibility",
"filter",
"order_by",
"show_deleted"
]
},
Expand All @@ -1375,6 +1376,7 @@
"page_token",
"visibility",
"filter",
"order_by",
"show_deleted"
]
},
Expand Down Expand Up @@ -1534,6 +1536,7 @@
"page_token",
"visibility",
"filter",
"order_by",
"show_deleted"
]
},
Expand Down Expand Up @@ -1842,6 +1845,12 @@
"method": "POST",
"timeout": "5s"
},
{
"endpoint": "/model.model.v1alpha.ModelPublicService/WatchUserLatestModel",
"url_pattern": "/model.model.v1alpha.ModelPublicService/WatchUserLatestModel",
"method": "POST",
"timeout": "5s"
},
{
"endpoint": "/model.model.v1alpha.ModelPublicService/TriggerUserModel",
"url_pattern": "/model.model.v1alpha.ModelPublicService/TriggerUserModel",
Expand Down Expand Up @@ -1956,6 +1965,12 @@
"method": "POST",
"timeout": "5s"
},
{
"endpoint": "/model.model.v1alpha.ModelPublicService/WatchOrganizationLatestModel",
"url_pattern": "/model.model.v1alpha.ModelPublicService/WatchOrganizationLatestModel",
"method": "POST",
"timeout": "5s"
},
{
"endpoint": "/model.model.v1alpha.ModelPublicService/TriggerOrganizationModel",
"url_pattern": "/model.model.v1alpha.ModelPublicService/TriggerOrganizationModel",
Expand Down

0 comments on commit 7486703

Please sign in to comment.