hasura / hasura/graphql-engine

Custom functions not tracked after restarting

Open
#10,245 0 comments 0 reactions 0 assignees View on GitHub
k/bug
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): 2.37.0

### Environment

local

### What is the current behaviour?

When i restart the hasura container using the hasura/graphql-engine:v2.37.0.cli-migrations-v3, custom functions that i have tracked before and show in metadata files (see screenshots) are untracked and i must manually add them back by clicking "TRACK"

### What is the expected behaviour?

It's expected that tracked custom functions would pull from metadata files

### How to reproduce the issue?

idk - sorry

### Screenshots or Screencast

![Screenshot 2024-05-19 at 6 20 43 AM](https://github.com/hasura/graphql-engine/assets/6884144/835fa423-b0b6-4af1-bb00-aa5e34ef074d)

![Screenshot 2024-05-19 at 6 20 37 AM](https://github.com/hasura/graphql-engine/assets/6884144/f88d9e51-7f89-462b-9600-6becee4ff5e9)

### Please provide any traces or logs that could help here.

no errors. functions are just untracked

### Any possible solutions/workarounds you're aware of?

i am going to try calling the metadata API to reenable on startup

### Keywords

Custom Functions, Untracked

Contributor guide

Open the contributing guide

Research direction

Start with the metadata files and metadata API, then reproduce the restart of the hasura/graphql-engine:v2.37.0.cli-migrations-v3 container. Compare the recorded custom functions with the functions shown as untracked after restart. Done means tracked custom functions are restored from metadata without manually clicking TRACK.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.