Skip to content

Conversation

@jer8856
Copy link
Collaborator

@jer8856 jer8856 commented Dec 2, 2021

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

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 2, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication


response_params = {
"body": ResponseEnums.NOT_FOUND.value,
"status_code": HTTPStatus.NOT_FOUND,
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 not corrected yet

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)
Copy link
Collaborator

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:
Copy link
Collaborator

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

@jer8856 jer8856 closed this Dec 7, 2021
@jer8856 jer8856 deleted the TT-425-time-entries-summary branch December 7, 2021 14:47
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.

4 participants