Skip to content

Commit efd776c

Browse files
committed
Remove redundant fields.
1 parent 2498eb2 commit efd776c

5 files changed

Lines changed: 0 additions & 18 deletions

File tree

internal/connector/internal/api/dbapi/processor.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ type Processor struct {
4848
Channel string
4949
DesiredState ProcessorDesiredState
5050
Owner string
51-
CloudProvider string
52-
Region string
53-
MultiAZ bool
5451
OrganisationId string
5552
Version int64 `gorm:"type:bigserial;index"`
5653
Annotations []ProcessorAnnotation `gorm:"foreignKey:ProcessorID;references:ID"`

internal/connector/internal/handlers/processors_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,9 +1047,6 @@ func mockProcessorWithConditions(params map[string]interface{}) *dbapi.Processor
10471047
UpdatedAt: time.Time{},
10481048
DeletedAt: gorm.DeletedAt{},
10491049
},
1050-
CloudProvider: "",
1051-
Region: "",
1052-
MultiAZ: false,
10531050
Owner: "",
10541051
OrganisationId: "",
10551052
Version: 0,

internal/connector/internal/migrations/202302030000_add_processor_tables.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ func addProcessorTables(migrationId string) *gormigrate.Migration {
4949
Channel string
5050
DesiredState ProcessorDesiredState
5151
Owner string
52-
CloudProvider string
53-
Region string
54-
MultiAZ bool
5552
OrganisationId string
5653
Version int64 `gorm:"type:bigserial;index"`
5754
Annotations []ProcessorAnnotation `gorm:"foreignKey:ProcessorID;references:ID"`

internal/connector/internal/presenters/processor_deployment_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ func Test_PresentProcessorDeployment(t *testing.T) {
3232
Channel: "stable",
3333
DesiredState: "ready",
3434
Owner: "owner",
35-
CloudProvider: "cloud_provider",
36-
Region: "region",
37-
MultiAZ: false,
3835
OrganisationId: "organisation_id",
3936
Version: 1,
4037
Annotations: []dbapi.ProcessorAnnotation{{

internal/connector/internal/presenters/processor_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,6 @@ func Test_PresentProcessor(t *testing.T) {
110110
Channel: "stable",
111111
DesiredState: "ready",
112112
Owner: "owner",
113-
CloudProvider: "cloud_provider",
114-
Region: "region",
115-
MultiAZ: false,
116113
OrganisationId: "organisation_id",
117114
Version: 1,
118115
Annotations: []dbapi.ProcessorAnnotation{{
@@ -185,9 +182,6 @@ func Test_PresentProcessorWithError(t *testing.T) {
185182
Channel: "stable",
186183
DesiredState: "ready",
187184
Owner: "owner",
188-
CloudProvider: "cloud_provider",
189-
Region: "region",
190-
MultiAZ: false,
191185
OrganisationId: "organisation_id",
192186
Version: 1,
193187
Annotations: []dbapi.ProcessorAnnotation{{

0 commit comments

Comments
 (0)