Adding API for getting chains by chain_id #1195
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 project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1195
Loading…
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?
Is your feature request related to a problem? Please describe.
At the moment, the only way to scroll through the created chains is to know the target values (ListChainLocalOverrides and GetChainLocalOverride). There are applications that do not track the content of the target, but use well-known chain_id to identify their rules.
Describe the solution you'd like
It would be great if an API appeared that would either allow you to get all the chains by chain_id, or just get all the chains that would be grouped by target type and target value.
@aarifullin do we allow using same chain_id for chains in different targets?
Yes, as far as I remember - we agreed about that.
I presume we need to slightly change schema for list method making
Chain target
asoptional
(if no definite target is set - list all chains for all targets) and introducing filterchain_id
that can be used with wildcardchainNameB*
. The result should be grouped by targetsBTW, searching for a chain with a certain chain id is real but this requires 3 steps. @r.loginov would like to have one-run request to find a chain
in protobuf 3 all fields are optional, there is no need to change schema because of this
However, we return only chain, not the chain target, so we might want to change the response.