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

Split sekiban core into Sekiban.Core.Neutral and Sekiban.Core.AspNetCore #471

Merged
merged 10 commits into from
Dec 28, 2024

Conversation

info-miura
Copy link
Collaborator

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

This PR splits Sekiban.Core into Sekiban.Core.Neutral and Sekiban.Core.AspNetCore.
Sekiban.Core.Neutral no longer depends on Microsoft.AspNetCore.App, so it can be used in more restricted configurations.

Related Tickets & Documents

  • Related Issue #
  • Closes #

QA Instructions, Screenshots, Recordings

Please replace this line with instructions on how to test your changes, a note
on the devices and browsers this has been tested on, as well as any relevant
images for UI changes.

Added/updated tests?

We encourage you to keep the code coverage percentage at 80% and above.

  • Yes
  • No, and this is why: This PR would only split package and move implementations. Therefore, it might be sufficient to pass existing tests.
  • I need help with writing tests

[optional] Are there any post deployment tasks we need to perform?

Which implementation of IUserInformationFactory should be used without depending on Microsoft.AspNetCore.App?

[optional] What gif best describes this PR or how it makes you feel?

Copy link
Contributor

@tomohisa tomohisa left a comment

Choose a reason for hiding this comment

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

@info-miura , Thank you for the great work!

After the consideration with @tkawae , we recommend following project structure.

Rename Sekiban.Core.Neutral -> Sekiban.Core.DotNet - and it will be released as nuget
Rename Sekiban.Core.AspNetCore -> Sekiban.Core - and it will be released as nuget

Remove Sekiban.Core - it is same with Sekiban.Core.AspNetCore now.

In future release, current Sekiban.Pure will be main sekiban, and we will consider naming by then.

Sekiban.Core.AspNetCore -> Sekinban.Core
Sekiban.Core.Neutral -> Sekiban.Core.DotNet
@info-miura
Copy link
Collaborator Author

info-miura commented Dec 26, 2024

Moved Sekiban.Core.Neutral to Sekiban.Core.DotNet and Sekiban.Core.AspNetCore to Sekiban.Core.
And also moved some AspNetCore dependent implementations to Sekiban.Core.

Some of ISekibanServiceProviderGenerator implementations uses Sekiban.Core, therefore they can't be implemented under Sekiban.Infrastructure.*.

@info-miura info-miura marked this pull request as ready for review December 26, 2024 10:42
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
5.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@tomohisa tomohisa self-requested a review December 28, 2024 03:32
@@ -159,7 +160,8 @@ SekibanCoreServiceExtensions.MultiProjectionType multiProjectionType
services.AddMediatR(
new MediatRServiceConfiguration().RegisterServicesFromAssemblies(
Assembly.GetExecutingAssembly(),
GetAssembly()));
GetAssembly(),
typeof(UpdateNoticeEventSubscriber<>).Assembly)); // Sekiban.Core.DotNet needs to be added
Copy link
Contributor

Choose a reason for hiding this comment

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

Sekiban.Core.DotNet のAssemblyが登録されていないため、エラーで落ちていました。追加して、問題がなくなったら許可してマージします。

@tomohisa tomohisa merged commit ca06779 into main Dec 28, 2024
17 of 18 checks passed
@info-miura info-miura deleted the split-sekiban-core branch January 21, 2025 03:16
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