feat: add linked_object_type to TaskTemplate#16
Merged
Conversation
Both jobs now declare an `environment:` (development / production) and read the same secret name `secrets.DB_URL`. GitHub resolves the correct value based on the environment scope, avoiding _DEV/_PROD suffix conventions. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds optional linked_object_type (TaskLinkedObjectType enum) to the task_template table and Pydantic schemas so templates can specify an object type that tasks created from them inherit automatically. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The GitHub Actions workflow sets DB_URL (a connection string) but database.py was expecting individual POSTGRES_* vars. Now accepts either format, maintaining backward compatibility with deployed services. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
models-utils exports telemetry utilities that import opentelemetry, but the package was not listed in install_requires. This caused the GitHub Actions migration workflow to fail with ModuleNotFoundError. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
linked_object_typecolumn (nullableTaskLinkedObjectTypeenum) to thetask_templatetableTaskTemplateBase,TaskTemplateCreate, andTaskTemplateUpdatePydantic schemas to expose the new field1.4.3→1.4.4Why
Task Templates now support specifying an object type (CLIENT, ORDER, RECURRING_ORDER) so tasks created from that template are automatically pre-linked to that object type — without tying the template to a specific object instance.
Migration
a2f968506210— addslinked_object_typecolumn (nullable, reuses existingtasklinkedobjecttypeenum).🤖 Generated with Claude Code