pefernan opened a new issue, #1974:
URL: https://github.com/apache/incubator-kie-issues/issues/1974

   Recently some Counter graphQL queries where added to Data Index to show the 
number of the indexed elements in Data Index. 
   
   The available queries are
   * _CountProcessInstances_: number of process instances
   * _CountUserTaskInstances_: number of usertasks
   * _CountProcessDefinitions_: number of process definitions
   * _CountJobs_: number of jobs
   
   Some of those queries (_CountProcessDefinitions_ & _CountJobs_) in the 
`process-compact-architecture` example (with active instances) return *null* 
result while they should return a numeric value.
   
   We should review the behaviour in the Data Index Addons Quarkus JPA with 
different DB and fix it.
   
   Example graphQL Query:
   ```
   {
     CountJobs
     CountProcessInstances
     CountUserTaskInstances
     CountProcessDefinitions
   }
   ```
   
   Response we get:
   
   ```
   {
     "data": {
       "CountJobs": null,
       "CountProcessInstances": 4,
       "CountUserTaskInstances": 6,
       "CountProcessDefinitions": null
     }
   }
   ```
   
   
   Apparently the count queries aren't registered in 
https://github.com/apache/incubator-kie-kogito-apps/blob/main/data-index/data-index-graphql/src/main/java/org/kie/kogito/index/graphql/AbstractGraphQLSchemaManager.java#L132


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to