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
35 stars 17 forks source link

Metadata custom URL input list not populating #325

Open Pita440 opened 2 years ago

Pita440 commented 2 years ago

Describe the bug I am trying to use the “Definitions URL” option for a new “List” type metadata term. However, it is unclear how a user should create or format their URL data to return to Clowder for use. Also, the listed default metadata tags that use this “Definitions URL” do not work, so it’s unclear how a user is supposed to use this custom URL functionality.

To Reproduce Steps to reproduce the behavior:

  1. Go to a Space
  2. Click on the “Manage Metadata Terms & Definitions”
  3. Scroll down to the “Add a Metadata Term”
  4. Try to create a new term with “Type” as “List” and using a “Definitions URL” for the “Defined by” as “URL”

Expected behavior I expected clearer instructions for how a custom URL should return data for use in Clowder and that default metadata examples of custom URL lists would work. It would be helpful to link to detailed instructions of how to format the data returned by a custom URL, such as an example JSON or “required fields” schematic.

Screenshots The default examples are URLs that don’t work (404 error message). But even if the link did work, it is unclear how a user is supposed to create or format their URL data to return for Clowder to use.

image

Trying to use the default URL list tag returns an empty dropdown menu.

image

Desktop (please complete the following information):

lmarini commented 2 years ago

Hi @Pita440. Thanks for submitting this ticket. This might be related to a confusing interface. For List there is two types:

In the screenshot above the URL being validate is currently not up, hence the error. If you have a local list you want to use the easiest way would be to use Defined by Literal.