Activities of "Ryan.sposato@ethany.com"

Answer

Created a brand new Angular/MongoDb Project from Suite. Everything is upgraded to 4.0. Using Mongo database. Get the following error:

Answer

Upon upgrading to 4.0 from 3.3.1 I see the AccountService on the Angular side has been removed. We were using that for sendPasswordResetCode. The documentation still has AccountService referenced (https://docs.abp.io/en/commercial/latest/modules/account#services). What do we use now?

Also, in the <ProjectName>.HttpApi.Host.cs file it references this package: <PackageReference Include="Serilog.Extensions.Hosting" Version="3.2.0" /> if you look in nuget or the Serilog.Extensions.Hosting project web page version 3.2.0 does not exist. 3.1 is the latest stable version.

Answer

Version: 3.3.1 Angular, single solution

Reset password screen does not check confirm password to make sure it matches with the new password.

It also has PasswordResetMessage with no way to change that:

Figured out myself. Apparently the issuer under the oAuthConfig in the environments.ts is case sensitive.

Answer

Thanks for your response. On further investigation this doesn't appear to be an angular problem. What seems to have happened after the upgrade is extending the IdentityUserAppServer no longer automatically generates a controller method anymore.

 [Dependency(ReplaceServices = true)]
    [ExposeServices(typeof(IIdentityUserAppService), typeof(IdentityUserAppService), typeof(UserAppService))]
    public class UserAppService : IdentityUserAppService
    {
        private IIdentityUserRepository _userRepository;
        private IIdentityRoleRepository _roleRepository;
        private IAccountAppService _accountAppService;
        private IAccountEmailer _accountEmailer;

        public UserAppService(IdentityUserManager userManager, IIdentityUserRepository userRepository, IIdentityRoleRepository roleRepository, IOrganizationUnitRepository organizationUnitRepository, IIdentityClaimTypeRepository identityClaimTypeRepository, IdentityTwoFactorManager identityTwoFactorManager) : base(userManager, userRepository, roleRepository, organizationUnitRepository, identityClaimTypeRepository, identityTwoFactorManager)
        {
            _userRepository = userRepository;
            _roleRepository = roleRepository;
        }

        public async Task<PagedResultDto<UserDto>> GetListWithRoleAsync(GetIdentityUsersInput input)
        {
            var users = await _userRepository.GetListAsync(filter: input.Filter);
            var roles = await _roleRepository.GetListAsync();

            var result = users.Join(roles, u => u.Roles.First().RoleId, r => r.Id, (user, role) => 
            new { user, role }).Select(j => 
            new UserDto { Name = j.user.Name, 
                Surname = j.user.Surname, 
                Email = j.user.Email, 
                EmailConfirmed = j.user.EmailConfirmed, 
                IsLockedOut = j.user.LockoutEnd >= DateTime.Now, 
                Id = j.user.Id, 
                UserName = j.user.UserName, 
                ConcurrencyStamp= j.user.ConcurrencyStamp, 
                VendorId = j.user.ExtraProperties.ContainsKey("VendorId") ? (Guid)j.user.ExtraProperties["VendorId"] : (Guid?)null, 
                ClientId= j.user.ExtraProperties.ContainsKey("ClientId") ? ((List<object>)j.user.ExtraProperties["ClientId"]).Select(o => new Guid(o.ToString())).ToList() : new List<Guid>() , 
                Role = j.role.Name }).ToList();

            return new PagedResultDto<UserDto>(result.Count(), result);
        }
    }

before the upgrade this would create an api get call under users called /withrole. After the upgrade that doesn't happen anymore.

Answer

Upgraded Suite and Projects to 3.3 final this morning. Running the Angular UI version. ReplaceComponent stopped working for Users.

Coworker still on 3.2.1 and it's working for them.

Same issue. Everything is updated to v3.2. It's appending the project name before each of the class names.

Thanks, that fixed the issue.

It did make some weird model interfaces:

export interface ProjectManagementchangeLogsChangeLogCreateDto {
  screen: string;
  action: string;
  oldValue: string;
  newValue: string;
  actionUser: string;
  actionTime: string;
}

When the actually service was only looking for ChangeLogCreateDto. I'm sure I may have a setting wrong somewhere. Any idea what it might be?

Everything has been updated to v3.2. Angular Project, .net core, and Abp.Suite.

see logs where angular fails:



2020-10-01 07:20:47.355 -04:00 [INF] 1/8 - EntityGenerateCommand started...
2020-10-01 07:20:48.786 -04:00 [INF] 1/8 - EntityGenerateCommand completed.                           | Duration: 1426 ms.
2020-10-01 07:20:48.787 -04:00 [INF] 2/8 - RepositoryCommand started...
2020-10-01 07:20:49.212 -04:00 [INF] 2/8 - RepositoryCommand completed.                               | Duration: 424 ms.
2020-10-01 07:20:49.212 -04:00 [INF] 3/8 - AppServiceCommand started...
2020-10-01 07:20:49.402 -04:00 [INF] 3/8 - AppServiceCommand completed.                               | Duration: 189 ms.
2020-10-01 07:20:49.402 -04:00 [INF] 4/8 - ProxyControllerCommand started...
2020-10-01 07:20:49.435 -04:00 [INF] 4/8 - ProxyControllerCommand completed.                          | Duration: 32 ms.
2020-10-01 07:20:49.435 -04:00 [INF] 5/8 - PermissionCommand started...
2020-10-01 07:20:49.539 -04:00 [INF] 5/8 - PermissionCommand completed.                               | Duration: 103 ms.
2020-10-01 07:20:49.539 -04:00 [INF] 6/8 - ApplicationObjectMappingCommand started...
2020-10-01 07:20:49.601 -04:00 [INF] 6/8 - ApplicationObjectMappingCommand completed.                 | Duration: 62 ms.
2020-10-01 07:20:49.601 -04:00 [INF] 7/8 - AngularUiGenerateWithSchematicsCommand started...
2020-10-01 07:20:49.610 -04:00 [INF] Running the Angular Schematics command:
npx "C:/work/code/Airosmith/Airosmith.ProjectManagementSystem/angular/.suite/schematics/node_modules/.bin/ng" g ".suite/schematics/collection.json:entity" app-pro Airosmith.ProjectManagementSystem "C:/Users/ryans/.abp/suite/solutions/116aa922-1463-41d3-a2a8-84c9e378a9b2/entities/ChangeLog.json"
2020-10-01 07:20:52.595 -04:00 [INF] Angular Schematics command failed.
[Root Namespace Not Found] Cannot resolve root namespace for "default" api from "ProjectManagementSystem" project.

2020-10-01 07:20:52.611 -04:00 [INF] 7/8 - AngularUiGenerateWithSchematicsCommand completed.          | Duration: 3009 ms.

Just updated both Abp.Suite and the Solution to 3.2.0 and still does not generate Angular UI.

Showing 1 to 10 of 16 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11