control: Recieve target in gRPC methods for APE managing #842
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#842
Loading…
Reference in a new issue
No description provided.
Delete branch "aarifullin/frostfs-node:feature/chain_control_api"
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?
for APE chain managing instead CID
instead container ID.
1f2e3e067f
to9af58a9b31
[#XX] control: Recieve target in gRPC methods for APE managingto control: Recieve target in gRPC methods for APE managing@ -22,2 +42,2 @@
var cid cid.ID
err := cid.Decode(req.GetBody().GetContainerId())
target := req.GetBody().GetTarget()
if target.Type != control.ChainTarget_CONTAINER {
Why do we require exactly container target (what about namespace)?
As you can see here is deprecated prototype of APE used. This check will be fixe here but we need this PR #842 first.
Briefly: the current implementation works with containers only but this will become unactual in #820
7ab1921c6a
tof7575437f8
@ -15,2 +16,4 @@
)
// extractCID extracts CID from the schema's pattern.
// TODO (aarifullin): This is temporary solution should be replaced by
Do we have a task for this? Refs #847 @dstepanov-yadro
I am going to erase this method and
TODO
here. So, as soon as this PR will be merged!This method is needed because frostfs-node still uses deprecated APE version
@ -172,0 +175,4 @@
// are applied.
message ChainTarget {
enum TargetType {
NAMESPACE = 0;
Maybe use some
undefined
as default= 0
? The parameter is mandatoryIntroduced
Undefined
numberf7575437f8
toec747c217c