seek4science / seek

For finding, sharing and exchanging Data, Models, Simulations and Processes in Science.
http://www.seek4science.org
BSD 3-Clause "New" or "Revised" License
77 stars 52 forks source link

Check how associations are handled during FAIR data station merging #2033

Open stuzart opened 1 month ago

stuzart commented 1 month ago

Currently child associations are removed and then rebuilt, e.g.

https://github.com/seek4science/seek/blob/main/lib/seek/fair_data_station/writer.rb#L149

but this could have implications for partial merges, where the template only contains information items to be updated, or where items have been associated through the UI. It's not currently clear how easy this would be to change, and if difficult how much of a priority it is. Needs some test cases building and playing around with different solutions.