Skip to content

Implement complete task assignment API endpoints with Bruno tests#40

Open
Methika1234 wants to merge 1 commit intob3-competition:mainfrom
Methika1234:feat/29-task-assignment-api-endpoints
Open

Implement complete task assignment API endpoints with Bruno tests#40
Methika1234 wants to merge 1 commit intob3-competition:mainfrom
Methika1234:feat/29-task-assignment-api-endpoints

Conversation

@Methika1234
Copy link
Copy Markdown
Contributor

  • Add POST /api/tasks to create tasks linking requests, assignees, and resources
  • Add GET /api/tasks to retrieve all tasks with summary information
  • Add GET /api/tasks/:taskId to fetch detailed task information
  • Add PUT /api/tasks/:taskId to update task status, notes, and attachments
  • Add comprehensive validation schemas for task endpoints
  • Create full Bruno test suite with end-to-end testing
  • Fix Firebase configuration and auth middleware for proper testing
  • All tests passing with real Firestore integration

Closes #29

- Add POST /api/tasks to create tasks linking requests, assignees, and resources
- Add GET /api/tasks to retrieve all tasks with summary information
- Add GET /api/tasks/:taskId to fetch detailed task information
- Add PUT /api/tasks/:taskId to update task status, notes, and attachments
- Add comprehensive validation schemas for task endpoints
- Create full Bruno test suite with end-to-end testing
- Fix Firebase configuration and auth middleware for proper testing
- All tests passing with real Firestore integration

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@Methika1234 Methika1234 requested review from Thilina2468 and prdai July 5, 2025 09:21
@Methika1234 Methika1234 self-assigned this Jul 5, 2025
const idToken = header.slice(7).trim();

// For testing with test-token
if (idToken === 'test-token') {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great idea! but i think we should have 2 seperate tokens for the 2 seperate roles, if we can have a test token creator sort of setup?

const firestoreDB = admin.firestore();
const realtimeDB = admin.database();
const storageBucket = admin.storage().bucket();
const storageBucket = process.env.FIREBASE_STORAGE_BUCKET ? admin.storage().bucket() : null;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this feels like a odd setup, of us getting the env var or the admin storage bucket object, look into a better way to implement this please

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we should start moving requestSchemas into separate files depending on the router

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Sep 4, 2025

Stale pull request message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Task Assignment API Endpoints

2 participants