vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Creating Collections through Create SettingsWebView sets ttl_days to 0 when Blank

Open andyvanosdale opened this issue 2 years ago • 1 comments

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:

  1. Click the + button beside Databases
  2. Choose collection
  3. Type in any arbitrary name (i.e.: test)
  4. Leave the TTL field blank
  5. Click Create
  6. Click the + button beside Databases
  7. Choose 'document'
  8. Choose the Collection just created (i.e.: test)
  9. Add in any arbitrary data
  10. Save the document
  11. Query the documents for the Collection
Paginate(Documents(Collection("test"))

Results: No documents

Expected Results: The document appears in the query

andyvanosdale avatar Nov 09 '23 02:11 andyvanosdale

Internal ticket number is FE-4747

github-actions[bot] avatar Nov 09 '23 02:11 github-actions[bot]