You closed the issue without further comment. Did you manage to reproduce it? Are you going to fix it? Are my credits getting refunded?
Some routes of a child entity have the wrong name on the server side if the master entity is camel-cased.
HttpApi
project the ChildController.cs
with the following 2 methods:[HttpGet]
[Route("by-masterentity")]
public virtual Task<PagedResultDto<ChildDto>> GetListByMasterEntityIdAsync(GetChildListInput input)
{
...
[HttpGet]
[Route("detailed/by-masterentity")]
...
by-master-entity
instead of by-masterentity
- so whenever you create a new master entry, the client will show a "Resource not found" because it gets a 404 from the server (the client proxy uses the correct route on the Angular side!)As a workaround I modified the ChildController.Extended.cs
controller by overriding the 2 methods and correcting the route attributes.
All template files whose filenames are not unique (e.g. all files in angular\.suite\schematics\commands\generate-entity\files
have exactly the same name as in angular\.suite\schematics\commands\generate-entity\child-files
) cannot be customized properly using ABP Suite, i.e. once you change the template of one of these files, both templates will be marked as modified (and outdated) and both files will get the changes applied (although the original files are completely different).
As this does not happen to all other templates that don't have duplicate names I guess this must have something to do with those duplicate names.
As a workaround I modified the templates manually and wrote a postinstall script to replace the ones in angular\.suite\schematics\commands\generate-entity\
- although using ABP Suite for this would be highly appreciated.
Cheers Joe
PS: Maybe this unresolved issue is related or even the same? https://support.abp.io/QA/Questions/2073/Customizing-Angular-Templates-has-no-effect