Skip to content

Conversation

@Matvey-Kuk
Copy link
Contributor

close #4057

@vercel
Copy link

vercel bot commented Apr 16, 2025

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

Name Status Preview Comments Updated (UTC)
keep ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 17, 2025 6:55am

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. Bug Something isn't working UI User interface related issues labels Apr 16, 2025
Signed-off-by: Matvey Kukuy <Matvey-Kuk@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Apr 17, 2025

Codecov Report

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

Project coverage is 46.65%. Comparing base (6e71143) to head (d179f2b).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
keep/api/models/incident.py 25.00% 6 Missing ⚠️
keep/api/core/db.py 33.33% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #4561       +/-   ##
===========================================
+ Coverage   30.95%   46.65%   +15.69%     
===========================================
  Files          93      164       +71     
  Lines       10534    16763     +6229     
===========================================
+ Hits         3261     7821     +4560     
- Misses       7273     8942     +1669     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@talboren
Copy link
Member

Can you add a few tests to cover what was not working here? Seems like we think this is first-grade info and should make sure that it works at all times. It's pretty hard for me to understand what was not working in the first place.

merged_incidents = db_incident.merged_incidents or []
if isinstance(merged_incidents, list):
merged_incidents = [incident.id for incident in merged_incidents]
except DetachedInstanceError:
Copy link
Member

Choose a reason for hiding this comment

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

when could this happen?

@Matvey-Kuk Matvey-Kuk marked this pull request as draft April 17, 2025 06:54
auto-merge was automatically disabled April 17, 2025 06:54

Pull request was converted to draft

@Matvey-Kuk
Copy link
Contributor Author

Converting to draft to bring tests

@talboren
Copy link
Member

@Matvey-Kuk any updates on this one?

@talboren
Copy link
Member

@Matvey-Kuk checking in again 🙏🏼

@Matvey-Kuk Matvey-Kuk closed this Apr 28, 2025
@talboren talboren deleted the Matvey-Kuk/fix-4057 branch May 6, 2025 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working size:L This PR changes 100-499 lines, ignoring generated files. UI User interface related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🐛 Bug]: Merged incidents are not visible in the target incident

3 participants