tursodatabase / turso-docs

Turso Documentation
https://docs.turso.tech
MIT License
11 stars 49 forks source link

rename archived to sleeping #147

Closed notrab closed 7 months ago

athoscouto commented 7 months ago

That is not what the API is returning though, is it? @notrab

notrab commented 7 months ago

@athoscouto yeah the API returns sleeping:

{
    "database": {
        "Name": "myrootschema",
        "DbId": "b8e89975-d722-11ee-a86f-f2e159adf5c7",
        "Hostname": "myrootschema-notrab.turso.io",
        "is_schema": false,
        "schema": "",
        "block_reads": false,
        "block_writes": false,
        "allow_attach": false,
        "type": "logical",
        "hostname": "myrootschema-notrab.turso.io",
        "version": "0.22.22",
        "sleeping": false
    }
}
athoscouto commented 7 months ago

@notrab but does the group model also have a sleeping field? We may be talking about different endpoints, but the ones that return a group that I see come with the archived field.

notrab commented 7 months ago

@athoscouto ah, yes. Good catch! I was adding the sleeping field in another PR for databases, and when I came back to it I must have forgot the context 🤦🏻

@gris do we want to update the API to return sleeping there also?

athoscouto commented 7 months ago

@notrab let me get that fixed 🤓

notrab commented 7 months ago

I'll close this for now, but we can reopen once we unify the API responses elsewhere.