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

Do not connect backward dependencies to listener when invalidate #146

Merged
merged 9 commits into from
Jun 20, 2024

Conversation

BrunoRte
Copy link
Contributor

@BrunoRte BrunoRte commented Mar 29, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?
NO

What kind of change does this PR introduce?
Feature

What is the current behavior?
When object is invalidated, it's invalidate all this backward dependencies.
To do this we create a new object in order to invalidate it.
It is not necessary to "connect" it because this has to effect of subscribing it to event listener which is useless since its lifespan is only local to the function

What is the new behavior (if this is a feature change)?
The created backward dependency is no longer connected upon invalidation

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

What changes might users need to make in their application due to this PR? (migration steps)
The invalidate() method now return the list of all the backwardDependencies.
All classes that override this method must update their signature as well as their behavior

@BrunoRte BrunoRte requested review from marifunf and rolnico April 9, 2024 08:34
@BrunoRte BrunoRte force-pushed the BGO/projectnode_listener_optimisation branch from cf22fcb to 592b4b3 Compare April 24, 2024 14:06
@BrunoRte BrunoRte force-pushed the BGO/projectnode_listener_optimisation branch from 592b4b3 to 595bbed Compare April 24, 2024 14:09
Copy link

@BrunoRte BrunoRte marked this pull request as ready for review April 24, 2024 14:36
@BrunoRte BrunoRte force-pushed the BGO/projectnode_listener_optimisation branch from 1004956 to 60cfb83 Compare June 11, 2024 09:22
Signed-off-by: Nicolas Rol <[email protected]>
Copy link

@rolnico rolnico merged commit 9afd916 into main Jun 20, 2024
7 checks passed
@rolnico rolnico deleted the BGO/projectnode_listener_optimisation branch June 20, 2024 12:49
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.

2 participants