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

Changer la façon dont les triggers sont nommés #68

Open
yakuru opened this issue Aug 26, 2015 · 0 comments
Open

Changer la façon dont les triggers sont nommés #68

yakuru opened this issue Aug 26, 2015 · 0 comments
Assignees

Comments

@yakuru
Copy link
Contributor

yakuru commented Aug 26, 2015

https://github.com/novafloss/django-aggtrigg/blob/master/django_aggtrigg/util.py#L53

Cette façon de faire engendre des problèmes au moment de la création des triggers.

Si je crée les compteurs suivants :

process.aggregate_trigger = [
    {'count': [
        {'tasks_needed_employee': [
            {'field': 'action_needed_employee', 'value': True}
        ]},
        {'tasks_needed_company': [
            {'field': 'action_needed_company', 'value': True}
        ]},
    ]}
]

Je n'obtiendrai que 3 triggers au lieu de 6 du fait que les noms de triggers générés sont équivalents pour les deux compteurs :

processes_task_process_id_need_insert_trigger
processes_task_process_id_need_update_trigger
processes_task_process_id_need_delete_trigger

@yakuru yakuru self-assigned this Aug 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant