Skip to content

Creating Collections through Create SettingsWebView sets ttl_days to 0 when Blank #117

Description

@andyvanosdale

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions