Skip to content

Feature/create dataset and project - #1259

Merged
Dhara124 merged 3 commits into
back-branch-masterfrom
feature/create-dataset-and-project
Aug 14, 2026
Merged

Dhara124 merged 3 commits into
back-branch-masterfrom
feature/create-dataset-and-project

Conversation

@Dhara124

Copy link
Copy Markdown
Collaborator

Description

This PR implements the backend engine required to automate the end-to-end Dataset and Project creation pipeline, streamlining data ingestion and intelligent project task assignment.

Key Changes

  • Automated Pipeline Support: Added necessary logic to support a continuous pipeline flowing directly from dataset creation into project instantiation and task assignment.
  • Project Batching (create_projects_for_dataset_category): The project creation engine now automatically limits task assignments to predefined batch capacities. For under-capacity batches, it identifies the best existing project to inherit the tasks and returns its ID/title to the frontend.
  • Manual Task Routing API: Added pull_pipeline_project_items (POST /data/instances/pull_pipeline_project_items/) and its corresponding utility pull_unassigned_items_into_project. This allows the automated flow to gracefully handle edge cases by pulling straggling unassigned items into an existing project.
  • Database Optimization: Configured CONN_MAX_AGE = 60 in settings.py to reuse DB connections across requests. This drastically reduces connection latency (from ~1.5s down to ~0.2s) which is critical for the numerous API calls made during the automated pipeline execution.

Motivation and Context

To achieve a fully automated dataset-to-project creation flow, the backend needed to handle task batching dynamically and provide the frontend with hooks to resolve under-capacity batches. The DB connection optimization is also critical to ensure the automated pipeline runs smoothly without timing out on connection handshakes.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance Improvement (Database connection reuse)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

@Dhara124
Dhara124 merged commit a4bc1f4 into back-branch-master Aug 14, 2026
2 of 3 checks passed
@Dhara124
Dhara124 deleted the feature/create-dataset-and-project branch August 14, 2026 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant