-
Notifications
You must be signed in to change notification settings - Fork 0
feat: TT-425 add time entries summary for a given range of dates #365
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
Conversation
V2/time_tracker/time_entries/_application/_time_entries/_get_time_entries_summary.py
Outdated
Show resolved
Hide resolved
V2/time_tracker/time_entries/_domain/_use_cases/_get_time_entries_summary_use_case.py
Show resolved
Hide resolved
V2/time_tracker/time_entries/_infrastructure/_data_persistence/_time_entries_sql_dao.py
Outdated
Show resolved
Hide resolved
V2/time_tracker/time_entries/_infrastructure/_data_persistence/_time_entries_sql_dao.py
Outdated
Show resolved
Hide resolved
|
Kudos, SonarCloud Quality Gate passed!
|
|
|
||
| response_params = { | ||
| "body": ResponseEnums.NOT_FOUND.value, | ||
| "status_code": HTTPStatus.NOT_FOUND, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not corrected yet
V2/time_tracker/time_entries/_application/_time_entries/_get_time_entries_summary.py
Show resolved
Hide resolved
V2/time_tracker/time_entries/_application/_time_entries/_get_time_entries_summary.py
Show resolved
Hide resolved
| def test__time_entry_summary_azure_endpoint__returns_invalid_date_format_with_invalid_date_format( | ||
| test_db, insert_activity, activity_factory | ||
| ): | ||
| insert_activity(activity_factory(), test_db) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the purpose of creating an activity if it is not used
| return func.HttpResponse(**response_params) | ||
|
|
||
|
|
||
| def _validate_time_format(time: str) -> bool: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps this functionality can be implemented globally








In this branch we created a new endpoint to retrieve a time entries summary that are located between two given dates.
get_time_entries_summary: [GET] http://localhost:7071/api/time-entries/summary/
Query params required: owner_id, start_date, end_date