graphile / crystal

🔮 Graphile's Crystal Monorepo; home to Grafast, PostGraphile, pg-introspection, pg-sql2 and much more!
https://graphile.org/
Other
12.62k stars 571 forks source link

Behavior plugin is not updating when removing lines from `tags.json5` #2236

Open hos opened 2 weeks ago

hos commented 2 weeks ago

Summary

When I add behavior tag in the tags.json5 file, for example +filterBy, it instantly adds the filter on the input and I can see it in ruru/graphiql. But when I comment that line or remove it, the schema is not updated until I will restart the server.

Steps to reproduce

Here is the reproducible using ouch-my-finger. I used this sql

create table public.users(name text);

Expected results

I expect the schema to be updated, as if there was no tag at all.

Actual results

Schema is updated only after server restart if the text is removed from the tags.json5 file. If I replace +filterBy with -filterBy and vice-versa, it updates, but when I remove the line schema stays the same until the restart.

Additional context

Node v22.11 All the deps are update to the latest version of the moment of writing in the reproducible.

Possible Solution

Not a solution, but, I guess it may be related to this issue (discord message).