Refactor brand service and related components
- Removed ListQuestionVersions method and associated types from BrandService and Queries. - Updated PromptRuleGenerationService to change task naming and handling. - Enhanced ScheduleTaskService to support filtering by created date range and keyword. - Introduced InstantTaskService for managing instant tasks with appropriate filtering and response structures. - Added InstantTaskHandler for handling API requests related to instant tasks. - Created InstantTaskTab component for the admin web interface to display and manage instant tasks. - Updated database migrations to rename source types for articles and generation tasks. - Adjusted models and repository queries to reflect the removal of question version handling.
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
UPDATE articles
|
||||
SET source_type = 'prompt_rule'
|
||||
WHERE source_type = 'custom_generation';
|
||||
|
||||
UPDATE generation_tasks
|
||||
SET task_type = 'prompt_rule'
|
||||
WHERE task_type = 'custom_generation';
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
UPDATE articles
|
||||
SET source_type = 'custom_generation'
|
||||
WHERE source_type = 'prompt_rule';
|
||||
|
||||
UPDATE generation_tasks
|
||||
SET task_type = 'custom_generation'
|
||||
WHERE task_type = 'prompt_rule';
|
||||
Reference in New Issue
Block a user