Skip to content

Issue: Data Folders don't appear to discover valid data files #398

Closed
@michaeltlombardi

Description

@michaeltlombardi

Describe the bug

The frontMatter.data.folders setting does not appear to work.

To Reproduce

Steps to reproduce the behavior:

  1. Create the folder data/tests with empty files foo.json and bar.yaml.

  2. In frontmatter.json, define a data folder:

    "frontMatter.data.folders": [
      {
        "id": "Testable",
        "path": "[[workspace]]/data/tests",
        "labelField": "name",
        "schema": {
          "title": "Test Files",
          "type": "object",
          "properties": {
            "name": {
              "title": "Entry Name",
              "type": "string"
            },
            "example": {
              "title": "Example data",
              "type": "string"
            }
          }
        }
      }
    ]
  3. Open the Data view on the dashboard, see that no data files are found.

Expected behavior

When I define an entry in frontMatter.data.folders, any data files in that folder are found.

Screenshots

Screenshot of the defined data folder in settings, the file structure of the repo showing valid data files in the specified folder, and the data view of the dashboard that found no data files.

Desktop (please complete the following information):

  • VS Code Info:
    • Version: 1.71.0 (system setup)
    • Commit: 784b0177c56c607789f9638da7b6bf3230d47a8c
    • Date: 2022-09-01T07:36:10.600Z
    • Electron: 19.0.12
    • Chromium: 102.0.5005.167
    • Node.js: 16.14.2
    • V8: 10.2.154.15-electron.0
    • OS: Windows_NT x64 10.0.19044
    • Sandboxed: No
  • Front Matter: v8.1.3007760-beta

Additional context

I suspect that this may be related, like #393, to the path discovery on Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions