-
Notifications
You must be signed in to change notification settings - Fork 244
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
feat: implement before event for asset policy contract definition in their listeners #4035
Conversation
… in their corresponding listener classes
… in their corresponding listener classes
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #4035 +/- ##
===========================================
- Coverage 71.74% 19.09% -52.65%
===========================================
Files 919 994 +75
Lines 18457 20120 +1663
Branches 1037 1126 +89
===========================================
- Hits 13242 3842 -9400
- Misses 4756 16165 +11409
+ Partials 459 113 -346 ☔ View full report in Codecov by Sentry. |
This pull request is stale because it has been open for 7 days with no activity. |
This pull request was closed because it has been inactive for 7 days since being marked as stale. |
What this PR changes/adds
With this change now beforeCreate and beforeUpdate event will be triggered for asset, policy, contract definition entities.
This event will be triggereed before entities gets saved to database.
Why it does that
Currently we have only event which gets triggered after CUD operation successfully performed on databse.
In some scenario it might be necessary to make changes before create or update operation performed on database.
Further notes
In asset, policy and contract definition Listener classes add beforeUpdate and beforeCreate event.
This will triggerred in corresponding service implementation class method create, update before performing DB operation
Linked Issue(s)
Closes #4006
Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.