hi
This seems unavoidable because the current user has thousands of organizations, and EF Core's entity tracking needs to load and track all entities, which is why it's slow.
For example, if you have 5,000 roles or logins in the future, you will still encounter this problem.
So you can either prevent assigning too many organzation to a user or modify the Identity module code to avoid loading all navigation entities explicitly. Then, query all entities at once as needed and tell EF Core not to track them.
https://abp.io/docs/latest/framework/architecture/domain-driven-design/repositories#read-only-repositories https://abp.io/docs/latest/framework/architecture/domain-driven-design/repositories#read-only-repositories-behavior-in-entity-framework-core
Thanks.
hi
When I try to build/run my solution, I encounter license validation errors.
Was this project created recently?
Can you check the appsettings.secret.json file under the project?
It should contain the AbpLicenseCode.
Can you try to create a new project and copy the AbpLicenseCode from the new project to your old project?
Can you also run the new project to test if the license check works?
Thanks.
hi
but we are still trying to add OrganizationUnits to cliamns issue still persists. I
Can you add the code to https://github.com/Exceego-Info-Labs-Pvt-Ltd/POC project? So I can reproduce it.
Thanks.
hi
Can you test this commit?
https://github.com/Exceego-Info-Labs-Pvt-Ltd/POC/commit/2626cb40fb32a5b9c8482609c587a59492132d49
Thanks.
hi
I added the new code https://github.com/Exceego-Info-Labs-Pvt-Ltd/POC/commit/7343de0961e355aa0c75f44913ecadec8342f0db
Can you delete logs.txt, reproduce the login problem, and share the logs.txt again?
Thanks.
Thanks. I will check them.
hi
The error is
The token request was rejected because invalid scopes were specified: ["ManagementService","Trainm"].
Have you created the ManagementService and Trainm scopes?
eg:
private async Task CreateScopesAsync()
{
if (await _scopeManager.FindByNameAsync("MyProjectName") == null)
{
await _scopeManager.CreateAsync(new OpenIddictScopeDescriptor
{
Name = "MyProjectName",
DisplayName = "MyProjectName API",
Resources =
{
"MyProjectName"
}
});
}
}
hi
As a future feature, do you plan to handle the reload scenario directly from the menu?
Almost no one needs to reload the page, you can customize it like that.
Thanks.