surrealdb / surrealist

Surrealist is the ultimate way to visually manage your SurrealDB database
https://surrealist.app/
MIT License
1.06k stars 81 forks source link

Defining record type without table breaks explorer and designer #169

Closed singersbalm closed 4 months ago

singersbalm commented 7 months ago

Describe the bug I tried to define the record type for a table. Every other type seems to work, but it will always show No tables found once the type is defined. I used the rust lib to create the db and execute the queries. INFO FOR DB still works and shows the table.

To Reproduce

DEFINE TABLE kinds SCHEMAFULL;
DEFINE FIELD other_key ON TABLE kinds TYPE record;

or

file kind = SpeeDb, namespace and db both test db.zip surreal start --log debug --user root --pass root speedb:/Path/To/Db

Expected behavior Should show tables

Environment (you can view the current version under Settings):

macjuul commented 7 months ago

This is caused by a known issue in SurrealDB where TYPE record isn't parsing correctly, causing issues for Surrealist. It should be fixed in the next release of SurrealDB. Until then I'll leave this issue open in case more people run into it.

Related #161

michelemoretti commented 6 months ago

I seem to be able to reproduce even with the surreal nightly docker (which should have merged a fix https://github.com/surrealdb/surrealdb/pull/3306)) and the latest version of Surrealist 1.11.3. Is this normal?

macjuul commented 6 months ago

@michelemoretti Surrealist embeds the SurrealDB rust crate for certain operations, which is likely why it is still not working as expected. I'm currently working on a Surrealist update which will fix this issue.

AlbertMarashi commented 6 months ago

Update?

macjuul commented 4 months ago

This should now be working as expected in Surrealist 2.0