Skip to content
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

Plugin is unable to cleanup after journal is removed #68

Closed
jonasraoni opened this issue Feb 21, 2023 · 0 comments · Fixed by #73 or #74
Closed

Plugin is unable to cleanup after journal is removed #68

jonasraoni opened this issue Feb 21, 2023 · 0 comments · Fixed by #73 or #74
Assignees
Labels
bug Something isn't working Bug:1:Low
Milestone

Comments

@jonasraoni
Copy link
Collaborator

There's some code to cleanup data here:

HookRegistry::register('JournalDAO::deleteJournalById', array($this, 'callbackDeleteJournalById'));

But it depends on a non-existent hook, and at the administrative part (/admin/contexts) where the journal is supposed to be removed, standard plugins are not loaded, so there's no way to listen for the right hook (Context::delete).

The cleanup might be done inside the scheduled task.
Another possibility would be to investigate the behavior of enabling the "site-wide" setting, which would be the only way to get the plugin loaded at the right time.

@jonasraoni jonasraoni added bug Something isn't working Bug:1:Low labels Feb 21, 2023
@jonasraoni jonasraoni added this to the 2.0.4-3 milestone Feb 21, 2023
@jonasraoni jonasraoni self-assigned this Feb 21, 2023
@jonasraoni jonasraoni moved this from Backlog to Under Development in Plugins and Themes Feb 22, 2023
jonasraoni added a commit to jonasraoni/pln that referenced this issue Feb 23, 2023
jonasraoni added a commit to jonasraoni/pln that referenced this issue Feb 23, 2023
jonasraoni added a commit to jonasraoni/pln that referenced this issue Feb 23, 2023
jonasraoni added a commit to jonasraoni/pln that referenced this issue Feb 23, 2023
jonasraoni added a commit to jonasraoni/pln that referenced this issue Feb 23, 2023
jonasraoni added a commit to jonasraoni/pln that referenced this issue Feb 23, 2023
jonasraoni added a commit to jonasraoni/pln that referenced this issue Feb 23, 2023
jonasraoni added a commit to jonasraoni/pln that referenced this issue Feb 23, 2023
jonasraoni added a commit to jonasraoni/pln that referenced this issue Feb 23, 2023
jonasraoni added a commit to jonasraoni/pln that referenced this issue Feb 23, 2023
jonasraoni added a commit to jonasraoni/pln that referenced this issue Feb 23, 2023
jonasraoni added a commit to jonasraoni/pln that referenced this issue Feb 23, 2023
This was linked to pull requests Feb 23, 2023
@github-project-automation github-project-automation bot moved this from Under Development to Done in Plugins and Themes Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Bug:1:Low
Projects
1 participant