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 DI registration for MongoAlterationPlanStore #5564

Conversation

rosca-sabina
Copy link
Contributor

@rosca-sabina rosca-sabina commented Jun 9, 2024

Fixes DI issue related to MongoAlterationPlanStore introduced in #5555.

MongoDbStore<AlterationPlanDocument> and IMongoCollection<AlterationPlanDocument> weren't actually registered in the DI container, so trying to resolve them from IServiceProvider failed.

This was caused by me not committing all changes when I refactored how they were resolved in MongoAlterationPlanStore's constructor: initially I was instantiating them using IMongoDatabase, but when I refactored the constructor to resolve them from the DI container I actually forgot to commit and push all the changes I made before opening a PR.

I re-tested everything and it works as expected now. Sorry!


This change is Reviewable

@sfmskywalker sfmskywalker merged commit 5ebf430 into elsa-workflows:main Jun 9, 2024
2 checks passed
@rosca-sabina rosca-sabina deleted the feature/fix-mongodb-alterations-di branch June 9, 2024 18:43
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.

2 participants