Starts in:
2 DAYS
5 HRS
8 MIN
35 SEC
Starts in:
2 D
5 H
8 M
35 S

Activities of "andmattia"

  • ABP Framework version: v5.3.1
  • UI type: Angular

We have a module created via suite and now we have crate our nuget pack and NPM to reuse it in another module.

I try to find a way to solve a nightmare related to export module/proxy. All works fine until I need to call a proxy from module B that it came from module A.

I look into a SAAS module and I see that proxy folder is not inside SRC for angular but it was at root level

saas |--proxy |--src

I try to reproduce the same structure but via abp generate-proxy is not possibile... or don't find a way to do that. Looking inside the source I see that ad a ng-package.json to export proxy from module. I do the same but I still get the error module not exported.

My folder structure is ModuleA |--src |-----lib |--------proxy -> In this folder I put ng-package.json

So now I have my build module with proxy epoxrted... but it still no working.

Looking into the generated code I see that SAAS has @volo/abp.ng.saas/proxy into proxy folder but in my module I have @moduleA/src/lib/proxy. I search the documentation where find a way to create a module and NPM package but I don't find anything.

In all module angualr exists only the project foleder and not the entire project (I see that it is refere to a file tsconfig.base.json but where is this file?)

I've

follow the guide suggested on my prev ticket How-to-customize-IdentityServer-login-page and it'works fine on debug but when I move to production env the lepton theme ignore my csutom folder during buduling use only global.css

Is it normal?

2022-04-28 12:27:33.346 +02:00 [INF] Bundling __bundles/Lepton.Global.EBEE615D31F6CB72FC61AE315D1127D4.css (13 files)
2022-04-28 12:27:33.421 +02:00 [INF]   > Minified /libs/abp/core/abp.css (1331 bytes -> 868 bytes)
2022-04-28 12:27:33.464 +02:00 [INF]   > Minified /libs/@fortawesome/fontawesome-free/css/all.css (73577 bytes -> 53572 bytes)
2022-04-28 12:27:33.475 +02:00 [INF]   > Minified /libs/@fortawesome/fontawesome-free/css/v4-shims.css (41312 bytes -> 33344 bytes)
2022-04-28 12:27:33.566 +02:00 [INF]   > Minified /libs/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.css (54850 bytes -> 43189 bytes)
2022-04-28 12:27:33.573 +02:00 [INF]   > Minified /libs/datatables.net-bs5/css/dataTables.bootstrap5.css (9115 bytes -> 8152 bytes)
2022-04-28 12:27:33.574 +02:00 [INF]   > Minified /libs/abp/aspnetcore-mvc-ui-theme-shared/datatables/datatables-styles.css (464 bytes -> 379 bytes)
2022-04-28 12:27:33.658 +02:00 [INF]   > Minified /global-styles.css (26 bytes -> 0 bytes)
2022-04-28 12:27:33.669 +02:00 [INF] Bundled __bundles/Lepton.Global.EBEE615D31F6CB72FC61AE315D1127D4.css (664474 bytes)

After login I still see the them6 (because is purple on left)

  • ABP Framework version: v5.2.0
  • UI type: Angular
  • DB provider: MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): no Tired / IS separeted
  • Exception message and stack trace:
[Area(DynamicTemplateRemoteServiceConsts.ModuleName)]
[RemoteService(Name = DynamicTemplateRemoteServiceConsts.RemoteServiceName)]
[Route("api/custom/layout-template")]
public class LayoutTemplateController : DynamicTemplateController, ILayoutTemplateAppService
{
    protected ILayoutTemplateAppService LayoutTemplateAppService { get; }

    public LayoutTemplateController(ILayoutTemplateAppService layoutTemplateAppService)
    {
        LayoutTemplateAppService = layoutTemplateAppService;
    }

    [HttpPost]
    [Route("give-layout-templates")]
    public Task<PagedResultDto<LayoutTemplateDto>> GiveLayoutTemplates(GetLayoutTemplateInput input)
    {
        return LayoutTemplateAppService.GiveLayoutTemplates(input);
    }

This generate an error

2022-04-13 12:21:09.582 +02:00 [INF] Executing action method Dm.DynamicTemplate.LayoutTemplateController.ProvaInput (Dm.DynamicTemplate.HttpApi) - Validation state: "Valid"
2022-04-13 12:21:11.093 +02:00 [ERR] ---------- RemoteServiceErrorInfo ----------
{
  "code": null,
  "message": "An internal error occurred during your request!",
  "details": null,
  "data": {},
  "validationErrors": null
}

2022-04-13 12:21:11.093 +02:00 [ERR] Property accessor 'DeclaringMethod' on object 'System.RuntimeType' threw the following exception:'Method may only be called on a Type for which Type.IsGenericParameter is true.'
System.Reflection.TargetInvocationException: Property accessor 'DeclaringMethod' on object 'System.RuntimeType' threw the following exception:'Method may only be called on a Type for which Type.IsGenericParameter is true.'
 ---> System.InvalidOperationException: Method may only be called on a Type for which Type.IsGenericParameter is true.
   at System.RuntimeType.get_DeclaringMethod()
   --- End of inner exception stack trace ---

if I use the code below in Http APi (importing Application Module or in Host Module) the API works fine (I try in 5.1.4 and 5.2.0) this happen only with this input object. The inpunt object exted a class that extend PagedAndSortedResultRequestDto. Internally I have an array object the same type.

public class Filter {
    public string Name {get;set;}
    public Filter[] Filters {get;set;}
    }

        Configure<AbpAspNetCoreMvcOptions>(options =>
        {
            options.ConventionalControllers.Create(typeof(DynamicTemplateApplicationModule).Assembly, opts =>
            {
                opts.RootPath = "custom/";
            });
        });```

Hi

we need to change the schema color and other staff on Login Page provided from Identity Server.

How can do that?

Question

Hi

In our migration process we want to convert our module develop on to Anz to abp.io

I start from angular module where I found a module sec and dev-app arc.

On root i use yarn build to create a module and after this step I use yarn add './dist/module/ to use on dev app.

I have some issue because some times my component or abp are non valid.

Exist a full example to explain all thebflow ?

Question
  • ABP Framework version: lastest
  • DB provider: MongoDB

Hi

we are working on a module/service that are connecto to MQTT server.

We have create a client and define it as ISingletonDependency because only one exists on our application, we set the configuration via IOptions and until here this it works fine.

At the end of domain module we add a simple to init all configuration

public override async Task OnPreApplicationInitializationAsync(ApplicationInitializationContext context)
    {
        var myService = context.ServiceProvider.GetService<BrokerClient>();
        await myService.InitializeAsync();
    }

the first execution on Receive message handler is ok and it write data on DB but the second message has all services disposed IService

    // On Init Async method
    _mqttClient.UseApplicationMessageReceivedHandler(ReceiveMessageHandler);
    


    [UnitOfWork]
    private async Task ReceiveMessageHandler(MqttApplicationMessageReceivedEventArgs arg)
    {
       ...
       //using (var scope = _serviceProvider.CreateScope())
       //{
            _logger.LogDebug(jsonString);
       //}
    }

If I run this code log works has expected but If I look into this and _serviceProvider is disposed

How can we recover the consistent state of UOW?

Hi

I try to use Identity Server to authenticate my user from ANZ.

On ANZ site I add openId configuration

    "OpenId": {
      "IsEnabled": "true",
      "ClientId": "anz-client",
      "Authority": "https://localhost:44308",
      "LoginUrl": "https://localhost:44308/Account/Login",
      "ValidateIssuer": "false",
      "ClaimsMapping": [
        {
          "claim": "unique_name",
          "key": "preferred_username"
        }
      ]
    },

Now after choose tenant on ANZ I see the OpenId Connection button. If I click it app redirect my to IS but not with tenant (first issue) after login process IS no redirect back to ANZ site.

My goal is:

  • copy user and tenant on ABP.IO
  • Enable IS on ABP.IO and use it to auth user from ANZ
  • ABP Framework version: v5.1.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

We need to understand the correct flow to separate main app and module. I try to explain our scenario:

  • Single app in ANZ moving to separate modules.

I have an app a small ERP system whit 2 module CRM and Invoicing. At the moment code is in a single solution with differnente (core/app/EF) single (angular project). So now we are working to rebuild in different module/services.

Our questions are:

  1. CRM and Invoicing are module or app? If i look to ABP.io site support and community are 2 different url so I think that are 2 application. Is it correct? Is better consider CRM an app or a module?
  2. Related to EF Migration. The ef migration are into the EF cs project, but I have look a lot of example and it's not clear where is correct to store migration on EF and when it doesn't. I have try to create a new app template and I found DBMigrator project but if I create a module this project not exists, in this second case where I put my add-migration? I need to create always an app (that has the Migratior project) add module and call my module dbcontext on migration project?
  3. Actually one of the module has 2 dbcontext 1 MSSQL EF and 1 NoSQL mongodb, in that case the correct target we thnik could be 2 microservice 1 with EF and 1 with Mongo that can be orchastrated via RabbitMq(async) or ApiClient (sync). Is it correct?
  4. have you some use guide/best practice to move angular based on metronic to angular based on lepton theme? Lepton theme has restriction use in conjuction with DevExpress or Telerik?

I try to understand how can I create a module where I need access data came from another.

Suppose to have a CRM module and E-Comm module. In CRM I create / admin customer on E-Com need to access to that data.

My question is realated to:

  1. if module CRM work with MSSQL and E-Com with MongoDb is it possibile?
  2. in terms of performance I need to use a SQL Statement if have more module on same DB arch I can exceute that query but if not on same DB, exist a way to sync data from different module?
  3. in case of use MongoDb can I use dynamic object to map object db?
Showing 31 to 39 of 39 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06