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

Implement get_user_tasks endpoint #671

Merged
merged 1 commit into from
Sep 18, 2023
Merged

Implement get_user_tasks endpoint #671

merged 1 commit into from
Sep 18, 2023

Conversation

dmtrek14
Copy link
Collaborator

  • Add schemas for task and customer
  • Add method to timelog service for fetching tasks
  • Modify models for project and task as needed

These changes implement a basic GET endpoint for user tasks. As the amount of tasks fetched could grow to be very large, I have added both offset/limit and date range query params so that the frontend consumer is not overwhelmed with data.

@dmtrek14 dmtrek14 force-pushed the add-tasks-endpoints branch 2 times, most recently from e05715a to c448760 Compare September 18, 2023 15:24
api/models/project.py Outdated Show resolved Hide resolved
api/routers/v1/timelog.py Outdated Show resolved Hide resolved
- Add schemas for task and customer
- Add method to timelog service for fetching tasks
- Modify models for project and task as needed
Copy link
Member

@anarute anarute left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

@dmtrek14 dmtrek14 merged commit d1bfa0a into main Sep 18, 2023
1 check passed
@dmtrek14 dmtrek14 deleted the add-tasks-endpoints branch September 18, 2023 18:28
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.

2 participants