Skip to content

Commit bba42f1

Browse files
scaleway-botyfodil
andauthored
feat(inference): update inference models ordering (#3966)
Co-authored-by: Yacine FODIL <[email protected]>
1 parent 66e00a9 commit bba42f1

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

cmd/scw/testdata/test-all-usage-inference-model-list-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ USAGE:
66
scw inference model list [arg=value ...]
77

88
ARGS:
9-
[order-by] Order in which to return results (created_at_asc | created_at_desc | name_asc | name_desc)
9+
[order-by] Order in which to return results (display_rank_asc | created_at_asc | created_at_desc | name_asc | name_desc)
1010
[project-id] Filter by Project ID
1111
[name] Filter by model name
1212
[tags.{index}] Filter by tags

docs/commands/inference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ scw inference model list [arg=value ...]
367367

368368
| Name | | Description |
369369
|------|---|-------------|
370-
| order-by | One of: `created_at_asc`, `created_at_desc`, `name_asc`, `name_desc` | Order in which to return results |
370+
| order-by | One of: `display_rank_asc`, `created_at_asc`, `created_at_desc`, `name_asc`, `name_desc` | Order in which to return results |
371371
| project-id | | Filter by Project ID |
372372
| name | | Filter by model name |
373373
| tags.{index} | | Filter by tags |

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ require (
2727
github.com/mattn/go-isatty v0.0.20
2828
github.com/moby/buildkit v0.13.2
2929
github.com/opencontainers/go-digest v1.0.0
30-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.28.0.20240705094225-c148d8163353
30+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.28.0.20240708070744-c9ab4e9cb4d7
3131
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
3232
github.com/spf13/cobra v1.8.1
3333
github.com/spf13/pflag v1.0.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
463463
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
464464
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
465465
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
466-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.28.0.20240705094225-c148d8163353 h1:mt4lQcOcN4ceUUqxGm/SyMr3Nu8rdGJ5VxLTybEUyik=
467-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.28.0.20240705094225-c148d8163353/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
466+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.28.0.20240708070744-c9ab4e9cb4d7 h1:OyB7qxaTxyQcmggkyTZBFhbTEHLemVObOY8x+i0+pqc=
467+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.28.0.20240708070744-c9ab4e9cb4d7/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
468468
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
469469
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
470470
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

internal/namespaces/inference/v1beta1/inference_cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ func inferenceModelList() *core.Command {
698698
Required: false,
699699
Deprecated: false,
700700
Positional: false,
701-
EnumValues: []string{"created_at_asc", "created_at_desc", "name_asc", "name_desc"},
701+
EnumValues: []string{"display_rank_asc", "created_at_asc", "created_at_desc", "name_asc", "name_desc"},
702702
},
703703
{
704704
Name: "project-id",

0 commit comments

Comments
 (0)