Skip to content

Minor fixes and enhancements.#62

Merged
ardalis merged 6 commits intoardalis:mainfrom
lloydkevin:main
Oct 3, 2024
Merged

Minor fixes and enhancements.#62
ardalis merged 6 commits intoardalis:mainfrom
lloydkevin:main

Conversation

@lloydkevin
Copy link
Contributor

@lloydkevin lloydkevin commented Oct 3, 2024

  • Removing error message from module load
  • Ignore migrations in tests
  • Test enhancements (adding FastEndpoints Testing and FluentAssertions)

@david-acm @ardalis

@ardalis ardalis merged commit e9b4689 into ardalis:main Oct 3, 2024
@david-acm
Copy link
Collaborator

Closes #61

.And()
.AreNot([typeof(AssemblyInfo), typeof(NewModuleModuleServiceRegistrar)])
.And()
.DoNotResideInNamespace("Modulith.NewModule.Data.Migrations")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand the need for this. but since the template does not include migrations yet. I think this change should have been added with a template that has migrations. I'll add an issue to include this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just trying make it through Techorama :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the issue is, if you use this template....a very natural progression would be to add EF Core.

Just trying to guide the developer into the pit of success

{
if (!TryGetServiceRegistrationMethod(logger, assembly, out var method))
{
logger.LogError("🛑 An error occurred registering services for assembly: '{assembly}'. Skipping registration", assembly.GetName());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This error was generating some noise because some of the assemblies found didn't actually need to be registered and as a result the registration will fail. In a future release we should add the error back and fix the actual logic of finding the assemblies

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to add the log back in and turn it to info or debug?
A natural progression of using a Contract in a module shouldn't cause errors.

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.

3 participants