-
Notifications
You must be signed in to change notification settings - Fork 2
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
Deletion hook support #10
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #10 +/- ##
========================================
Coverage 0.00% 0.00%
Complexity 28 28
========================================
Files 1 3 +2
Lines 128 152 +24
========================================
- Misses 128 152 +24 ☔ View full report in Codecov by Sentry. |
Thanks for your PR. Can you please make sure, that the tests are passing. |
According to https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/docs/technical/hooks/hook.sqlstore.afterdataupdatecomplete.md, the "AfterDataUpdateComplete" should "identify entities that have been added/removed during the update". I'm wondering if on delete, the existing hook wouldn't already work. |
Support data update trigger upon articles deletion
Changes hook to onPageDelete because there is already no data by the time SMW::SQLStore::BeforeDeleteSubjectComplete fires.
Hi, I manually rebased this change on the master branch, and my colleagues have said that it works well. The PR looks simpler with |
@gesinn-it-gea Can you review this please? Is it still needed? |
@gesinn-it-gea the Although, you're right that we don't need a separate hook to handle the deletion and it's possible to rewrite the existing hook to make use of the I'll try to follow up with a patch rewrite |
Support data update trigger upon articles deletion