Hi there, I'm consuming the graphql API and facing...
# getting-started
s
Hi there, I'm consuming the graphql API and facing a refresh problem. I updated the "About" section of a dashboard using the datahub interface, but when I call the graphql API I'm still getting the old value of it. Is the any cache configuration or something I should do to refresh this data? I'm using this query to get the data
Copy code
query GetDashboards($textoBusca: String!) {
        search(input: { count: 1000,type: DASHBOARD, query: $textoBusca}) {
          searchResults {
            entity {
              urn
              type
              ... on Dashboard {
                tool
                info {
                  name
                  description
                  externalUrl
                }
                status {
                  removed
                }
                platform {
                  name
                }
                domain {
                  properties{
                    name
                  }
                }
              }
            }
          }
        }
      }
and the info -> description is the field holding the "about" info.
g
The SearchService has a cache, but I don't know if it would cause this problem. Did you check if the editableProperties aspect on you persistence storage were updated? If yes, maybe try to restore your indices on elasticsearch.
s
No I didn't. How do I check the editableProperties aspect?
g
Are you Brazillian? Supeito por conta do $textoBusca
s
haha. sim!
g
Bom, Você esta usando MySQL como camada de persistência?
Se sim, tenta acessa-lo usando algum gerenciador tipo o dbeaver e busca pelam tabela 'metadata_aspect_v2'
s
Na verdade, eu não estou por dentro da instalação e configuração do datahub em si. Meu envolvimento se dá pois estou construindo uma outra aplicação em react + node que consome alguns dados dessa API graphql do datahub, mas não sei exatamente qual base estão utilizando no datahub nem tenho acesso à ela, mas irei providenciar essas informações e tentar verificar essa tabela que você comenta
g
Hmm, entendi. Eu não tenho 100% de certeza sobre o que pode estar acontecendo, mas sei que o graphql bate no banco de dados para fazer as buscas. Tem uma espécie de cache que eu não sei como funciona, mas no meu caso nunca notei esses erros de refresh pois só implementei aplicações para fazer ingestão e nenhuma para consumir do graphql de fato. Qualquer coisa que eu puder ajudar, to por aqui!
s
Já deu um norte. vou tentar verificar essas sugestões que você deu. Muito obrigado!