zernonia / supabase-schema

Secured & Simple Supabase Schema Visualizer

Home Page:https://supabase-schema.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Export Types" fails for self-referencing foreign key

kbsali opened this issue · comments

I have a self-referencing foreign key on one of my tables (concretely category.parent_id),
the diagram shows it perfectly, but exporting to types fails (memory leak?).

Hi again @kbsali ! 😂
Thank you so much for reporting this issue.

Could you perhaps share a screenshot of the diagram, and a snapshot after you click export types? Appreciate it!

Here is before adding the self ref foreign key :
image

And after :
image

Not sure about the "snapshot after you click export", it just won't work! 😬

Thank you so much for the input! Yeah this could be memory leak due to self referencing infinitely.

Bugged fix on 7fb36c4 .
This is indeed causes by self-referencing infinite loop.

Thank you for reporting this, and the patience! 😄

awesome, thank YOU for being so reactive on that one! :)

The export buttons are failing for me without a self referencing foreign key. The page crashes.

I haven't been able to debug the issue.

Screen Shot 2022-05-26 at 11 13 47 PM