You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pandora is requesting projects resource with params id=669¤t_user_roles=owner%2Ctranslator&include=workflows
The include is triggering restpack to sideload the project.has_many :workflows based on the linked project_id and ignores any activated state on the Workflow resource. E.g.
select * from workflows where project_id = 9 this doesn't respect the association state on the originating resource, e.g. project.workflows (only finds active workflows).
Pandora is requesting projects resource with params
id=669¤t_user_roles=owner%2Ctranslator&include=workflows
The include is triggering restpack to sideload the
project.has_many :workflows
based on the linked project_id and ignores any activated state on the Workflow resource. E.g.select * from workflows where project_id = 9
this doesn't respect the association state on the originating resource, e.g.project.workflows
(only finds active workflows).https://github.com/zooniverse/restpack_serializer/blob/a0c2bc4725dbdd86783f09c88054280e110da752/lib/restpack_serializer/serializable/side_load_data_builder.rb#L25
Ideally the underlying sideload methods respects the activated state of the resource - it currently gets the FK relation and the model ID only.
The text was updated successfully, but these errors were encountered: