mirror of
https://github.com/nspcc-dev/neofs-s3-gw.git
synced 2026-03-01 04:29:15 +00:00
Refactor storing of versioning setting in the tree service #273
Labels
No labels
I2
I2
I3
I4
S2
S3
S4
S4
U0
U1
U2
U2
U3
U4
U4
auth-mate
blocked
bug
config
dependencies
discussion
documentation
enhancement
epic
feature
go
good first issue
help wanted
performance
question
security
test
tree-service
tree-service
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-s3-gw#273
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @masterSplinter01 on GitHub (Jul 4, 2022).
Originally assigned to: @masterSplinter01 on GitHub.
Now we store versioning settings as two bools:
https://github.com/nspcc-dev/neofs-s3-gw/blob/master/api/data/info.go#L48
IsNoneStatus= true,VersioningEnabled= false -- unversioned (if a tree node has not been created)IsNoneStatus= false,VersioningEnabled= false -- suspendedIsNoneStatus= false,VersioningEnabled= true -- versionedIsNoneStatus= true,VersioningEnabled= true -- is not possibleMaybe we can store it as a string
Unversioned,Versioned,Suspendedor as int (lineenum: 0 =Unversioned, 1 =Versioned, 2 =Suspended).It will make code simpler.
BUT it breaks backward compatibility.
@alexvanin commented on GitHub (Jul 7, 2022):
Blocked the same as https://github.com/nspcc-dev/neofs-s3-gw/issues/533#issuecomment-1157524328
@alexvanin commented on GitHub (Jul 18, 2022):
I think it is time to do that according to https://github.com/nspcc-dev/neofs-s3-gw/pull/536#issuecomment-1186941185
@alexvanin commented on GitHub (Jul 27, 2022):
Closed in #599