Hi Support Team,
I encountered this issue after brought the framework to develop environment, got my App
client uris modified:
Access log from nginx
server:
connect() failed (111: Connection refused) while connecting to upstream, client: 115.79.30.28, server: dev-api-bts.belfor.asia, request: "GET /api/abp/application-configuration HTTP/2.0", upstream: "http://172.16.220.21:44355/api/abp/application-configuration", host: "dev-api-bts.belfor.asia", referrer: "https://dev-bts.belfor.asia/
Could you guys take a look? I assume it is due to the migration from IdentityServer
toOpenIdDict
. I already overridden docker-compose.yml
environment variables following the new appsettings.json
in DbMigrator
:
Am I missing a configuration or something?
The return dto OrganizationUnitLookupDto
only contains Id
and DisplayName
, what I am looking for is the ParentId
field as well. Before upgrade, I handled the dropdown so that I could add indents as below:
Here was the code, called another sorted list and handled HTML elements:
ngAfterViewInit(): void {
var organizationUnit = document.querySelector("#organizationUnitIdFilter");
var option = '';
this.orgService.getOrganizationUnitsList().subscribe(
data => {
this.countryOptions = data;
var index = 1;
this.countryOptions.forEach(element => {
let spaceChild = '';
if (element.parentId) {
spaceChild = '<span> </span>';
}
option += '<option value="' + index++ + ': ' + element.id + '"' + ' [hidden]="' + element.isDisabled + '">' + spaceChild + element.displayName + '</option>';
})
organizationUnit.innerHTML = '<option></option>' + option;
},
error => {
console.log(error);
}
);
}
After upgraded, the dropdown looks the same, but Id
input seems from the original list without ngAfterViewInit
:
For example, if I select China
, then Id
of 946 Singapore
is passed.
Do you have any idea?
Hi Support Team,
I want to customize method logic of the below API endpoint api/identity/users/lookup/organization-units
, but I am unable to find the method anywhere in your source code:
There is IdentityUserLookupController.cs
, but it doesn't declare the method:
Where do I find it for service exposing?
Hi, any update?
Edit: Nevermind, I downgraded all angular libraries to ~17.0.0
, all errors are gone.
Thanks. I resolved by importing either @abp/ng.components/extensible
or @abp\ng.theme.shared
instead.
One more thing, I encountered yet another issue:
../../node_modules/@angular/common/fesm2020/common.mjs:3049:12-32 - Error: export '╔╡╔╡InputFlags' (imported as 'i0') was not found in '@angular/core'
The latest @angular/core
version has fesm2022
folder instead of fesm2020
: