Skip to content

Conversation

@tk-o
Copy link
Contributor

@tk-o tk-o commented Apr 30, 2025

This PR allows ENSAdmin to display indexing status for chains that have not yet been indexed.

Also, this PR adds sorting the timelines by the indexing start date to allow nice waterfall view of indexing status timelines.

Before

image

After

URL: https://adminensnodeio-git-fix-468-allow-chains-pending-ba615f-namehash.vercel.app/status?ensnode=https%3A%2F%2Fapi.alpha.green.ensnode.io%2F

image

Resolves #468

@tk-o tk-o requested a review from a team as a code owner April 30, 2025 18:37
@changeset-bot
Copy link

changeset-bot bot commented Apr 30, 2025

🦋 Changeset detected

Latest commit: 5708662

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
ensadmin Patch
ensindexer Patch
ensrainbow Patch
@ensnode/ens-deployments Patch
@ensnode/utils Patch
@ensnode/ensrainbow-sdk Patch
@ensnode/ponder-metadata Patch
@ensnode/ponder-schema Patch
@ensnode/ponder-subgraph Patch
@ensnode/shared-configs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Contributor

vercel bot commented Apr 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
admin.ensnode.io ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 30, 2025 6:38pm
ensnode.io ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 30, 2025 6:38pm
ensrainbow.io ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 30, 2025 6:38pm

Comment on lines -82 to -92
const networksWithoutLastIndexedBlock = Object.entries(networkIndexingStatusByChainId).filter(
([, network]) => network.lastIndexedBlock === null,
);

if (networksWithoutLastIndexedBlock.length > 0) {
throw new Error(
`Missing last indexed block for some networks with the following chain IDs: ${networksWithoutLastIndexedBlock
.map(([chainId]) => chainId)
.join(", ")}`,
);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a legit case for a chain not to include the last indexed block value. For example, the chain might be waiting for its turn to be indexed. For the time being, I'll make the viewmodel responsible for mapping proper UI output.

Comment on lines -368 to -370
if (!currentIndexingDate) {
return <IndexingTimelineFallback />;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Always display a timeline for a chain status. It might be just in the queued indexing phase.

@tk-o tk-o merged commit 95119d2 into main Apr 30, 2025
7 checks passed
@tk-o tk-o deleted the fix/468-allow-chains-pending-indexing branch April 30, 2025 18:43
@github-actions github-actions bot mentioned this pull request Apr 30, 2025
@tk-o
Copy link
Contributor Author

tk-o commented May 12, 2025

Resolves #663

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ENSAdmin: Bug When API is down

3 participants