Skip to content

Fix select association AssertionError #3353

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

Merged
merged 2 commits into from
Jun 19, 2024
Merged

Fix select association AssertionError #3353

merged 2 commits into from
Jun 19, 2024

Conversation

amolenaar
Copy link
Member

PR Type

What kind of change does this PR introduce?

  • Bug fix
  • Feature
  • Chore (refactoring, formatting, local variables, other cleanup)
  • Documentation content changes

What is the current behavior?

The problem is that Transaction handling has some caveats at the moment. this is because events are immediately forwarded to the undo manager when they happen, contrary to the "normal" behavior, which makes sures events are executed in order.

This gets a bit troublesome when a new transaction is started while there are still events in the queue. This PR fixes that for association end names by only starting a transaction if the change is not made twice.

Issue Number: Fixes #3348

What is the new behavior?

Selecting an association with association ends filled in does no longer cause an exception.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

The real solution is fixing #3351.

Transactions do not work *that* well when there's already a
transaction active and the event queue is not empty.
@github-actions github-actions bot added the python Pull requests that update Python code label Jun 16, 2024
@danyeaw danyeaw added fix A fix for a bug and removed python Pull requests that update Python code labels Jun 19, 2024
Copy link
Member

@danyeaw danyeaw left a comment

Choose a reason for hiding this comment

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

Thanks @amolenaar!

@danyeaw danyeaw changed the title Fix select association Fix select association AssertionError Jun 19, 2024
@danyeaw danyeaw merged commit 98cd27f into main Jun 19, 2024
@danyeaw danyeaw deleted the fix-select-association branch June 19, 2024 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix A fix for a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

undo manager AssertionError
2 participants