#1836: Support custom IVersionTableMetaData DI registration before AddFluentMigratorCore call#1842
Conversation
…now supported before AddFluentMigratorCore() call
|
@jzabroski A few things about the changed registrations
Some questions:
5 tests are failing, but these are already failing before my changes so this should be fine. |
|
which 5 tests are failing? none failing locally for me or azure dev ops pipeline? can you open an issue with the failing stack trace/nunit error |
|
Just a quick update
I create a new issue after work. |
|
Thanks. I am about to head on paternity leave so I have been heads down writing documentation on various responsibilities I have at work. I imagine I will merge this after looking through it more carefully. |
…a-registration-order
|
I've finally fixed our ci/cd failing. (turns out, I had to add new pipelines and delete the old ones after renaming the master branch to main). This was slowing me down with evaluating PRs as i couldn't even immediately see build pass/fail. |
|
No stress. This is an important code path, so take your time. On another note: |
…a-registration-order
|
@warappa Sorry, I completely lost track of this PR and my eyes got top-heavy reading only the more recent PRs. |
|
No problem :) Just ping me if I can help. |
|
It's been merged. I think you mentioned wanting to do a PR for ValidateOnBuild? |
|
@jzabroski Yes, I started with it but it's not straight forward. But I will try to make it into a PR. |
|
@warappa It looks like the PR has two failing tests. There is also a typo "No migration generator registerd." but that may not be coming from your code. Is it possible I messed up the merge? https://github.com/fluentmigrator/fluentmigrator/pull/1842/checks?check_run_id=31363477043 |
|
I'll take a look. |
|
The typo is here: I will fix it |
|
I fixed the tests by configuring a runner. I took SQLite, but that's just a random choice, because it's only for registering any migration generator. I realized that I just test it with 1 service ( |
|
yes, progress is incemental. |
…a-registration-order
With this PR, FluentMigrator only registers a default
IVersionTableMetaDataimplementation if no user-provided implementation was registered prior.This still does support registering a custom
IVersionTableMetaDataimplementation after theAddFluentMigratorCore()call, as later registered services are prioritized by MS dependency container.This PR contains relevant tests.
Fixes #1836