-
Notifications
You must be signed in to change notification settings - Fork 16
fix(ensadmin): allow displaying networks that have not yet been indexed #686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 5708662 The changes in this PR will be included in the next version bump. This PR includes changesets to release 10 packages
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 |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| 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(", ")}`, | ||
| ); | ||
| } |
There was a problem hiding this comment.
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.
| if (!currentIndexingDate) { | ||
| return <IndexingTimelineFallback />; | ||
| } |
There was a problem hiding this comment.
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.
|
Resolves #663 |
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
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
Resolves #468