There is an issue in SettingsWebview.ts where the ttl_days gets set to 0 when the value is blank. When the ttl_days is set to 0, all documents created are immediately deleted.
Version: v2.0.2 (Fauna v4)
Repro Steps:
- Click the + button beside Databases
- Choose
collection
- Type in any arbitrary name (i.e.:
test)
- Leave the TTL field blank
- Click
Create
- Click the + button beside Databases
- Choose 'document'
- Choose the Collection just created (i.e.:
test)
- Add in any arbitrary data
- Save the document
- Query the documents for the Collection
Paginate(Documents(Collection("test"))
Results:
No documents
Expected Results:
The document appears in the query