rdmorganiser / rdmo

A tool to support the planning, implementation, and organization of research data management.
https://rdmorganiser.github.io
Apache License 2.0
105 stars 49 forks source link

Fix import element sorting when saving (for related items) #1078

Closed MyPyDavid closed 3 months ago

MyPyDavid commented 4 months ago

Description

Fixes for the Import Feature

Motivation and Context

Made an overview of the models and the relations with the CLI tool graph_models

/manage.py graph_models conditions options domain questions tasks views -g --relation-fields-only=True --no-inheritance -x=created,updated,editors,sites,groups -l=dot -o rdmo_content_relations.svg

rdmo_content_relations

How has this been tested?

Screenshots (if appropriate)

Types of Changes

Checklist

MyPyDavid commented 3 months ago

I broke the sorting with append_element with a typo before in the import feature branch. Am now reverting it back to original sorting, but get a RecursionError for the legacy tests..

typo, it should be value instead of element_value in: https://github.com/rdmorganiser/rdmo/blob/ea118edba99fc8ac45934883794b8a4515309d6e/rdmo/core/xml.py#L451

MyPyDavid commented 3 months ago

thanks for the review!