Skip to content

Implemented IsActive flag on IUserData #11417

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 9 commits into from
Jun 7, 2022

Conversation

NecatiMeral
Copy link
Contributor

Fixes #11416

WARNING

There are some migrations (in the CmsKit-module) which have dangerous changes. I tried to locate the root cause and I cannot find the underlying entities whose tables will get dropped.

@hikalkan
Copy link
Member

Thanks @NecatiMeral for your contribution. I will review and think about that.

@hikalkan hikalkan modified the milestones: 5.3-preview, 5.4-preview Apr 28, 2022
@@ -16,5 +16,6 @@ public static void ConfigureAbpUser<TUser>(this EntityTypeBuilder<TUser> b)
b.Property(u => u.EmailConfirmed).HasDefaultValue(false).HasColumnName(nameof(IUser.EmailConfirmed));
b.Property(u => u.PhoneNumber).HasMaxLength(AbpUserConsts.MaxPhoneNumberLength).HasColumnName(nameof(IUser.PhoneNumber));
b.Property(u => u.PhoneNumberConfirmed).HasDefaultValue(false).HasColumnName(nameof(IUser.PhoneNumberConfirmed));
b.Property(u => u.IsActive).HasDefaultValue(true).HasColumnName(nameof(IUser.IsActive));
Copy link
Member

Choose a reason for hiding this comment

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

This will cause a problem.
dotnet/efcore#15323 (comment)

@codecov
Copy link

codecov bot commented May 4, 2022

Codecov Report

❗ No coverage uploaded for pull request base (dev@0e8abe4). Click here to learn what that means.
The diff coverage is 92.85%.

❗ Current head 29bf315 differs from pull request most recent head 43ce908. Consider uploading reports for the commit 43ce908 to get more accurate results

@@          Coverage Diff           @@
##             dev   #11417   +/-   ##
======================================
  Coverage       ?   49.25%           
======================================
  Files          ?     3114           
  Lines          ?    93050           
  Branches       ?        0           
======================================
  Hits           ?    45834           
  Misses         ?    47216           
  Partials       ?        0           
Impacted Files Coverage Δ
...rc/Volo.CmsKit.Domain/Volo/CmsKit/Users/CmsUser.cs 51.92% <66.66%> (ø)
...lo.Blogging.Domain/Volo/Blogging/Users/BlogUser.cs 90.38% <100.00%> (ø)
....Abp.Users.Abstractions/Volo/Abp/Users/UserData.cs 93.87% <100.00%> (ø)
...o.Abp.Users.Abstractions/Volo/Abp/Users/UserEto.cs 100.00% <100.00%> (ø)
...p.Users.Domain/Volo/Abp/Users/AbpUserExtensions.cs 100.00% <100.00%> (ø)
...rkCore/AbpUsersDbContextModelCreatingExtensions.cs 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0e8abe4...43ce908. Read the comment docs.

@hikalkan hikalkan modified the milestones: 5.4-preview, 6.0-preview May 24, 2022
@maliming maliming merged commit 38a25bc into abpframework:dev Jun 7, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IUserData - Supporting new IsActive property
4 participants