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

New Hook type - entity.destroyed #44

Open
hudecsamuel opened this issue Apr 4, 2017 · 1 comment
Open

New Hook type - entity.destroyed #44

hudecsamuel opened this issue Apr 4, 2017 · 1 comment

Comments

@hudecsamuel
Copy link

Problem: Project, eshop or user can be deleted without application that is linked to it knowing that it happened. This will basicaly leave data about it in application database, tasks etc.

Solution: It would be realy nice to create a new type of App Hook that will only serve to notify the app that entity that has it enabled was deleted so the app can clean up. This doesn't need to to be done instantenously, but should be done eventualy (If you send it an hour after the entity was deleleted it shouldn't be that much of a problem)

Example action:

{
    "action": "entity.destroyed",
    "entity_id": 42,
    "entity_type": "shop"
}

What do you think?

@smuuf
Copy link
Member

smuuf commented Apr 4, 2017

That's an interesting idea possibly covering quite a common case.

Also, AFAIK, user currently can in fact not be deleted. (just a note.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants