wso2/product-apim

View GraphQL query analysis values in devportal tryout

Aberta

#12.490 aberto em 25 de fev. de 2022

 (1 comentário) (0 reação) (0 responsável)Java (936 forks)auto 404
Feature/GraphQLPriority/NormalType/Improvementgood first issue

Métricas do repositório

Stars
 (1.002 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Describe your problem(s)

In the "Complexity Analysis" tab in GraphQL try-out page in devportal, we can see only the complexity Values of each field. If we want to know the complexity value or the depth value, we have to calculate ourself manually. Instead, it would be a nice to have feature to have the possibility to display the calculated complexity/depth values on a button click. So before executing the queries, user would know the complexity/depth value of them.

Another important concern is that eventhough we have named this tab as "Complexity Analysis", there is no analysis doable via that tab. It only displays the complexity values ATM. So the current implementation of the tab is not doing what it says as doing. If we add a capability as $subject this tab name "Complexity Analysis" would be meaningful.

Describe your solution

Should be possible to re-use/adapt the implementation of GraphQLQueryAnalysisHandler to implement this improvement.

Guia do colaborador