Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Final Output and Auto Lock Tasks Fields to Improve Task Management #125

Merged
merged 12 commits into from
Aug 7, 2024

Conversation

Pradip-p
Copy link
Collaborator

@Pradip-p Pradip-p commented Aug 6, 2024

Summary:

This PR introduces two new fields, final_output and auto_lock_tasks, to the DbProject model and addresses issues with specific API endpoints. The final_output field allows for storing the desired output format for a project, enhancing flexibility and clarity in project configurations. The auto_lock_tasks field provides project creators with the option to enable or disable automatic task locking, giving more control over task management.

New Features:

1. Added final_output Field:

  • Introduced the final_output field in the DbProject model to store the output format (To store the desired output format for a projec).

2. Added auto_lock_tasks Field:

  • Introduced the auto_lock_tasks field to define whether task auto-locking is optional for the project creator.

Issue Fixes:

1. Fixed Delete Project Endpoint:

  • Endpoint: /api/projects/{project_id}
  • Resolved issues to ensure projects can be deleted correctly.

2. Fixed Get Pending Requested Tasks Endpoint:

  • Endpoint: /api/tasks/requested_tasks/pending
  • Addressed issues to ensure it correctly retrieves pending tasks.

@Pradip-p Pradip-p self-assigned this Aug 6, 2024
@github-actions github-actions bot added enhancement New feature or request backend Related to backend code migration labels Aug 6, 2024
@@ -129,7 +130,10 @@ class DbProject(Base):
),
)
author = relationship(DbUser, uselist=False, backref="user")

final_output = cast(
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is the multiselect option. We might need an array field ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I’ve updated the schema & field to use an array field to better handle multiple selections.

@Pradip-p Pradip-p requested a review from nrjadkry August 7, 2024 04:31
@@ -129,7 +130,8 @@ class DbProject(Base):
),
)
author = relationship(DbUser, uselist=False, backref="user")

final_output = cast(list, Column(ARRAY(Enum(FinalOutput))))
auto_lock_tasks = cast(bool, Column(Boolean, default=False))
Copy link
Collaborator

Choose a reason for hiding this comment

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

It is better to rename this auto_lock_tasks to something like requires_approval_from_manager_for_locking.
Fields should be named clearly.

@nrjadkry nrjadkry merged commit 47fe9d9 into main Aug 7, 2024
2 checks passed
@nrjadkry nrjadkry deleted the feat/auto-lock-tasks branch August 7, 2024 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to backend code enhancement New feature or request migration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants