Skip to content

Comments

Fix indexable deletion in EntityListener#69

Merged
loevgaard merged 1 commit intoSetono:masterfrom
SebLours:fix/remove-entity
Mar 6, 2025
Merged

Fix indexable deletion in EntityListener#69
loevgaard merged 1 commit intoSetono:masterfrom
SebLours:fix/remove-entity

Conversation

@SebLours
Copy link
Contributor

@SebLours SebLours commented Mar 3, 2025

Fix #68

@codecov
Copy link

codecov bot commented Mar 3, 2025

Codecov Report

Attention: Patch coverage is 0% with 22 lines in your changes missing coverage. Please review.

Project coverage is 33.07%. Comparing base (0d498fe) to head (dcbfc11).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
src/EventListener/Doctrine/EntityListener.php 0.00% 22 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master      #69      +/-   ##
============================================
- Coverage     33.33%   33.07%   -0.26%     
- Complexity      649      655       +6     
============================================
  Files           123      123              
  Lines          2163     2180      +17     
============================================
  Hits            721      721              
- Misses         1442     1459      +17     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

$this->dispatch($eventArgs, static fn (IndexableInterface $entity) => RemoveEntity::new($entity));
$this->dispatch(
$eventArgs,
fn (IndexableInterface $entity) => new RemoveEntity($entity::class, $this->removeIndexableStorage[$entity]),
Copy link
Member

Choose a reason for hiding this comment

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

I guess we need to check if this $this->removeIndexableStorage[$entity] exists first?

@SebLours SebLours force-pushed the fix/remove-entity branch from 5012e09 to dcbcabe Compare March 5, 2025 13:58
Copy link
Member

@loevgaard loevgaard left a comment

Choose a reason for hiding this comment

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

Great work, once again @SebLours 🥇

@SebLours SebLours force-pushed the fix/remove-entity branch from dcbcabe to dcbfc11 Compare March 6, 2025 08:53
@loevgaard loevgaard merged commit 45903de into Setono:master Mar 6, 2025
35 of 38 checks passed
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.

[Bug]: RemoveEntity message dispatching failed

2 participants