tursodatabase / turso-cli

Command line interface to Turso.
https://turso.tech
MIT License
225 stars 37 forks source link

Inconsistent locations in `db show` for database in a group #630

Closed haaawk closed 1 year ago

haaawk commented 1 year ago

Reproducer:

  1. Create a group with some locations:
    turso group create grouptest --location waw
  2. Add more locations to this group:
    turso group locations add grouptest gru
  3. Create a database in that group:
    turso db create gt --group grouptest
  4. Add another location to the group:
    turso group locations add grouptest lhr
  5. Check db show for the database in the group:
    
    turso db show gt
    Name:           gt
    URL:            libsql://gt-haaawk.turso.io
    ID:             b1c4062b-5399-11ee-acc9-6a3ef16da051
    Locations:      gru, waw
    Size:           0 B

Database Instances: NAME TYPE LOCATION waw primary waw
gru replica gru
lhr replica lhr



`Database Instances:` has a correct location list but `Locations:` section is missing the new location
haaawk commented 1 year ago

disapeared on main so closing