Skip to content

Feature workspaces jobs - #72

Merged
susrisha merged 9 commits into
developfrom
feature-workspaces-jobs
Aug 13, 2026
Merged

Feature workspaces jobs#72
susrisha merged 9 commits into
developfrom
feature-workspaces-jobs

Conversation

@susrisha

Copy link
Copy Markdown
Collaborator

Issue number: https://dev.azure.com/TDEI-UW/TDEI/_workitems/edit/3877

This pull request introduces a new job management system for workspaces, adds messaging integration with Azure Service Bus, and enhances workspace import tracking. The changes include new database migrations, repository and API layers for jobs, and updates to the workspace creation flow to support asynchronous import jobs and status reporting.

Workspace Jobs System:

  • Added Alembic migration to create a new jobs table with fields for job type, status, request/response payloads, and workspace association.
  • Implemented JobRepository with async CRUD operations, workspace-based permissions, and job lookup methods in api/src/workspaces/jobs/repository.py.
  • Defined Pydantic/SQLModel schemas for Job, JobCreate, and JobPatch in api/src/workspaces/jobs/schemas.py.
  • Introduced FastAPI routes for job retrieval by ID and by workspace in api/src/workspaces/jobs/routes.py and integrated these routes into the main app. [1] [2] [3] [4]

Workspace Import and Status Tracking:

  • Added Alembic migration and model/schema updates to support an importStatus field on workspaces, with serialization for API responses. [1] [2] [3] [4]
  • Modified the workspace creation endpoint to automatically create a workspace-import job, update its request with a unique job ID, and return both workspace and job IDs in the response. [1] [2]

Messaging Integration:

  • Added Azure Service Bus connection settings to the config and implemented a Messenger class for sending job-related messages to a topic. [1] [2] [3]
  • Integrated the Messenger into the workspace creation flow to send import job messages.

Other Infrastructure:

  • Added a default lighttpd configuration file for serving static content and proxying API requests.
  • Updated Dockerfile to set an environment variable for Uvicorn.

These changes collectively enable asynchronous workspace imports, job tracking, and external processing via messaging, while improving API capabilities and infrastructure.

Added import job creation on workspace creation
added import Status to the workspace
added importStatus to workspaces
@coderabbitai

coderabbitai Bot commented Aug 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 1f8f6ed3-b59d-470b-827a-6601599c9156

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Test cases uploaded
Fixed the test cases
Updated for tests
@susrisha
susrisha requested a review from MashB August 13, 2026 12:47
@susrisha
susrisha merged commit 18d4d90 into develop Aug 13, 2026
2 checks passed
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.

3 participants