nns: Add notification sending #109

Merged
fyrchik merged 1 commit from achuprov/frostfs-contract:feat/add_nnsNotification into master 2024-09-09 06:24:55 +00:00
Member

Signed-off-by: Alexander Chuprov a.chuprov@yadro.com

Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
achuprov added 1 commit 2024-09-05 15:14:24 +00:00
[#109] nns: Add notification sending
Some checks failed
DCO action / DCO (pull_request) Successful in 41s
Tests / Tests (pull_request) Failing after 1m0s
96c019ffd8
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
achuprov force-pushed feat/add_nnsNotification from 96c019ffd8 to fbb5b41f26 2024-09-05 15:17:29 +00:00 Compare
achuprov requested review from storage-core-committers 2024-09-06 09:00:28 +00:00
achuprov requested review from storage-core-developers 2024-09-06 09:00:29 +00:00
dstepanov-yadro approved these changes 2024-09-06 10:32:37 +00:00
Dismissed
fyrchik requested changes 2024-09-06 12:29:57 +00:00
Dismissed
@ -339,1 +339,3 @@
return register(ctx, name, owner, email, refresh, retry, expire, ttl)
st := register(ctx, name, owner, email, refresh, retry, expire, ttl)
if st == true {
runtime.Notify("RegisterDomain", name)
Owner

If contract provides notification, they should happen on every register, not just the one invoked by user (inside register())

If contract provides notification, they should happen on every register, not just the one invoked by user (inside `register()`)
Author
Member

This can disrupt the order of sending already existing notifications

This can disrupt the order of sending already existing notifications
Author
Member

fixed

fixed
fyrchik marked this conversation as resolved
achuprov force-pushed feat/add_nnsNotification from fbb5b41f26 to 46407fbd3e 2024-09-06 13:37:43 +00:00 Compare
achuprov dismissed dstepanov-yadro's review 2024-09-06 13:37:43 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

acid-ant reviewed 2024-09-09 06:14:16 +00:00
@ -359,0 +432,4 @@
err error
)
index++
e.Name, err = func(item stackitem.Item) (string, error) {
Member

Why we need func here?

Why we need `func` here?
Owner

It is automatically generated code, makes it easier to generate

It is automatically generated code, makes it easier to generate
Member

Oops.

Oops.
acid-ant marked this conversation as resolved
fyrchik approved these changes 2024-09-09 06:16:16 +00:00
acid-ant reviewed 2024-09-09 06:20:04 +00:00
acid-ant approved these changes 2024-09-09 06:22:30 +00:00
fyrchik merged commit 82641e2e99 into master 2024-09-09 06:24:55 +00:00
fyrchik referenced this pull request from a commit 2024-09-09 06:24:57 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-core-developers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-contract#109
No description provided.