Skip to content

Use a default value for BaseTaskData.task_configuration (#1012)

Enrico Zini requested to merge default-task-configuration into devel

#1012 (closed) raises the need for a default lookup for task configuration collections, and this implements it by adding a default value in debusine.task.models.BaseTaskData. There are a number of interesting details to make explicit here:

  • While task configuration is now looked up by default, it is possible to disable the lookup by setting task_configuration to None
  • For workspaces where the default task configuration collection is not present, all tasks would fail with KeyError: 'default@debusine:task-configuration' does not exist or is hidden. To work around that, we silently fail if the task configuration collection is not found, but only if the lookup is default@debusine:task-configuration: this preserves useful error messages in case one mistypes the custom task-configuration collection name

Merge request reports

Loading