-
Notifications
You must be signed in to change notification settings - Fork 447
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
Announcement type is removed without removing related files #10060
Comments
@bozana could you please review this one too? The fixes are on the first 2 commits, the last one is mostly about typing/formatting. |
Hi @jonasraoni, here I should wait for you to take a look at nullable that we mentioned in the dev call, or? |
Hi! I think you can proceed with the review, most of the updates here are not related to the issue. Then, I'll create a generic issue to handle the removal of entities that have dependents. The current solution is to block the operation, until the user clears all the dependencies manually... We can offer more options (clear/re-assign the dependencies to another record) to simplify the maintenance. |
@jonasraoni, a question before I finish the review: |
Ah, and why do we delete announcements when deleting an announcement type? Shouldn't the type_id just be set to null? Thus, I would think we shouldn't do anything else when deleting an announcement type? |
Hi! I didn't dig so deep, I just applied some fixes/updates, but I agree with everything.
|
Thanks @jonasraoni, that all sounds good! |
@bozana FYI, the
|
@jonasraoni, let me know when another review round can be done... Thanks!!! |
…ault (only when removing a context)
…ault (only when removing a context)
… the parent json
@bozana, I think I've addressed all comments, please take a look when you get some free time. |
…ault (only when removing a context)
… the parent json
@bozana I almost forgot about this PR, I've updated the Regarding the |
Hi @jonasraoni, please go ahead and merge. Let me know if I need to take a look at something when you port it to other branches -- e.g. if you do more changes for the main branch... |
Describe the bug
After the introduction of foreign keys, the assignment type is removed, but the related images are not.
PRs
What application are you using?
OJS 3.4
The text was updated successfully, but these errors were encountered: