hasura / hasura/graphql-engine
REST Endpoints do not load initially in console
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 32.1k
- Forks
- 3k
- PR merge metrics
- PR metrics pending
Description
Version Information
Server Version:
CLI Version (for CLI related issue): hasura/graphql-engine:v2.0.9.cli-migrations-v3
Environment
Docker image hasura/graphql-engine:v2.0.9.cli-migrations-v3
What is the expected behaviour?
When the container is started, the REST endpoints should load from the codified metadata.
Keywords
REST
What is the current behaviour?
The page shows the default info, rather than a list of the codified endpoints:
However, if you add another dummy endpoint via the console, the codified endpoints appear:
How to reproduce the issue?
- Create a codified rest endpoint in the
metadata/rest_endpoints.yaml. - Spin up the docker image and go to the hasura console.
- Click on the API tab, and choose the REST tab.
- The endpoint will not load.
- Add another dummy endpoint and the endpoints should all load.
Screenshots or Screencast
See above.
Any possible solutions?
I haven't had a chance to look into it, but guessing it's an issue with state not being updated?
Can you identify the location in the source code where the problem exists?
I haven't had a chance to look
If the bug is confirmed, would you be willing to submit a PR?
Sure
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue using metadata/rest_endpoints.yaml and the Docker image, then inspect the console's API > REST view during startup. Confirm the behavior with codified endpoints and without adding a dummy endpoint. Done means the codified REST endpoints appear initially in the console.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100