archesproject / arches

Arches is a web platform for creating, managing, & visualizing geospatial data. Arches was inspired by the needs of the Cultural Heritage community, particularly the widespread need of organizations to build & manage cultural heritage inventories
GNU Affero General Public License v3.0
212 stars 142 forks source link

Cards under file-list node do not behave in creator like in designer #6174

Open azaroth42 opened 4 years ago

azaroth42 commented 4 years ago

Describe the bug

In arches-for-science, we are trying to associate metadata with file entries in a file-list to be able to link the file to the experimental parameters that were used to produce it. In order to keep similar files together and enable batch upload, we need to have this in a single model that then refers out to other resource instances.

In the graph designer, this appears to work as expected:

Screen Shot 2020-05-12 at 10 40 53 AM

Files is a file-list, Creation is semantic, Used Instrument and Part of Experiment are resource-instances, Creation Procedure is Semantic, as is Dimension (and allows multiple values).

The cards in design display correctly:

Screen Shot 2020-05-12 at 11 49 34 AM

and

Screen Shot 2020-05-12 at 11 49 45 AM

But in the resource editor it gets very messed up:

Screen Shot 2020-05-12 at 11 50 41 AM

With multiple entries per card, and the resource-instance widgets are gone.

To Reproduce

Set up the above sort of structure

Expected behavior

Resource editor should look like graph designer mode.

chrabyrd commented 4 years ago

After some investigation and discussion with the rest of the development team, this component is functioning correctly. It is fundamentally different from the Designer trees. We are currently using a card's first widget as a placeholder for its tiles, hence the rest of the widgets being cut off. Similar case with double-labels.

I agree this is could stand a redesign in the future. As such moving this to Icebox for now 🧊