generated from TrueCloudLab/basic
[#3] policy: Introduce policy contract interface wrapper #24
No reviewers
TrueCloudLab/storage-services-developers
TrueCloudLab/storage-core-developers
Labels
No labels
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/policy-engine#24
Loading…
Reference in a new issue
No description provided.
Delete branch "aarifullin/policy-engine:feature/3_policy-contract-interface"
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?
Signed-off-by: Airat Arifullin aarifullin@yadro.com
@ -0,0 +44,4 @@
}
fullName := prefixedChainName(name, c.ID)
_, _, err = s.contractInterface.AddChain(big.NewInt(int64(kind)), target.Name, fullName, c.Bytes())
@fyrchik
Need your help, please
Despite this implementation works in
frostfs-node
(I checked locally), I think it is still raw.There are some problems like should I return
transactionHash
andVUB
from these invocations and consider them forawaitTx
usage outside?Returning hash and VUB is desireable, but I believe we could use some callbacks in actor to catch them.
3699774a4f
tof5f0374ecd
f5f0374ecd
to05ee9b2394
05ee9b2394
to8d0e4ed3f7
8d0e4ed3f7
to501c430225
[#3] policy: Introduce policy contract interface wrapperto WIP: [#3] policy: Introduce policy contract interface wrapper501c430225
toed87e82b5b
WIP: [#3] policy: Introduce policy contract interface wrapperto [#3] policy: Introduce policy contract interface wrapper@ -4,2 +4,3 @@
require github.com/stretchr/testify v1.8.4
require (
git.frostfs.info/TrueCloudLab/frostfs-contract v0.18.1-0.20231124073422-e56e8d02eee3
Can we user the latest version? We have different method signature now
(name is
[]byte
func AddChain(entity Kind, entityName string, name []byte, chain []byte) {
)
Ofc, thanks for this point
ed87e82b5b
to87210589f1
@ -6,0 +9,4 @@
github.com/stretchr/testify v1.8.4
)
require (
Can we keep just one require section with indirect dependencies?
Sure!
87210589f1
to5f7b8458ba
5f7b8458ba
to1dea2d26e2
@ -0,0 +127,4 @@
if err != nil {
return nil, fmt.Errorf("can't parse integer bytes: %w", err)
}
return n.Bytes(), nil
This is invalid approach,
n.Bytes()
has different encodingTryBytes
is enough, irregardless of type (it will work for integer too).Alright. I have fixed.
This was copy-pasta from here
1dea2d26e2
to156018bcba