Skip to content

[shots] Allow vendors to load sequences and episodes with tasks#1110

Merged
frankrousseau merged 1 commit into
cgwire:mainfrom
frankrousseau:shots-vendor-sequences-episodes
Jun 14, 2026
Merged

[shots] Allow vendors to load sequences and episodes with tasks#1110
frankrousseau merged 1 commit into
cgwire:mainfrom
frankrousseau:shots-vendor-sequences-episodes

Conversation

@frankrousseau

Copy link
Copy Markdown
Contributor

Problem

  • Vendor users got a 403 on the Kitsu shots page: it loads /data/sequences/with-tasks before shots, and that endpoint (plus /data/episodes/with-tasks) rejected every vendor outright.
  • Assets worked fine, making the breakage shots-only.

Solution

  • SequenceAndTasksResource / EpisodeAndTasksResource no longer 403 for vendors; they return the sequences/episodes that hold a shot with a task assigned to the vendor, reusing the existing only_assigned helpers.
  • get_entities_and_tasks gains entity_ids (restrict returned entities) and assigned_to (show only the vendor's own tasks on those entities).

Fix cgwire/kitsu#2053

The /data/sequences/with-tasks and /data/episodes/with-tasks endpoints
raised a 403 for any vendor, breaking the Kitsu shots page (it loads
sequences before shots). Vendors now receive the sequences/episodes that
hold a shot with a task assigned to them, with only their own tasks shown
on those entities.
@frankrousseau frankrousseau merged commit 7392a4a into cgwire:main Jun 14, 2026
4 of 14 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.

Shots assigned to vendor type users generate an error in kitsu

1 participant