أنشطة "andmattia"

  • ABP Framework version: v7.4.5

I've a solution in 7.4.5 with angular UI. If I try to add a properties from suite it works for backend but not for angular

2024-06-07 12:15:51.771 +02:00 [INF] 1/2 - GenerateProxyCommand started...
2024-06-07 12:15:51.776 +02:00 [INF] 1/2 - GenerateProxyCommand completed.                            | Duration: 1 ms.
2024-06-07 12:15:51.777 +02:00 [INF] 2/2 - AngularUiGenerateWithSchematicsCommand started...
2024-06-07 12:16:26.147 +02:00 [INF] Running the Angular Schematics command:
node run-schematics.mjs "C:/Repos/my-module/angular/.suite/schematics/node_modules/.bin/ng" g ".suite/schematics/collection.json:entity" module-pro Dm.MyModule "C:/Repos/my-module/.suite/entities/Product.json" "C:/Repos/my-module/angular"
2024-06-07 12:16:29.365 +02:00 [INF] Angular Schematics command failed.
C:\Repos\my-module\angular\.suite\schematics\node_modules\execa\lib\error.js:60

                               error = new Error(message);
                                       ^ 
Error: Command failed with exit code 1: .suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template module-pro --target Dm.MyModule --source C:/Repos/my-module/.suite/entities/Product.json

Could not find an NgModule. Use the '--skip-import' option to skip importing in NgModule.
    at makeError (C:\Repos\my-module\angular\.suite\schematics\node_modules\execa\lib\error.js:60:11)
    at handlePromise (C:\Repos\my-module\angular\.suite\schematics\node_modules\execa\index.js:118:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///C:/Repos/my-module/angular/.suite/schematics/run-schematics.mjs:6:20 {
  shortMessage: 'Command failed with exit code 1: .suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template module-pro --target Dm.MyModule --source C:/Repos/my-module/.suite/entities/Product.json',
  command: '.suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template module-pro --target Dm.MyModule --source C:/Repos/my-module/.suite/entities/Product.json',
  escapedCommand: '".suite/schematics/node_modules/.bin/ng" g ".suite/schematics/collection.json:entity" --template module-pro --target Dm.MyModule --source "C:/Repos/my-module/.suite/entities/Product.json"',
  exitCode: 1,
  signal: undefined,
  signalDescription: undefined,
  stdout: '',
  stderr: "Could not find an NgModule. Use the '--skip-import' option to skip importing in NgModule.",
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}

Node.js v18.12.0

 

2024-06-07 12:16:29.523 +02:00 [INF] 2/2 - AngularUiGenerateWithSchematicsCommand completed.          | Duration: 37746 ms.
2024-06-07 12:16:29.524 +02:00 [INF] Entity generation completed in 38 sec.
2024-06-07 12:16:29.535 +02:00 [INF] Executing StatusCodeResult, setting HTTP status code 204
2024-06-07 12:16:29.536 +02:00 [INF] Executed action Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync (Volo.Abp.Suite) in 38903.462ms
2024-06-07 12:16:29.536 +02:00 [INF] Executed endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync (Volo.Abp.Suite)'
2024-06-07 12:16:29.536 +02:00 [INF] Request finished HTTP/1.1 POST http://localhost:3000/api/abpSuite/crudPageGenerator/13c78b2d-bf62-4562-8522-0cb7020aae48/save-and-generate-entity application/json 2761 - 204 - - 38910.8480ms
2024-06-07 12:16:29.582 +02:00 [INF] Request starting HTTP/1.1 GET http://localhost:3000/api/abpSuite/crudPageGenerator/13c78b2d-bf62-4562-8522-0cb7020aae48/entities application/json -
2024-06-07 12:16:29.584 +02:00 [INF] Executing endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntitiesAsync (Volo.Abp.Suite)'
2024-06-07 12:16:29.584 +02:00 [INF] Route matched with {controller = "crudPageGenerator", action = "GetEntities", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Volo.Abp.Suite.Models.EntityModel]] GetEntitiesAsync(System.Guid) on controller Volo.Abp.Suite.Controllers.CrudPageGeneratorController (Volo.Abp.Suite).
2024-06-07 12:16:29.614 +02:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Volo.Abp.Suite.Models.EntityModel, Volo.Abp.Suite, Version=7.4.5.0, Culture=neutral, PublicKeyToken=null]]'.
2024-06-07 12:16:29.616 +02:00 [INF] Executed action Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntitiesAsync (Volo.Abp.Suite) in 31.7284ms
2024-06-07 12:16:29.617 +02:00 [INF] Executed endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntitiesAsync (Volo.Abp.Suite)'
2024-06-07 12:16:29.617 +02:00 [INF] Request finished HTTP/1.1 GET http://localhost:3000/api/abpSuite/crudPageGenerator/13c78b2d-bf62-4562-8522-0cb7020aae48/entities application/json - - 200 - application/json;+charset=utf-8 34.8559ms

I try to use --skip-import but it doesn't work.

إجابة

When you say ‘I would suggest that services not depend on each other,’ do you mean that each service must be independent? Should I use events via a buffer to get data from other services? But generally speaking, if I need to check the stock level and the stock level is managed by the stock service, how can I achieve that?

إجابة

I’ve checked the documentation, but it’s not clear and the pattern we need to solve is not covered. My question is more related to best practices and potential bottlenecks.

سؤال

I have 2 microservices. In one of them, I expose an API to geolocate a point via GMaps.

So now I'm in this situation:

  • Service 1, where the geolocation API is deployed, needs information from Service 2.
  • Service 2, in some cases, needs to geolocate its data.

I can't reference my application contract from Service 1 in Service 2, and at the same time, I can't add the contract from Service 1 to Service 2. I tried to call my HttpClient from the Domain, but I can't check permissions and still have a 401 issue.

So my questions are:

  • Is it correct to call a service (via HttpClient) in the Domain module? Or is it better to call HttpClient only from the Application?
  • In this case, do I need to redesign the architecture and isolate my geolocation service to be called separately by Service 1 and Service 2? Or should I call it via EventBus? If I call it via EventBus, I don't need to import permissions in the application contract.

Hi

great suggestion to solve this case.

But generally speaking which is the best practice to execute operation via backgroud job in a microservice env?

In my case my service has complete different db so it doesn't access to abpUser / abpRole table

We work on a mircroservice applicaction.

I have a function on service 2 (for sending message) that can be use from UI (user can send message) or via backgroud job (every x mins check if I've message to send).

If I try to send message via UI my user is valid and I can pass the token from service 1 -> service 2 but when I try to run it on background job it doesn't work. So it works correctly because background is different process/thread so it don't have an authenticated context.

My question wich is the correct configuration for allow my service 1 work for users and jobs? Is it possibile or I need to move my job in a different service?

إجابة

Thanks

إجابة

Great!

It works fine.

Thanks

إجابة

Hi

it works fine but I've the same issue. Sliding down the background image not slide and my form has not backgroud

إجابة

Hi

How can I push js script into login page (this page is embedded on account DLL).

I can only work on index.

I need to customize all login page to achive this result.

عرض 1 الي 10 من 133 إدخالات
Made with ❤️ on ABP v8.2.0-preview Updated on مارس 25, 2024, 15:11