molgenis / molgenis-emx2

MOLGENIS EMX2, the latest version of the MOLGENIS data platform.
GNU Lesser General Public License v3.0
14 stars 16 forks source link

Not possible to add records via UI in an empty table #4130

Closed dtroelofsprins closed 1 month ago

dtroelofsprins commented 1 month ago

What version of EMX2 are you using (see footer) v10.109.1 => v10.109.0 WORKS FINE

Describe the bug When either, using a template (without demo data), create a database and then upload molgenis.csv or add a new table via the Schema editor => in alle cases opening a table doesn't show the table explorer (actually it's quickly shown, but then an empty screen is shown), making it impossible to add data via UI in an empty table

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://emx2.dev.molgenis.org'
  2. Create a database with the pet store template without demo data
  3. Open one of the tables, f.e. the Pets
  4. See an empty screen

Expected behavior Adding data to an empty table should be possible by using the table explorer!

Screenshots image

Desktop (please complete the following information):

Additional context When demodata option = true OR adding data via upload, the table explorer works fine.

MaxPostema commented 1 month ago

Quick look, i think in this PR some use case was overlooked: https://github.com/molgenis/molgenis-emx2/pull/4108