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

feat: add the issue resolution duration #728

Merged
merged 4 commits into from
Feb 7, 2025
Merged

Conversation

xingwanying
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Feb 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
petercat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2025 3:10am

Copy link

Walkthrough

This pull request introduces a new feature to calculate and display the issue resolution duration for a given repository. It adds a new endpoint to the existing API and implements the logic to fetch and process the relevant data from an external source.

Changes

File Summary
server/insight/router.py Added a new API endpoint /issue/resolution_duration to fetch issue resolution duration data. Updated existing endpoints to include /statistics in their paths.
server/insight/service/issue.py Implemented get_issue_resolution_duration function to retrieve and process issue resolution duration data from an external JSON source.
server/tests/insight/test_issue.py Added unit tests for the get_issue_resolution_duration function using mocked data.

Copy link

codecov bot commented Feb 7, 2025

Codecov Report

Attention: Patch coverage is 87.87879% with 8 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
server/insight/router.py 61.53% 5 Missing ⚠️
server/insight/service/issue.py 90.32% 3 Missing ⚠️
Files with missing lines Coverage Δ
server/tests/insight/test_issue.py 100.00% <100.00%> (ø)
server/insight/service/issue.py 83.33% <90.32%> (+43.33%) ⬆️
server/insight/router.py 37.50% <61.53%> (-3.68%) ⬇️

@xingwanying xingwanying merged commit 0c0c7b4 into main Feb 7, 2025
5 checks passed
@xingwanying xingwanying deleted the feat_server_issue_time branch February 7, 2025 03:13
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.

1 participant