Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix logic of how the "N more" is calculated in relation editor #3309

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

wonder-sk
Copy link
Contributor

Fixes #3242

This pretty much reverts the logic to use what we had before e4b5d28. The updated logic with counting of items made invisible was more efficient in theory, but fragile in reality 🙂

The relation editor is probably quite prone to slowness if there are many related features, because Repeater may create many items even if they end up hidden and we may do many recalculations of number of hidden items. It may be a good idea to implement a custom "flow relation features" model, that would be aware of the flow parameters (number of rows, font metrics, spacing etc.) so that 1. we would only create few items even for large relations, 2. all layout logic would be in one place (and testable)

@tomasMizera
Copy link
Collaborator

Great idea with the custom model. Certainly something to think about. Would you like to file a ticket for that?

@tomasMizera tomasMizera merged commit 07a8164 into master Apr 12, 2024
11 checks passed
@tomasMizera tomasMizera deleted the fix-relation-more-items-count branch April 12, 2024 14:08
@wonder-sk
Copy link
Contributor Author

Ticket created: #3310

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong number of child in the relations
2 participants