Skip to content
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

Dashboard: display index queue #411

Merged
merged 11 commits into from
May 7, 2024

Conversation

jamiehewitt15
Copy link
Member

@jamiehewitt15 jamiehewitt15 commented May 2, 2024

Fixes #290

Changes proposed in this PR:

  • The dashboard now shows the indexing queue:
    image

To Test:

  1. npm run build && npm run start

  2. Add a transaction to the indexing queue. send a POST request to the direct command endpoint: http://127.0.0.1:8000/directCommand

Example body:

{
    "command": "reIndex",
    "chainId": 137,
    "txId": "0xc53ba79bdcdba60c466c401631edc97383c230e1fdd1a734737cdab033446923"
}
  1. You should see the transaction appear in the indexing queue on the dashboard.

@jamiehewitt15 jamiehewitt15 requested a review from alexcos20 as a code owner May 2, 2024 13:32
@jamiehewitt15 jamiehewitt15 changed the base branch from main to develop May 2, 2024 13:35
@jamiehewitt15 jamiehewitt15 self-assigned this May 3, 2024
Copy link
Contributor

@paulo-ocean paulo-ocean left a comment

Choose a reason for hiding this comment

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

LGTM!
not really sure if we should poll the queue every 2 seconds, might be too much

Copy link
Member

@bogdanfazakas bogdanfazakas left a comment

Choose a reason for hiding this comment

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

lgt, just one small suggestion but not mandatory

@jamiehewitt15 jamiehewitt15 merged commit 3e16907 into develop May 7, 2024
6 checks passed
@jamiehewitt15 jamiehewitt15 deleted the issue-290-dashboard-display-index-queue branch May 7, 2024 13:31
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.

Dashboard: Display the current indexing queue
3 participants