-
Notifications
You must be signed in to change notification settings - Fork 279
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
[feature] #2257: Revoke<Role> emits RoleRevoked event #2264
[feature] #2257: Revoke<Role> emits RoleRevoked event #2264
Conversation
Codecov Report
@@ Coverage Diff @@
## iroha2-dev #2264 +/- ##
==============================================
- Coverage 64.67% 64.66% -0.02%
==============================================
Files 131 131
Lines 24664 24666 +2
==============================================
- Hits 15952 15950 -2
- Misses 8712 8716 +4
Continue to review full report at Codecov.
|
Signed-off-by: omkar-mohanty <franzohouser@gmail.com>
f875ba8
to
9ea6d33
Compare
OK. At this point the implementation of a new event seems to be complete. @omkar-mohanty The remaining question is that of semantics. If we merge as is, an account can lose a permission that's included in a role and event listeners that look for the permission being removed will not be notified. To me this seems like it would complicate things for trigger designers. What I want, is for event listeners that look for This would also require a test, but I think we can handle that. |
I stumbled upon |
I have decided that implementing changes to the event listeners is beyond the scope of my work. As such this PR is complete. |
Hello maintainers I have addressed the issue in #2257 which was originally from #2007 by adding |
For the event processing issue I have created #2280 |
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.
For symmetry we also need something like RoleGranted
for PermissionAdded
cf7aa94
to
a19061c
Compare
Signed-off-by: omkar-mohanty <franzohouser@gmail.com>
a19061c
to
309b1e9
Compare
hyperledger-iroha#2264) Signed-off-by: omkar-mohanty <franzohouser@gmail.com> Signed-off-by: BAStos525 <jungle.vas@yandex.ru>
Description of the Change
This PR makes
Revoke
role emitRoleRevoked
instead ofPermission
event.Issue
Revoke
role emitsPermission
events which is a misleading since roles are a collection of permission events.Benefits
More accurate information about the user.
Possible Drawbacks
Not sure about drawbacks because I am new to the codebase.