clowder-framework / clowder

A data management system that allows users to share, annotate, organize and analyze large collections of datasets. It provides support for extensible metadata annotation using JSON-LD and a distribute analytics event bus for automatic curation of uploaded data.
https://clowderframework.org/
University of Illinois/NCSA Open Source License
33 stars 17 forks source link

Vega previewer tab shows even if vega definition is not in metadata #408

Open lmarini opened 1 year ago

lmarini commented 1 year ago

The vega.js previewer runs on files of type application/json and text/csv. If the file doesn't have a preview, no tabs are shown. But if the file has a preview, for example a png image, the vega.js previewer tab shows in the list even if the files doesn't have a vega definition with it.

Looking at the code, it should show "Invalid JSON is provided for Vega specs" on the page, but we didn't see that.