Skip to content

Commit

Permalink
is: Fix field name
Browse files Browse the repository at this point in the history
  • Loading branch information
ryaplots committed Nov 19, 2024
1 parent 4dbe6c6 commit 6edf47d
Show file tree
Hide file tree
Showing 12 changed files with 466 additions and 467 deletions.
4 changes: 2 additions & 2 deletions api/ttn/lorawan/v3/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -11681,13 +11681,13 @@ SortBy defines the field to which the Console will sort the display of entities.

| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `seen_tutorials` | [`Tutorial`](#ttn.lorawan.v3.Tutorial) | repeated | |
| `seen` | [`Tutorial`](#ttn.lorawan.v3.Tutorial) | repeated | |

#### Field Rules

| Field | Validations |
| ----- | ----------- |
| `seen_tutorials` | <p>`repeated.unique`: `true`</p><p>`repeated.items.enum.defined_only`: `true`</p> |
| `seen` | <p>`repeated.unique`: `true`</p><p>`repeated.items.enum.defined_only`: `true`</p> |

### <a name="ttn.lorawan.v3.UserSession">Message `UserSession`</a>

Expand Down
2 changes: 1 addition & 1 deletion api/ttn/lorawan/v3/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -19013,7 +19013,7 @@
"UserConsolePreferencesTutorials": {
"type": "object",
"properties": {
"seen_tutorials": {
"seen": {
"type": "array",
"items": {
"$ref": "#/definitions/v3Tutorial"
Expand Down
2 changes: 1 addition & 1 deletion api/ttn/lorawan/v3/user.proto
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ message UserConsolePreferences {
SortBy sort_by = 3;

message Tutorials {
repeated Tutorial seen_tutorials = 1 [(validate.rules).repeated = {
repeated Tutorial seen = 1 [(validate.rules).repeated = {
unique: true,
items: {
enum: {defined_only: true}
Expand Down
4 changes: 2 additions & 2 deletions pkg/identityserver/storetest/user_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func (st *StoreTest) TestUserStoreCRUD(t *T) {
ApiKey: ttnpb.DashboardLayout_DASHBOARD_LAYOUT_LIST,
},
Tutorials: &ttnpb.UserConsolePreferences_Tutorials{
SeenTutorials: []ttnpb.Tutorial{ttnpb.Tutorial_TUTORIAL_LIVE_DATA_SPLIT_VIEW},
Seen: []ttnpb.Tutorial{ttnpb.Tutorial_TUTORIAL_LIVE_DATA_SPLIT_VIEW},
},
},
}, mask)
Expand Down Expand Up @@ -252,7 +252,7 @@ func (st *StoreTest) TestUserStoreCRUD(t *T) {
ApiKey: ttnpb.DashboardLayout_DASHBOARD_LAYOUT_LIST,
},
Tutorials: &ttnpb.UserConsolePreferences_Tutorials{
SeenTutorials: []ttnpb.Tutorial{ttnpb.Tutorial_TUTORIAL_LIVE_DATA_SPLIT_VIEW},
Seen: []ttnpb.Tutorial{ttnpb.Tutorial_TUTORIAL_LIVE_DATA_SPLIT_VIEW},
},
},
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/identityserver/user_registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ func TestUsersCRUD(t *testing.T) {
Overview: ttnpb.DashboardLayout_DASHBOARD_LAYOUT_GRID,
},
Tutorials: &ttnpb.UserConsolePreferences_Tutorials{
SeenTutorials: []ttnpb.Tutorial{
Seen: []ttnpb.Tutorial{
ttnpb.Tutorial_TUTORIAL_LIVE_DATA_SPLIT_VIEW,
},
},
Expand Down Expand Up @@ -467,7 +467,7 @@ func TestUsersCRUD(t *testing.T) {
got.ConsolePreferences.GetTutorials(),
should.Resemble,
&ttnpb.UserConsolePreferences_Tutorials{
SeenTutorials: []ttnpb.Tutorial{
Seen: []ttnpb.Tutorial{
ttnpb.Tutorial_TUTORIAL_LIVE_DATA_SPLIT_VIEW,
},
},
Expand Down
859 changes: 429 additions & 430 deletions pkg/ttnpb/user.pb.go

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions pkg/ttnpb/user.pb.paths.fm.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions pkg/ttnpb/user.pb.setters.fm.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions pkg/ttnpb/user.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions pkg/ttnpb/user_json.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions sdk/js/generated/api-definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -7454,7 +7454,7 @@
"console_preferences.sort_by.organization",
"console_preferences.sort_by.user",
"console_preferences.tutorials",
"console_preferences.tutorials.seen_tutorials",
"console_preferences.tutorials.seen",
"contact_info",
"created_at",
"deleted_at",
Expand Down Expand Up @@ -7817,7 +7817,7 @@
"console_preferences.sort_by.organization",
"console_preferences.sort_by.user",
"console_preferences.tutorials",
"console_preferences.tutorials.seen_tutorials",
"console_preferences.tutorials.seen",
"contact_info",
"created_at",
"deleted_at",
Expand Down Expand Up @@ -7874,7 +7874,7 @@
"console_preferences.sort_by.organization",
"console_preferences.sort_by.user",
"console_preferences.tutorials",
"console_preferences.tutorials.seen_tutorials",
"console_preferences.tutorials.seen",
"contact_info",
"created_at",
"deleted_at",
Expand Down Expand Up @@ -7934,7 +7934,7 @@
"console_preferences.sort_by.organization",
"console_preferences.sort_by.user",
"console_preferences.tutorials",
"console_preferences.tutorials.seen_tutorials",
"console_preferences.tutorials.seen",
"contact_info",
"created_at",
"deleted_at",
Expand Down
2 changes: 1 addition & 1 deletion sdk/js/generated/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -54549,7 +54549,7 @@
"extensions": [],
"fields": [
{
"name": "seen_tutorials",
"name": "seen",
"description": "",
"label": "repeated",
"type": "Tutorial",
Expand Down

0 comments on commit 6edf47d

Please sign in to comment.