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

Creating a new indexer takes you to the indexer #226

Open
Tracked by #212 ...
Ishatt opened this issue Sep 26, 2023 · 3 comments
Open
Tracked by #212 ...

Creating a new indexer takes you to the indexer #226

Ishatt opened this issue Sep 26, 2023 · 3 comments
Assignees
Labels
bug Something isn't working component: Frontend

Comments

@Ishatt
Copy link
Contributor

Ishatt commented Sep 26, 2023

Description

The Social VM does not support a callback function to Near.call. So we do not know when the user signed the transaction and submitted it and at what point the indexer will be on-chain ready to be viewed and queried. This ends up in bad UX for the user because we send them to the new indexer(that has not yet been created, so it is buggy).

As an alternative, we will create an Alert that links to the new indexer once the user forks, publishes, or creates a new indexer for added convienence.

@pkudinov
Copy link
Collaborator

@roshaans , is there still a blocker on the VM side to implement this?

@roshaans
Copy link
Contributor

roshaans commented Nov 1, 2023

@roshaans , is there still a blocker on the VM side to implement this?

No blocker from VM. We simply need to create a QueryAPI indexer that lets clients know through a websocket subscription started upon new indexer creation has been successfully executed on the blockchain, so that client can know when it is safe to redirect the user to the newly created indexer as it does not exist on-chain before instantly.

@gabehamilton
Copy link
Collaborator

Could we instead just poll read_indexer_function until it exists?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component: Frontend
Projects
None yet
Development

No branches or pull requests

6 participants