Activities of "chofoza"

  • ABP Framework version: v4.3.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

Hi, I am having multiple issues with an upgrade from 4.2 to 4.3 and trying to add the CMS modules. My abp CLI and suite are both at the latest version.

When I add CmsKit or CmsKit.Pro it fails during step 2 of 4:

[1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... error Command failed. Exit code: 128 Command: git Arguments: ls-remote --tags --heads ssh://git@github.com/seonim-ryu/Squire.git Directory: [web project folder] Output: Host key verification failed. fatal: Could not read from remote repository.

I can see the Nuget dependencies in all my projects, but my database does not have any cms tables in it, and the menu doesn't appear. I have tried adding the relevant "EnableAll" code to the GlobalFeatureConfigurator in Domain.Shared but it didn't do anything. I also ran the DbMigrator project and it ran successfully, but didn't add any tables.

I also tried to add the file management module and had the same error about Squire.git.

I also get the following error when I click on Settings in the Administrator menu (all other menu pages are ok)

DependencyResolutionException: None of the constructors found with 'Volo.Abp.Autofac.AbpAutofacConstructorFinder' on type 'Volo.Abp.SettingManagement.Web.Pages.SettingManagement.Components.EmailSettingGroup.EmailSettingGroupViewComponent' can be invoked with the available services and parameters: Cannot resolve parameter 'Volo.Abp.SettingManagement.IEmailSettingsAppService emailSettingsAppService' of constructor 'Void .ctor(Volo.Abp.SettingManagement.IEmailSettingsAppService)'.

I've done a full "update all packages" through abp suite and obviously don't get any compiler errors. I did also follow the upgrade doc from 4.2 to 4.3 so those steps have also been implemented.

I've considered creating a new project and moving my custom code across, but I'll need to use the new db layout and therefore would lose my live data. I could possibly migrate data but I don't know if that will work for identity columns and foreign keys.

Has anyone seen these problems before and have I missed something simple?

  • ABP Framework version: v4.1.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Seperated (Angular): no

Hi, I feel like this is an easy one...

I have a new property (bool Active) on the User object, stored in ExtraProperties. I want to reference it on the razor page, but the CurrentUser (ICurrentUser) object doesn't have it or ExtraProperties. How can I read the value?

In my example basically I want to do:

@if (CurrentUser.IsAuthenticated && CurrentUser.ExtraProperties["Active"])

  • ABP Framework version: v4.1.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Seperated (Angular): no

Hi, I have added a new boolean field to the User object called Active. I have overwridden the Register page to set this to false for new users and it works.

I have also added a new menu item under User Management that goes to Identity/Users/Inactive. I've created the Inactive.cshtml/cs page for it, as well as Inactive.js to edit the Actions to only have Activate and Delete. The Activate function correctly sets the field to true and reloads the page, so most of what I want is working.

My problem: how do I filter the Users list that loads on the Inactive page? I have only been able to use the 'filter' option but that seems to only search on name/surname, and I can't get it to filter on another field.

That part of the js file is:

        var _$table = _$wrapper.find('table');
        var getInactiveFilter = function () {
            return {
                filter: 'test',
            };
        };
           abp.libs.datatables.normalizeConfiguration({
               order: [[1, 'asc']],
               processing: true,
               serverSide: true,
               scrollX: true,
               paging: true,
               ajax: abp.libs.datatables.createAjax(
                   _identityUserAppService.getList, getInactiveFilter
               ),
               columnDefs: abp.ui.extensions.tableColumns.get('identity.user').columns.toArray()
           })
       );

I have tried to make the getInactiveFilter function look like this (testing on a named field before attempting ExtraProperties):

var getInactiveFilter = function () {
            return {
                name: 'test',
            };
        };

That doesn't work at all - the parameter isn't even passed in the ajax request.

What I really want to do is filter the list in 2 ways (at once):

  1. only show users where Active=false
  2. only show users that are within the OU hierarchy of the current logged in user

The Inactive page is only visible to users within a certain role, and they will be approving new users that register within their OU structure. Can anyone help with the filtering?

Question
  • ABP Framework version: v4.1.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Seperated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:

Hi, I'd like to customise the user menu in the main toolbar:

  1. remove/hide the Security Logs option
  2. replace the username with Name

I can see the function ConfigureToolbarAsync in the ToolbarContributor where it gets added, but I don't know how to edit the object or intercept it. I am guessing I need to override the class that calls ConfigureToolbarAsync but I am too new to this so am a little lost. Help is appreciated!

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