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

Development: add ability to mock states #225

Open
sohkai opened this issue Mar 4, 2020 · 0 comments · May be fixed by #269
Open

Development: add ability to mock states #225

sohkai opened this issue Mar 4, 2020 · 0 comments · May be fixed by #269
Assignees
Labels
research Requires research before implementing

Comments

@sohkai
Copy link
Contributor

sohkai commented Mar 4, 2020

It would be very, very useful to have a way to easily mock dispute state.

For example, testing the final appeal round of a dispute is incredibly difficult and time consuming today.


There may be a variety of ways to tackling this that we can research:

  • Mock graphQL queries
  • Override specific parts of graphQL queries
  • Scripts to set up chain environment

My preference would be to see if we can do this at the graphQL layer, as scaffolding a chain and bringing it down would be time consuming. Doing it at the query layer would also likely allow us to easily manipulate the frontend from the frontend itself in the future.

The con to doing it at the query layer is that we wouldn't be able to run any action, but this is acceptable to me; the state transitions of the subgraph are something we should test separately.

@sohkai sohkai added the research Requires research before implementing label Mar 4, 2020
@fabriziovigevani fabriziovigevani linked a pull request Apr 16, 2020 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
research Requires research before implementing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants