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

Fixed bug where multiple activity registrations of the same type would cause duplicate key exception #128

Conversation

jamesdoran
Copy link
Contributor

To reproduce, run Sample12 on 1.1.1 branch and you'll get a duplicate key exception.

The registration was being performed twice, once by AddElsa() and again by AddUserTasks(). You could probably remove the AddUserTasks() extension method altogether.

@jamesdoran
Copy link
Contributor Author

Apologies, I've just seen #124 . feel free to put in a different fix if you think that's better. I only saw this because Sample12 was registering UserTask twice.

@sfmskywalker sfmskywalker merged commit 7d4d0f9 into elsa-workflows:master Nov 5, 2019
@sfmskywalker
Copy link
Member

No worries, this is a good fix. We can revisit the activity registration story later if we deem it necessary. Thanks for the PR 👍🏻

@jamesdoran jamesdoran deleted the bug/multiple-activity-registrations branch November 10, 2019 22:14
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

Successfully merging this pull request may close these issues.

None yet

3 participants