Skip to content

Commit

Permalink
fix: removed overwritting of indexername in obj (#962)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Kevin101Zhang committed Jul 31, 2024
1 parent 7af836b commit 701ea19
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/widgets/src/QueryApi.IndexerExplorer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 701ea19

Please sign in to comment.