Skip to content

Conversation

@vkrasnovyd
Copy link
Contributor

  • Commits 1-3: fixed tests that were failing because of the 1-to-1 not_null trigger.
  • Commit 4: while fixing these tests in the user.test_merge_together.py file, I've spot quite a bunch of back relations that were set manually. Cleaned up some of them but there are still a lot of them left. Do we want to remove them all too? Probably from the whole directory and in a separate PR? If that's the case, I'll move this commit to a new branch.

Copy link
Member

@hjanott hjanott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general I think that as long as the tests are running we don't need to do the clean-ups now. But it makes sense to do them while we are editing the files anyway. So let's keep your changes here.

data: dict[str, Any],
collection: Literal["assignment", "motion"],
sub_collection: str,
back_relation: str,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing how this function shrank.

@vkrasnovyd vkrasnovyd requested a review from hjanott October 7, 2025 13:44
Copy link
Member

@hjanott hjanott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failing tests should be resolved with #3159.

@hjanott hjanott assigned vkrasnovyd and unassigned hjanott Oct 8, 2025
@vkrasnovyd vkrasnovyd merged commit 9e52dbb into OpenSlides:feature/relational-db Oct 8, 2025
4 of 5 checks passed
@vkrasnovyd vkrasnovyd deleted the fix-different-tests branch October 8, 2025 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants