surrealdb / surrealist

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

Saving a scope moves value in input field of SIGNUP to SIGNIN and makes value of SIGNUP and SESSION empty #219

Closed 5hanth closed 3 months ago

5hanth commented 3 months ago

Describe the bug

Screenshot 2024-04-25 at 10 05 32

To Reproduce Steps to reproduce the behavior:

  1. Go to scope creation
  2. Input valid values for SIGNIN, SIGNUP, SESSION (2d)
  3. Click save
  4. You will find value in input field of SIGNUP being moved to SIGNIN and value of SIGNUP and SESSION would become void

Bug It appears the payload being sent is sending SIGNIN twice:

DEFINE SCOPE foo SESSION 3h SIGNIN (SELECT * FROM foo) SIGNIN (CREATE foo)

Expected behavior Values should exist in places where they were given.

DEFINE SCOPE foo SESSION 3h SIGNIN (SELECT * FROM foo) SIGNUP (CREATE foo)

Environment:

Version 2.0.2 (20240424.110210)
5hanth commented 3 months ago

created a PR #220