Skip to content

Conversation

@mxatmx
Copy link

@mxatmx mxatmx commented Dec 17, 2025

This PR is recreated from a previous because I had to change the head branch.

Problem
Closes #1003

Solution
Now all entity task types are sent to the frontend for display and possible filtering.

I should emphasize: BOTH THIS PR AND THE PR ON THE FRONTEND KITSU REPO (cgwire/kitsu#1924) MUST BE APPROVED FOR THIS FUNCTIONALITY TO WORK PROPERLY. Without the frontend changes, the necessary data is not displayed or available to filter properly.

@frankrousseau
Copy link
Contributor

Hello can remove the commit related to the deletion? The deletion should occur only after the rights validation.

@mxatmx
Copy link
Author

mxatmx commented Dec 18, 2025

Hello can remove the commit related to the deletion? The deletion should occur only after the rights validation.

Yes, I can move the cascade deletion to after rights validation, my apologies for the incorrect placement. I was having an error where a foreign key constraint was blocking deletion of task types, because of lingering scheduleItem records. I'll use the pre_delete hook for this instead.

…eleted.

Uses pre_delete hook to ensure deletion happens AFTER permission check.
The migration file was part of a different feature branch and was
mistakenly included in the cascading deletion commit.
@mxatmx
Copy link
Author

mxatmx commented Dec 18, 2025

@frankrousseau Okay, the cascading deletion occurs after permissions check now. Disregard the migration, that was from a different PR that I accidentally included.

@frankrousseau
Copy link
Contributor

Great thank you!

@frankrousseau frankrousseau merged commit 2ee0c2d into cgwire:main Dec 19, 2025
27 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.

Feature: enable all entity task types for schedule

3 participants