Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport Disable versioning #4743

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog/unreleased/expose-disable-versioning.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Enhancement: Expose disable-versioning configuration option

This PR exposes the disable-versioning configuration option to the user. This option allows the user to disable versioning for the storage-providers.

https://github.com/cs3org/reva/pull/4742
9 changes: 5 additions & 4 deletions pkg/storage/utils/decomposedfs/decomposedfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,11 @@
}

aspects := aspects.Aspects{
Lookup: lu,
Tree: tp,
Permissions: permissions.NewPermissions(node.NewPermissions(lu), permissionsSelector),
EventStream: es,
Lookup: lu,
Tree: tp,
Permissions: permissions.NewPermissions(node.NewPermissions(lu), permissionsSelector),
EventStream: es,
DisableVersioning: o.DisableVersioning,

Check failure on line 158 in pkg/storage/utils/decomposedfs/decomposedfs.go

View workflow job for this annotation

GitHub Actions / lint

unknown field DisableVersioning in struct literal of type aspects.Aspects) (typecheck)

Check failure on line 158 in pkg/storage/utils/decomposedfs/decomposedfs.go

View workflow job for this annotation

GitHub Actions / lint

unknown field DisableVersioning in struct literal of type aspects.Aspects) (typecheck)

Check failure on line 158 in pkg/storage/utils/decomposedfs/decomposedfs.go

View workflow job for this annotation

GitHub Actions / lint

unknown field DisableVersioning in struct literal of type aspects.Aspects) (typecheck)

Check failure on line 158 in pkg/storage/utils/decomposedfs/decomposedfs.go

View workflow job for this annotation

GitHub Actions / lint

unknown field DisableVersioning in struct literal of type aspects.Aspects (typecheck)

Check failure on line 158 in pkg/storage/utils/decomposedfs/decomposedfs.go

View workflow job for this annotation

GitHub Actions / lint

unknown field DisableVersioning in struct literal of type aspects.Aspects) (typecheck)
}

return New(o, aspects)
Expand Down
2 changes: 2 additions & 0 deletions pkg/storage/utils/decomposedfs/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ type Options struct {
MaxConcurrency int `mapstructure:"max_concurrency"`

MaxQuota uint64 `mapstructure:"max_quota"`

DisableVersioning bool `mapstructure:"disable_versioning"`
}

// AsyncPropagatorOptions holds the configuration for the async propagator
Expand Down
Loading