From 701ea19f800ce700a365ac4e3ab44ac04668a986 Mon Sep 17 00:00:00 2001 From: Kevin Zhang <42101107+Kevin101Zhang@users.noreply.github.com> Date: Wed, 31 Jul 2024 19:42:53 -0400 Subject: [PATCH] fix: removed overwritting of indexername in obj (#962) Databricks stores account and function names in their sanitized form (Only alphanumerics and underscores) as this is how they are stored in Hasura. However, the actual indexer and accounts are stored in both RPC and the queryapi_indexer under their original names. This PR prevents the metadata from databricks overwriting the original names with the sanitized ones. --- frontend/widgets/src/QueryApi.IndexerExplorer.jsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/widgets/src/QueryApi.IndexerExplorer.jsx b/frontend/widgets/src/QueryApi.IndexerExplorer.jsx index 02f99c3c..8456be1c 100644 --- a/frontend/widgets/src/QueryApi.IndexerExplorer.jsx +++ b/frontend/widgets/src/QueryApi.IndexerExplorer.jsx @@ -74,9 +74,9 @@ const fetchIndexerData = () => { const sanitizedAccountID = author_account_id.replace(/\./g, '_'); const key = `${sanitizedAccountID}/${indexer_name}`; return ({ + ...(indexerMetaData.has(key) && indexerMetaData.get(key)), accountId: author_account_id, indexerName: indexer_name, - ...(indexerMetaData.has(key) && indexerMetaData.get(key)) }) }); // sort by numQueries @@ -158,8 +158,6 @@ const fetchIndexerMetadata = () => { original_deployment_date }) => { const indexer = { - accountId: indexer_account_id, - indexerName: indexer_name, lastDeploymentDate: last_deployment_date, numDeployements: num_deployements, numQueries: num_queries,