Starts in:
2 DAYS
10 HRS
21 MIN
21 SEC
Starts in:
2 D
10 H
21 M
21 S

Activities of "lalitChougule"

Question
  • ABP Framework version: v7.2.2
  • UI Type: Angular
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no/yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hi,

Login to the platform taking more time than expected

As you see in the above image the application-configuration alone is taking almost 2 sec here. Please advise on how we reduce this time.

  • ABP Framework version: v7.2.2
  • UI Type: Angular
  • Database System: EF Core PostgreSQL
  • Tiered (for MVC) or Auth Server Separated (for Angular): no/yes
  • Exception message and full stack trace: N.A
  • Steps to reproduce the issue:

I have a requirement where I have create few users using SQL scripts. For these users I need to share URL via email to reset password.

I found this method as per my use case in AccountAppService

public virtual async Task ResetPasswordAsync(ResetPasswordDto input)
{
    await IdentityOptions.SetAsync();

    var user = await UserManager.GetByIdAsync(input.UserId);
    (await UserManager.ResetPasswordAsync(user, input.ResetToken, input.Password)).CheckErrors();

    await IdentitySecurityLogManager.SaveAsync(new IdentitySecurityLogContext
    {
        Identity = IdentitySecurityLogIdentityConsts.Identity,
        Action = IdentitySecurityLogActionConsts.ChangePassword
    });
}

I need to know what do I pass into ResetToken ? And how to generate this Reset Token ?

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

Hi,

I followed the document https://docs.abp.io/en/abp/4.3/Background-Jobs.

Below is the kind of code sample for your analysis

public async Task<something> MainMethod()
{
	// some logic
	//
	//
	//
	// some logic
	
	//Here is the code I wanted to run in background 
	await _backgroundJobManager.EnqueueAsync(
            new SomeDto
            {
                EmailAddress = emailAddress,
                Subject = "You've successfully registered!",
                Body = "..."
            }
        );
	//Its is inserting 45k records into database.
	//I want to run this in background but don't want to wait for this to complete
	//Post the above job I am publishing event to notify client about the status.
	
	//return something;
}

public class SomeJob : AsyncBackgroundJob<SomeDto>, ITransientDependency
{
        private readonly ISomeInterface _someInterface;

        public SomeJob(ISomeInterface someInterface)
        {
            _someInterface= someInterface;
        }

        public override async Task SomeMethod(SomeDto args)
        {
            await _someInterface.SomeOtherMethod(
                args.EmailAddress,
                args.Subject,
                args.Body
            );
        }
}

The above code works fine on localhost But it doesn't work post-deployment.

There are logs in both methods. MainMethod() logs are logged in CloudWatch. But there is no single log from SomeMethod() logged in CloudWatch. I am assuming that this method was not even executed.

I want to know the reason why? How can it get executed on localhost and not on the server?

Also, you got an idea of what I am trying to do. Please suggest a way where I can insert those records in the background without having the request to wait for that code to get executed. The reason is we are using AWS API Gateway, which has a 30-sec limitation. Due to this long insert process, the request gives a timeout error on the angular side.

Alternatively, I tried using https://docs.abp.io/en/abp/4.3/Local-Event-Bus, but this is not executing asynchronously in the background. Also, I tried using https://docs.abp.io/en/abp/4.3/Distributed-Event-Bus, this gets called asynchronously, but here I am stuck in some rabbitMQ object reference null issue.

Please advise !!!

  • ABP Framework version: v4.3.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace: N.A
  • Steps to reproduce the issue:" N.A

Hi,

My project have total 7 micro-services out of which 1 is dedicated for SignalR Post deployment other 6 are working fine, but the one which is dedicated for SignalR is giving CORS error. All the appsettings and Host Module logic looks fine as same logic is working for other 6 services. There are no logs in Cloud Watch to check for. Not getting any more details, only this URL in network tab : https://xxx.dev.xxxxx.com/eventsync/hubs/notifications/negotiate?negotiateVersion=1 PFA images for your reference

We have a release planned and it is having very high priority. Please let me know if someone from support team is available for discussion.

  • ABP Framework version: v4.4.4
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no / yes
  • Exception message and stack trace: N.A
  • Steps to reproduce the issue:" N.A

Hi,

I have added new Micro-Service into my Microservice architecture application solution. For CurrentUser I can only get phone number field For CurrentTenant I can only get the Id

[Authorize]
public Task<SampleDto> GetAuthorizedAsync()
{
	var user = CurrentUser.UserName;
	var tenant = CurrentTenant.Id;

	return Task.FromResult(
		new SampleDto
		{
			Value = 42
		}
	);
}

FYI

  • I create new module with command abp new XXX.XXXX.XXXXX -t module-pro -csf --no-ui -dbms PostgreSQL -v 4.4.4
  • Copied all newly created modules in my solution.
  • For existing module I am able to see Volo.Abp.IdentityServer.Application in the .csproj file of Application project, but for my newly created project this package was not installed and also when I tried to install this package I am not able to find it on nuget package manager ( Image for your reference below ) and when I tried editing the .csproj and try to add it there, this package is not getting resolved. i.e. Volo.Abp.IdentityServer.Application

Thanks!!!

  • ABP Framework version: v4.4.4
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no / yes
  • Exception message and stack trace: N.A
  • Steps to reproduce the issue:" N.A

Hi,

I need to override AbpTenantAppService.FindTenantByNameAsync() method. How do I do it ?

I tried it as per your documentation https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Overriding-Services#overriding-a-service-class , but not able to resolve this below issue

These are links to the code I need to override. https://github.com/abpframework/abp/blob/4.4.4/framework/src/Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy/Pages/Abp/MultiTenancy/AbpTenantAppService.cs https://github.com/abpframework/abp/blob/4.4.4/framework/src/Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy/Pages/Abp/MultiTenancy/AbpTenantController.cs

Thanks you !!!

  • ABP Framework version: v4.3.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no / yes
  • Exception message and stack trace: N.A
  • Steps to reproduce the issue:" N.A

Hi,

When I click on the Apply database migration in image 1, I only get message as per image 2 and image 3 shows the network tab

Now, I have created an Event Handler like below, but none of the below methods executes. Debugger also hit on these methods.

public class XYZServiceDatabaseMigrationEventHandler : IDistributedEventHandler<TenantCreatedEto>,
        IDistributedEventHandler<TenantConnectionStringUpdatedEto>,
        IDistributedEventHandler<ApplyDatabaseMigrationsEto>
    {
        public async Task HandleEventAsync(TenantCreatedEto eventData)
        {
            //Some code
        }

        public async Task HandleEventAsync(TenantConnectionStringUpdatedEto eventData)
        {
            //Some code
        }

        public async Task HandleEventAsync(ApplyDatabaseMigrationsEto eventData)
        {
            //Some code
        }
    }
  • ABP Framework version: v4.3.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no / yes
  • Exception message and stack trace: N.A
  • Steps to reproduce the issue:" N.A

Hi,

I have multitenant microservice application. appsettings details are different for each tenant. I wish not to maintain a appsettings file or if I have to then I have to maintain only common settings there. But my other tenant related settings should come from database.

How do I achieve this , any suggestions ?

  • ABP Framework version: v4.3.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no / yes
  • Exception message and stack trace: N.A
  • Steps to reproduce the issue:" N.A

Hi,

My requirement is similar to this ticket : https://support.abp.io/QA/Questions/1087/DbMigrator-for-multi-tenant--multi-db

But I can't see any resolution on this ticket. Please can you help me with it.

Also If you can answer below question it will be helpful

  1. This is the end point api/saas/tenants/3a03440a-5d0e-e4e2-4fa5-c40c2671b8fe/apply-database-migrations. I was not able to find the actual app service method it belongs to on git hub, please give me the name of this app service.
  2. Will I be able to override the above service ?
  3. How do I add multiple connection string ( i,e, per module ) from UI i.e. Saas Tenant screen where we create a Tenant and give the connection string. My project have 3 custom module, So I have 1 database for Admin/Abp/IdentityServer and other 3 for 3 different modules
  • ABP Framework version: v4.3.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no / yes
  • Exception message and stack trace: N.A
  • Steps to reproduce the issue:" N.A

Hi,

Our application is based on micro-service architecture.

In my application I have

  1. Gateway
  2. Identity Server
  3. Service 1
  4. Service 2
  5. Service 3

The solution is not implemented by abp.io Microservice template but it was implemented by your guidance and works as expected. Till now we had only one tenant but still multi tenancy was enabled in our application. Now we want to add few tenants to our system and facing below issues.

Issues :

  1. Migrations and seeding for new Tenant ( Separate database ), Seeding specially for Identity Server Client / Api Resource and all stuff.
  2. Connection string resolution.
  3. Common functionality to trigger migration / update-database for all projects present in application.

Each of the repository is custom repository https://docs.abp.io/en/abp/4.4/Repositories#custom-repository-interface I also tried to implement custom MultitenancyConnectionStringResolver. https://docs.abp.io/en/abp/4.4/Connection-Strings#replace-the-connection-string-resolver

My Questions :

  1. How to implement solution for above mentioned issues.
  2. Currently we created some Tenant database manually by running database script but want to automate this process.
  3. Seeding is also done manually by database script but want to automate this as well.
  4. When we run our application we get error's like Cannot connect to multiple dbContext etc. etc... Clearly connection string is not getting resolved. I need a way where I can log in log.txt file for each repository the connection string via which it is getting connected to the database. And want to make sure that it is connected to the expected database.

Please try to give deep explanation as the whole process is bit complex as we are not having the same template as abp.io microservice template

Showing 1 to 10 of 47 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06