-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: remove domain from trigger identity #4640
refactor: remove domain from trigger identity #4640
Conversation
UPD: to fix this, the default executor has to be updated (see the pre-commit hook) I'm having a bad time with integration tests, many of which are failing with a cryptic error, even those unrelated to triggers:
|
8f9a95a
to
df752c0
Compare
DomainId
from TriggerId
df752c0
to
17c6ee1
Compare
17c6ee1
to
fedd97c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ping for approval after executor recompile
c21b754
to
99b5d99
Compare
5813e50
to
62c21ec
Compare
You're right, I forgot about the validator visitors. |
Yea, I've made this validation. ref. There are only 3 scenarios when a trigger can be registered:
|
There is a mess with authorities ))) It's possible only if account that registers trigger has an appropriate permission.
Sound good! But not here |
There is no need to complicate a |
I agree that there is no need to complicate |
How should a trigger be unregistered when its action's authority or domain gets unregistered? What if someone unregisters an account that was the authority for a trigger, yet the one unregistering the account doesn't have the authority to unregister the trigger? And should unregistering those orphaned triggers emit events as if Did some digging on how orphan accounts have been handled so far. When a domain is removed, its accounts and asset definitions are removed naturally because they are stored inside the domain, but triggers are stored separately, yet are associated with accounts. |
I'd suggest to have a reference between an account and the triggers for which the account is the authority. Thus deleting all associated triggers on the account unregistering. Basically this way a trigger nesting would migrate from a domain to an account. |
61c6888
to
61095b6
Compare
61095b6
to
57593d7
Compare
Speaking of preventing orphaned triggers, I guess trigger will be able to be identified as an account. This can be applied to cases where the registrant is not necessarily superior to the trigger authority. It would be common for contract proposer to be subject to the contract. See #4670 EDIT: created #4672 for orphaned entities in general |
@nxsaken can you add a mechanism to remove all triggers owned by an account on |
@nxsaken rebase and ping for approval |
4301a13
to
b6918ba
Compare
Signed-off-by: Nurzhan Sakén <[email protected]>
Signed-off-by: Nurzhan Sakén <[email protected]>
Signed-off-by: Nurzhan Sakén <[email protected]>
Signed-off-by: Nurzhan Sakén <[email protected]>
b6918ba
to
49369de
Compare
Description
Remove
DomainId
fromTriggerId
.Linked issue
Closes #4630.
Checklist
CONTRIBUTING.md