Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "dev_frontrush"

We resolved the reported issue by updating the versions in package.json for luxon (to ^1.27.1) and nswag (to 13.12.1).

The key issue is to make sure that nswag is at least at the level specified in the target version (e.g., ^13.10.6 for 10.3).

After upgrading to version 10.3, we are now getting an error when trying to run nswag/refresh.bat. Please advise. Newtonsoft.Json.JsonSerializationException: Error converting value "Luxon" to type 'NJsonSchema.CodeGeneration.TypeScript.TypeScriptDateTimeType'. Path 'codeGenerators.openApiToTypeScriptClient.dateTimeType', line 22, position 29. ---> System.ArgumentException: Requested value 'Luxon' was not found. at Newtonsoft.Json.Utilities.EnumUtils.ParseEnum(Type enumType, String value, Boolean disallowNumber) at Newtonsoft.Json.Converters.StringEnumConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer) --- End of inner exception stack trace --- at Newtonsoft.Json.Converters.StringEnumConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) at NSwag.Commands.NSwagDocumentBase.FromJson[TDocument](String filePath, String data) in C:\projects\nswag\src\NSwag.Commands\NSwagDocumentBase.cs:line 230 at NSwag.Commands.NSwagDocumentBase.<>c__DisplayClass35_0`1.<

Note that we have also updated node-modules using yarn. The database has been updated, and all build errors have been resolved in the API.

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? 10.0.0
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .NET Core

If issue related with ABP Framework

  • What is ABP Framework version? v6

If issue is about UI

  • Which theme are you using? Default
  • What are the theme settings? Default

Issue Description

The User Permissions page has a hierarchy of checkboxes.  We've noticed some areas of inconsistent or surprising behavior:

  • if all the children of the top-level node are unchecked, the top-level node stays checked (we would expect it to be unchecked automatically)
  • if a parent node (at any level) has only one child (which in turn has children), then checking or unchecking the parent does not cascade, but it will if the parent has multiple child nodes

For each area, we would like to know whether (a) you have a fix already or (b) you can set us straight on the intended functionality (and maybe point us to the right place in the documentation).

Thanks!

okay, thanks for your response.

thank you! all working now.

Thank you responding. I got the angular app to select tenant by updating remoteserviceBaseUrl and ServerRootAddress to have {TENANCY_NAME}.

How do I go to tenant login page now, I would also like to have the ability to be able to set tenant by coming to a host url.

Hello,

I'm trying to update azure devops build pipeline to run nswag as part of build process. To run the api i added "dotnet run " step as part of build. But when dotnet run task is run, azure devops pipeline gets paused on that step. Is there a way to refresh serviceproxies using nswag but without having to run the api?

As of now, we rely on each developer to checkin service proxies file.

Please advise.

Hello,

We are trying to setup tenant selection by subdomain as mentioned in documenation https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Overview-Angular#multi-tenancy .

appconfig.json in angular looks like - "remoteServiceBaseUrl": "https://api-dev.domain.org", "appBaseUrl": "https://{TENANCY_NAME}.dev.domain.org",

And in api project appsettings.json is "ServerRootAddress": "https://api-dev.domain.org", "ClientRootAddress": "https://{TENANCY_NAME}.dev.domain.org", "CorsOrigins": "https://.dev.domain.org,https://.domain.org",

Api and angular are setup as separate applications in iis, and I have verified that the wildcard binding is working as expected. After setting this up, When I go to tenant specific url I dont see any cookie getting set with tenantid. I have checked AppPreBootstrap.ts file in angular, and I dont see any code that is setting cookie when using subdomain for tenant selection.

Please advise.

Thank you,

Thats it! I changed the method name to not have Get in the name and now I am seeing what I needed to see! Thank you very much for your help.

The resulting method is generated in the service-proxies.ts file similar to below:

getSomeResult(filter: string | null | undefined, firstName: string | null | undefined, lastName: string | null | undefined, satOperator: NumericComparisonOperator | null | undefined, etc,)  {  ....   }

while it is defined in the C# API code similar to this:

 public async Task<PagedResultDto<SomeResponseDto>> GetSomeResult(MyLargeInputDto input) {  ...  }
Showing 1 to 10 of 41 entries