-
Notifications
You must be signed in to change notification settings - Fork 19
add conversation source when retranscribing #233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "collection": "conversation_link", | ||
| "meta": { | ||
| "accountability": "all", | ||
| "archive_app_filter": true, | ||
| "archive_field": null, | ||
| "archive_value": null, | ||
| "collapse": "open", | ||
| "collection": "conversation_link", | ||
| "color": null, | ||
| "display_template": null, | ||
| "group": "conversation", | ||
| "hidden": true, | ||
| "icon": null, | ||
| "item_duplication_fields": null, | ||
| "note": null, | ||
| "preview_url": null, | ||
| "singleton": false, | ||
| "sort": 1, | ||
| "sort_field": null, | ||
| "translations": null, | ||
| "unarchive_value": null, | ||
| "versioning": false | ||
| }, | ||
| "schema": { | ||
| "name": "conversation_link" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| { | ||
| "collection": "conversation", | ||
| "field": "linked_conversations", | ||
| "type": "alias", | ||
| "meta": { | ||
| "collection": "conversation", | ||
| "conditions": null, | ||
| "display": null, | ||
| "display_options": null, | ||
| "field": "linked_conversations", | ||
| "group": null, | ||
| "hidden": false, | ||
| "interface": "list-o2m", | ||
| "note": null, | ||
| "options": { | ||
| "enableCreate": false, | ||
| "enableLink": true, | ||
| "enableSelect": false, | ||
| "template": "{{target_conversation_id.participant_name}}" | ||
| }, | ||
| "readonly": false, | ||
| "required": false, | ||
| "sort": 23, | ||
| "special": [ | ||
| "o2m" | ||
| ], | ||
| "translations": null, | ||
| "validation": null, | ||
| "validation_message": null, | ||
| "width": "full" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
| "collection": "conversation", | ||
| "field": "linking_conversations", | ||
| "type": "alias", | ||
| "meta": { | ||
| "collection": "conversation", | ||
| "conditions": null, | ||
| "display": null, | ||
| "display_options": null, | ||
| "field": "linking_conversations", | ||
| "group": null, | ||
| "hidden": false, | ||
| "interface": "list-o2m", | ||
| "note": null, | ||
| "options": { | ||
| "enableCreate": false, | ||
| "enableLink": true, | ||
| "enableSelect": false | ||
| }, | ||
| "readonly": false, | ||
| "required": false, | ||
| "sort": 24, | ||
| "special": [ | ||
| "o2m" | ||
| ], | ||
| "translations": null, | ||
| "validation": null, | ||
| "validation_message": null, | ||
| "width": "full" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| { | ||
| "collection": "conversation_link", | ||
| "field": "date_created", | ||
| "type": "timestamp", | ||
| "meta": { | ||
| "collection": "conversation_link", | ||
| "conditions": null, | ||
| "display": "datetime", | ||
| "display_options": { | ||
| "relative": true | ||
| }, | ||
| "field": "date_created", | ||
| "group": null, | ||
| "hidden": true, | ||
| "interface": "datetime", | ||
| "note": null, | ||
| "options": null, | ||
| "readonly": true, | ||
| "required": false, | ||
| "sort": 3, | ||
| "special": [ | ||
| "date-created" | ||
| ], | ||
| "translations": null, | ||
| "validation": null, | ||
| "validation_message": null, | ||
| "width": "half" | ||
| }, | ||
| "schema": { | ||
| "name": "date_created", | ||
| "table": "conversation_link", | ||
| "data_type": "timestamp with time zone", | ||
| "default_value": null, | ||
| "max_length": null, | ||
| "numeric_precision": null, | ||
| "numeric_scale": null, | ||
| "is_nullable": true, | ||
| "is_unique": false, | ||
| "is_indexed": false, | ||
| "is_primary_key": false, | ||
| "is_generated": false, | ||
| "generation_expression": null, | ||
| "has_auto_increment": false, | ||
| "foreign_key_table": null, | ||
| "foreign_key_column": null | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| { | ||
| "collection": "conversation_link", | ||
| "field": "date_updated", | ||
| "type": "timestamp", | ||
| "meta": { | ||
| "collection": "conversation_link", | ||
| "conditions": null, | ||
| "display": "datetime", | ||
| "display_options": { | ||
| "relative": true | ||
| }, | ||
| "field": "date_updated", | ||
| "group": null, | ||
| "hidden": true, | ||
| "interface": "datetime", | ||
| "note": null, | ||
| "options": null, | ||
| "readonly": true, | ||
| "required": false, | ||
| "sort": 4, | ||
| "special": [ | ||
| "date-updated" | ||
| ], | ||
| "translations": null, | ||
| "validation": null, | ||
| "validation_message": null, | ||
| "width": "half" | ||
| }, | ||
| "schema": { | ||
| "name": "date_updated", | ||
| "table": "conversation_link", | ||
| "data_type": "timestamp with time zone", | ||
| "default_value": null, | ||
| "max_length": null, | ||
| "numeric_precision": null, | ||
| "numeric_scale": null, | ||
| "is_nullable": true, | ||
| "is_unique": false, | ||
| "is_indexed": false, | ||
| "is_primary_key": false, | ||
| "is_generated": false, | ||
| "generation_expression": null, | ||
| "has_auto_increment": false, | ||
| "foreign_key_table": null, | ||
| "foreign_key_column": null | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| { | ||
| "collection": "conversation_link", | ||
| "field": "id", | ||
| "type": "bigInteger", | ||
| "meta": { | ||
| "collection": "conversation_link", | ||
| "conditions": null, | ||
| "display": null, | ||
| "display_options": null, | ||
| "field": "id", | ||
| "group": null, | ||
| "hidden": true, | ||
| "interface": "input", | ||
| "note": null, | ||
| "options": null, | ||
| "readonly": true, | ||
| "required": false, | ||
| "sort": 1, | ||
| "special": null, | ||
| "translations": null, | ||
| "validation": null, | ||
| "validation_message": null, | ||
| "width": "full" | ||
| }, | ||
| "schema": { | ||
| "name": "id", | ||
| "table": "conversation_link", | ||
| "data_type": "bigint", | ||
| "default_value": "nextval('conversation_link_id_seq'::regclass)", | ||
| "max_length": null, | ||
| "numeric_precision": 64, | ||
| "numeric_scale": 0, | ||
| "is_nullable": false, | ||
| "is_unique": true, | ||
| "is_indexed": false, | ||
| "is_primary_key": true, | ||
| "is_generated": false, | ||
| "generation_expression": null, | ||
| "has_auto_increment": true, | ||
| "foreign_key_table": null, | ||
| "foreign_key_column": null | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| { | ||
| "collection": "conversation_link", | ||
| "field": "link_type", | ||
| "type": "string", | ||
| "meta": { | ||
| "collection": "conversation_link", | ||
| "conditions": null, | ||
| "display": null, | ||
| "display_options": null, | ||
| "field": "link_type", | ||
| "group": null, | ||
| "hidden": false, | ||
| "interface": "input", | ||
| "note": null, | ||
| "options": null, | ||
| "readonly": false, | ||
| "required": false, | ||
| "sort": 7, | ||
| "special": null, | ||
| "translations": null, | ||
| "validation": null, | ||
| "validation_message": null, | ||
| "width": "full" | ||
| }, | ||
| "schema": { | ||
| "name": "link_type", | ||
| "table": "conversation_link", | ||
| "data_type": "character varying", | ||
| "default_value": null, | ||
| "max_length": 255, | ||
| "numeric_precision": null, | ||
| "numeric_scale": null, | ||
| "is_nullable": true, | ||
| "is_unique": false, | ||
| "is_indexed": false, | ||
| "is_primary_key": false, | ||
| "is_generated": false, | ||
| "generation_expression": null, | ||
| "has_auto_increment": false, | ||
| "foreign_key_table": null, | ||
| "foreign_key_column": null | ||
| } | ||
|
Comment on lines
+1
to
+42
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Consider tightening the contract on If Bonus: add a lightweight index if you foresee filtering by link type in analytics. 🤖 Prompt for AI Agents |
||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,49 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "collection": "conversation_link", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "field": "source_conversation_id", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "type": "uuid", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "meta": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "collection": "conversation_link", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "conditions": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "display": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "display_options": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "field": "source_conversation_id", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "group": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "hidden": false, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "interface": "select-dropdown-m2o", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "note": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "options": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "enableCreate": false, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "enableLink": true, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "template": "{{participant_name}}.{{project_id.name}}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "readonly": false, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "required": false, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "sort": 5, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "special": [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "m2o" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "translations": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "validation": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "validation_message": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "width": "full" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "schema": { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "name": "source_conversation_id", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "table": "conversation_link", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "data_type": "uuid", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "default_value": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "max_length": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "numeric_precision": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "numeric_scale": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "is_nullable": false, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "is_unique": false, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+21
to
+40
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hard-stop: UI says “optional”, DB says “NOT NULL”.
Most teams make the FK non-nullable, so tighten the UI: - "required": false,
+ "required": true,(or flip 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "is_indexed": true, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "is_primary_key": false, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "is_generated": false, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "generation_expression": null, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "has_auto_increment": false, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "foreign_key_table": "conversation", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "foreign_key_column": "id" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Alias field missing
related_collection/related_fieldmetadata?Directus usually expects
related_collection&related_fieldon alias O2M definitions so the UI knows which relation it fronts. If those live exclusively in the relation snapshots, you’re fine; otherwise add:"meta": { ... + "related_collection": "conversation_link", + "related_field": "target_conversation_id", ... }Prevents the list-o2m picker from rendering an empty state.
📝 Committable suggestion
🤖 Prompt for AI Agents