Skip to content

Commit 2244f86

Browse files
pascalwengerterrhafer
authored andcommitted
feat: always enable favorites, remove FRONTEND_ENABLE_FAVORITES flag
1 parent 627f9a7 commit 2244f86

3 files changed

Lines changed: 1 addition & 3 deletions

File tree

services/frontend/pkg/config/config.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ type Config struct {
2525

2626
SkipUserGroupsInToken bool `yaml:"skip_user_groups_in_token" env:"FRONTEND_SKIP_USER_GROUPS_IN_TOKEN" desc:"Disables the loading of user's group memberships from the reva access token." introductionVersion:"1.0.0"`
2727

28-
EnableFavorites bool `yaml:"enable_favorites" env:"FRONTEND_ENABLE_FAVORITES" desc:"Enables the support for favorites in the clients." introductionVersion:"1.0.0"`
2928
MaxQuota uint64 `yaml:"max_quota" env:"OC_SPACES_MAX_QUOTA;FRONTEND_MAX_QUOTA" desc:"Set the global max quota value in bytes. A value of 0 equals unlimited. The value is provided via capabilities." introductionVersion:"1.0.0"`
3029
UploadMaxChunkSize int `yaml:"upload_max_chunk_size" env:"FRONTEND_UPLOAD_MAX_CHUNK_SIZE" desc:"Sets the max chunk sizes in bytes for uploads via the clients." introductionVersion:"1.0.0"`
3130
UploadHTTPMethodOverride string `yaml:"upload_http_method_override" env:"FRONTEND_UPLOAD_HTTP_METHOD_OVERRIDE" desc:"Advise TUS to replace PATCH requests by POST requests." introductionVersion:"1.0.0"`

services/frontend/pkg/config/defaults/defaultconfig.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ func DefaultConfig() *config.Config {
8181
},
8282
Reva: shared.DefaultRevaConfig(),
8383
PublicURL: "https://localhost:9200",
84-
EnableFavorites: false,
8584
UploadMaxChunkSize: 1e+7,
8685
UploadHTTPMethodOverride: "",
8786
DefaultUploadProtocol: "tus",

services/frontend/pkg/revaconfig/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func FrontendConfigFromStruct(cfg *config.Config, logger log.Logger) (map[string
6363
"tags": true,
6464
"archivers": archivers,
6565
"app_providers": appProviders,
66-
"favorites": cfg.EnableFavorites,
66+
"favorites": true,
6767
"full_text_search": cfg.FullTextSearch,
6868
}
6969

0 commit comments

Comments
 (0)