-
Notifications
You must be signed in to change notification settings - Fork 50
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
Error 500: Sync GitLab Remote - Fatal error: Uncaught PDOException #78
Comments
The Issue comes after on gitlab is a repository renamed or removed. |
Thanks for the bug report! I thought this issue was already fixed, but apparently not! |
can confirm the issue, with the same scenario, rename or remove a repository on gitlab break sync of the complete remote. should be fixed with prio I think, because it is a breaking bug and has a big impact. |
Agreed, this is a pretty bad issue. It looks like it's going to require a database migration or improvements in how packages are deleted. I'll take a look at what possible solutions we have as soon as possible. As always, thanks for your contributions @strausmann and @NeoBlack ! It's very much appreciated. |
I would recommend to add a delete flag to the model and mark the packages as "deleted", this make it possible to show this information also in the admin interface or frontend. The information that a package is missing is very interesting, and a hard delete could be realized in the admin interface. anyway, the problem on delete is a wrong cascade definition in the database definition. Not sure where exactly, but the error message is really clear: " Integrity constraint violation" |
Agreed on the soft delete implementation, @NeoBlack. Should have gone that way from the start. No matter what, we can handle whatever logic is necessary in a doctrine preRemove event subscriber. |
This will temporary avoid the constraint violation described in terramar-labs#78.
#109 is a simple fix for now. I'd like to see a new column added ( |
After click on the Sync Button for my GitLab Remote i got an Error 500.
The text was updated successfully, but these errors were encountered: