Skip to content

feature/create-task#150

Merged
mdawoud27 merged 15 commits into
mainfrom
feature/149/create_task
Apr 17, 2025
Merged

feature/create-task#150
mdawoud27 merged 15 commits into
mainfrom
feature/149/create_task

Conversation

@mdawoud27
Copy link
Copy Markdown
Contributor

PR Checklist (required)

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines.

  • Tests for the changes have been added (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation changes
  • Other... Please describe:

Related Issue

Closes #149

@mdawoud27 mdawoud27 added documentation Improvements or additions to documentation enhancement New feature or request feature For new feature labels Apr 17, 2025
@mdawoud27 mdawoud27 requested a review from Copilot April 17, 2025 09:40
@mdawoud27 mdawoud27 self-assigned this Apr 17, 2025
@mdawoud27 mdawoud27 linked an issue Apr 17, 2025 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a new feature for creating tasks, with updates to validation, routing, and controller logic to support task creation, along with corresponding documentation changes.

  • Added a Joi-based validation schema for task creation
  • Implemented a new POST endpoint for task creation and updated the task controller with additional validations and order computation
  • Fixed minor validation call issues in authentication controllers and updated project documentation

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/validations/task.validation.js Introduces a Joi schema for task creation validations
src/routes/task.routes.js Adds a new POST route for creating tasks
src/index.js Updates to include the task routes and removal of body-parser usage
src/controllers/task.controller.js Updates task creation logic, including validations, permission checks, and order computation
src/controllers/project.controller.js Removes outdated department verification logic
src/controllers/auth.controller.js Fixes validation function calls to pass the request body correctly
README.md Documents the new task creation endpoint
Files not reviewed (1)
  • src/docs/swagger.json: Language not supported

Comment thread src/controllers/task.controller.js
@mdawoud27 mdawoud27 merged commit 8604328 into main Apr 17, 2025
11 checks passed
@mdawoud27 mdawoud27 deleted the feature/149/create_task branch April 17, 2025 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request feature For new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Create a task

2 participants