Skip to content

Commit e6abd6b

Browse files
chore: sync API types from infrastructure (#4561)
* chore: sync API types from infrastructure * chore: update types --------- Co-authored-by: supabase-cli-releaser[bot] <246109035+supabase-cli-releaser[bot]@users.noreply.github.com> Co-authored-by: Qiao Han <qiao@supabase.io>
1 parent 7890b42 commit e6abd6b

File tree

3 files changed

+12
-31
lines changed

3 files changed

+12
-31
lines changed

pkg/api/types.gen.go

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/config/storage.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ func (s *storage) ToUpdateStorageConfigBody() v1API.UpdateStorageConfigBody {
5353
MaxNamespaces int `json:"maxNamespaces"`
5454
MaxTables int `json:"maxTables"`
5555
} `json:"icebergCatalog,omitempty"`
56-
ImageTransformation struct {
56+
ImageTransformation *struct {
5757
Enabled bool `json:"enabled"`
58-
} `json:"imageTransformation"`
59-
S3Protocol struct {
58+
} `json:"imageTransformation,omitempty"`
59+
S3Protocol *struct {
6060
Enabled bool `json:"enabled"`
61-
} `json:"s3Protocol"`
61+
} `json:"s3Protocol,omitempty"`
6262
VectorBuckets *struct {
6363
Enabled bool `json:"enabled"`
6464
MaxBuckets int `json:"maxBuckets"`

pkg/config/updater_test.go

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -223,25 +223,6 @@ func TestUpdateStorageConfig(t *testing.T) {
223223
defer gock.Off()
224224
mockStorage := v1API.StorageConfigResponse{
225225
FileSizeLimit: 100,
226-
Features: struct {
227-
IcebergCatalog *struct {
228-
Enabled bool `json:"enabled"`
229-
MaxCatalogs int `json:"maxCatalogs"`
230-
MaxNamespaces int `json:"maxNamespaces"`
231-
MaxTables int `json:"maxTables"`
232-
} `json:"icebergCatalog,omitempty"`
233-
ImageTransformation struct {
234-
Enabled bool `json:"enabled"`
235-
} `json:"imageTransformation"`
236-
S3Protocol struct {
237-
Enabled bool `json:"enabled"`
238-
} `json:"s3Protocol"`
239-
VectorBuckets *struct {
240-
Enabled bool `json:"enabled"`
241-
MaxBuckets int `json:"maxBuckets"`
242-
MaxIndexes int `json:"maxIndexes"`
243-
} `json:"vectorBuckets,omitempty"`
244-
}{},
245226
}
246227
mockStorage.Features.ImageTransformation.Enabled = true
247228
mockStorage.Features.S3Protocol.Enabled = true

0 commit comments

Comments
 (0)