Skip to content

Add filters on ListWorkerActivities

https://redmine.teklia.com/issues/7058

The ListWorkerActivities endpoint should allow optional filters to be used:

  • worker_version_id, which should always be a UUID when set;
  • model_version_id, which can be either a UUID or false or 0 to mean "no model version";
  • worker_configuration_id, which can be either a UUID or false or 0 to mean "no worker configuration".

There is no need to check that the UUIDs actually exist. Django and Postgres will not care as long as the UUIDs are UUIDs, and this would imply additional issues with access rights.