qcif / data-curator

Data Curator - share usable open data
MIT License
265 stars 38 forks source link

Overwriting data and resetting data #1022

Open ghost opened 4 years ago

ghost commented 4 years ago

At the moment Data Curator handles new vs old data by just opening new tabs whenever new data comes in. This can be awkward for importing a Data Package which will now have tabs (those that existed before the import) that aren't relevant. This includes the scenario at the beginning on first opening Data Curator as it always opens with 1 tab - see #1020 As Data Curator is starting to offer more flexibility with metadata without data (#987, #986, #852), we need to offer options for DC behaviour (but still using convention over configuration ie: have defaults in place) The preferences menu is an easy go-to to use to begin with. I'm also mindful not to create too many options or at least show some sensible defaults. So as a start something like:

Then if the preference "Use/Overwrite existing data on import" is not ticked/selected, Data Curator would act as it does now:

For both overwrite and not overwrite, not sure whether metadata is:

OK the above is a bit messy, but I'll spin these out into separate issues as the capacity to work on these is offered.