hasura / hasura/graphql-engine

REST Endpoints do not load initially in console

Open
#8,278 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

c/console k/bug t/gql-services
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:

Screenshot 2022-03-04 at 15 13 10

However, if you add another dummy endpoint via the console, the codified endpoints appear:

Screenshot 2022-03-04 at 15 22 50
How to reproduce the issue?
  1. Create a codified rest endpoint in the metadata/rest_endpoints.yaml.
  2. Spin up the docker image and go to the hasura console.
  3. Click on the API tab, and choose the REST tab.
  4. The endpoint will not load.
  5. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.