Skip to content

Commit

Permalink
[#23216] yugabyted: Adding a new field ObjectName to model SqlObjectM…
Browse files Browse the repository at this point in the history
…etadata.

Summary:
Addding a new field ObjectName to the model SqlObjectMetadata.
Jira: DB-12159

Test Plan: Manual Tests

Reviewers: djiang

Reviewed By: djiang

Subscribers: yugabyted-dev

Differential Revision: https://phorge.dev.yugabyte.com/D36633
  • Loading branch information
nchandrappa committed Jul 17, 2024
1 parent 1315a10 commit 88e92a0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions yugabyted-ui/apiserver/cmd/server/.docs/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1725,10 +1725,13 @@ components:
description: size, count, iops details of tables and indexes
example:
size: 1
object_name: object_name
sql_type: sql_type
iops: 5
row_count: 6
properties:
object_name:
type: string
sql_type:
type: string
row_count:
Expand All @@ -1747,10 +1750,12 @@ components:
example:
sql_objects_metadata:
- size: 1
object_name: object_name
sql_type: sql_type
iops: 5
row_count: 6
- size: 1
object_name: object_name
sql_type: sql_type
iops: 5
row_count: 6
Expand Down Expand Up @@ -3418,10 +3423,12 @@ components:
data:
sql_objects_metadata:
- size: 1
object_name: object_name
sql_type: sql_type
iops: 5
row_count: 6
- size: 1
object_name: object_name
sql_type: sql_type
iops: 5
row_count: 6
Expand Down
1 change: 1 addition & 0 deletions yugabyted-ui/apiserver/cmd/server/handlers/api_voyager.go
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,7 @@ func getMigrationAssessmentReportFuture(log logger.Logger, migrationUuid string,

sqlMetadataList := []models.SqlObjectMetadata{}
var sqlMetadata1 models.SqlObjectMetadata
sqlMetadata1.ObjectName = "gemoteric_shape"
sqlMetadata1.SqlType = "Table"
sqlMetadata1.RowCount = 1000000
sqlMetadata1.Iops = 1000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package models
// SqlObjectMetadata - size, count, iops details of tables and indexes
type SqlObjectMetadata struct {

ObjectName string `json:"object_name"`

SqlType string `json:"sql_type"`

RowCount int64 `json:"row_count"`
Expand Down
2 changes: 2 additions & 0 deletions yugabyted-ui/apiserver/conf/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,8 @@ components:
description: size, count, iops details of tables and indexes
type: object
properties:
object_name:
type: string
sql_type:
type: string
row_count:
Expand Down
2 changes: 2 additions & 0 deletions yugabyted-ui/apiserver/conf/openapi/schemas/_index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1184,6 +1184,8 @@ SqlObjectMetadata:
description: size, count, iops details of tables and indexes
type: object
properties:
object_name:
type: string
sql_type:
type: string
row_count:
Expand Down

0 comments on commit 88e92a0

Please sign in to comment.