Skip to content

[relDB] Investigate safety of TreeSortMixin #3305

@luisa-beerboom

Description

@luisa-beerboom

In the sort_tree method there's a TODO: "Check if instances exist in DB and is not deleted."

There is the possibility that the instances are already guaranteed to exist due to being found by the filter in the new system.
That really only leaves the question if any cached models that are marked for deletion may be found, or something along those lines.

We should take a look at the extended_database.py and the database_reader.py to see how the filter acts precisely. If the filter doesn't guarantee existance, that should be fixed, either in the mixin, or maybe better even, in the filter function. If everything's fine, the TODO can be deleted and this issue closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs investigationThe cause for a bug is not clear enough, so it has to be investigated for some time

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions