Form breaks with "Error rendering widget (tagger):

Open
#54 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
frontend

Research direction

Start at the form-rendering path for the WidgetTagger error and inspect how the schema at .item_assets.2.roles is handled when its items have enum options. Determine whether the data or widget configuration causes the failure; done means the affected demo collection form renders without crashing and the roles field remains usable.

Written by the indexing model from the issue text.

Description

When attempting to edit some of the demo collections in EOEPCA STAC (https://eoapi.apx.develop.eoepca.org/manager/collections/sentinel-2-iceland/edit), the form crashes with:

Image
WidgetTagger: 'items.allowOther.type' is required for the 'tagger' widget with 'enum' options. Use the 'select' widget instead.
@.item_assets.2.roles 
{
  "label": "Roles",
  "type": "array",
  "ui:widget": "tagger",
  "items": {
    "label": "Role",
    "type": "string",
    "enum": [
      [
        "thumbnail",
        "Thumbnail"
      ],
      [
        "overview",
        "Overview"
      ],
      [
        "data",
        "Data"
      ],
      [
        "metadata",
        "Metadata"
      ]
    ]
  }
}

is this an issue with the data and / or can STAC Manager be more robust against this?

Dominant language
TypeScript
Stars
39
Forks
10
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from developmentseed/stac-manager

All issues in developmentseed/stac-manager

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.