Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[DoctrineBridge] Fix LockStoreSchemaListener not working properly with iterable objects#54407
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
carsonbot commentedMar 26, 2024
Hey! Thanks for your PR. You are targeting branch "6.4" but it seems your PR description refers to branch "7.1 for features / 5.4, 6.4, or 7.0 for bug fixes". Cheers! Carsonbot |
MatTheCat commentedMar 26, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I think you can simply revert#50761:
|
…tener` raised by `StoreFactory`"This reverts commit0acd403.
nicolas-grekas commentedApr 11, 2024
/cc@alexandre-daubois FYI |
alexandre-daubois commentedApr 11, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Indeed my solution doesn't work as expected. I don't think that reverting the PR is the best solution, because it would fix a bug but reintroduce one in the codebase. I'm on my phone right now but I can have a look at it tomorrow to find/have a look for a proper solution, if you need help 🙂 |
barton-webwings commentedApr 12, 2024
I think there could be a better solution to the original issue#50761. Personally, I would take a similar path to Monolog's This way we would avoid the |
alexandre-daubois commentedApr 12, 2024
Seems to be a great solution indeed, I like it! |
barton-webwings commentedApr 12, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I pushed a draft of my proposed solution into this PR, hopefully I didn't miss anything. Since the |
alexandre-daubois left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Seems like a clean solution like this 😊
nicolas-grekas commentedApr 12, 2024
So, that's a new feature now, isn't it? |
Toflar commentedApr 25, 2024
Not really a new feature. The current implementation is broken. It will not add the required schema as described in#54406. Just faced the same issue and this PR fixes it :) |
MatTheCat commentedMay 4, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
The #50761 revert is a fix. |
| * | ||
| * @author Pavel Bartoň <barton@webwings.cz> | ||
| */ | ||
| class NullStoreimplements BlockingSharedLockStoreInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Introducing this class (as well as the changes to theStoreFactory) must be moved into a separate PR targeting the7.2 branch. That's a new feature.
| $subscriber->postGenerateSchema($event); | ||
| } | ||
| publicfunctiontestPostGenerateSchemaWithInvalidLockStore() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
this test should be kept as fixing the issue#50761 tried to fix is legitimate
| } | ||
| $store->configureSchema($event->getSchema(),$this->getIsSameDatabaseChecker($connection)); | ||
| }catch (InvalidArgumentException) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
we still need catch the exception to not reintroduce the bug that#50761 tried to fix
MatTheCat commentedAug 5, 2024
uwej711 commentedAug 7, 2024
OK, so where do we go from here? Keep the current bug in 6.4, revert the commit that causes the bug and having the issue it tried to fix again or something else? |
xabbuh commentedAug 8, 2024
I would be okay with both solutions. Either reverting#50671 or switching to |
barton-webwings commentedAug 8, 2024
I am closing this PR, as it is superseded by#57944. |
…Cat)This PR was squashed before being merged into the 6.4 branch.Discussion----------[DoctrineBridge] Fix the `LockStoreSchemaListener`| Q | A| ------------- | ---| Branch? | 6.4| Bug fix? | yes| New feature? | no| Deprecations? | no| Issues |Fix#54406| License | MIT#54407 got sidetracked ~and `@barton`-webwings seems no longer active on GitHub~ so this PR takes over.Commits-------db070a1 [DoctrineBridge] Fix the `LockStoreSchemaListener`
Uh oh!
There was an error while loading.Please reload this page.