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

StatusQ(LeftJoinModel): Handling of layoutChanged emitted by source models fixed #13687

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

micieslak
Copy link
Member

@micieslak micieslak commented Feb 22, 2024

What does the PR do

It fixes 2 issues in LeftJoinModel:

  • When left model emitted layoutAboutToBeChanged/layoutChanged, LeftJoinModel didn't update own persistent indexes properly leading to segfault in worst case.
  • When right model emitted layoutChanged, LeftJoinModel was emitting dataChanged unnecesarily
  • both scenarios covered with tests

Moreover:

  • small extension to TestModel allowing testing behavior on layoutChanged emitted from source model.

Closes: #13683

Affected areas

LeftJoinModel

@status-im-auto
Copy link
Member

status-im-auto commented Feb 22, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ f452338 #1 2024-02-22 14:11:04 ~6 min tests/nim 📄log
✔️ f452338 #1 2024-02-22 14:11:44 ~6 min macos/aarch64 🍎dmg
✔️ f452338 #1 2024-02-22 14:14:30 ~9 min macos/x86_64 🍎dmg
✔️ f452338 #1 2024-02-22 14:15:23 ~10 min tests/ui 📄log
✔️ f452338 #1 2024-02-22 14:21:34 ~16 min linux/x86_64 📦tgz
✔️ f452338 #1 2024-02-22 14:37:04 ~32 min windows/x86_64 💿exe

Copy link
Member

@caybro caybro left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@alexjba alexjba merged commit 0497ecd into master Feb 27, 2024
8 checks passed
@alexjba alexjba deleted the fix/issue-13683 branch February 27, 2024 08:12
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.

[StatusQ/LeftJoinModel]: layoutChanged signal emitted by the source models is not handled properly
4 participants