Skip to content

Conversation

@3388ShubinPavel
Copy link
Contributor

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Mar 16, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 54.54%. Comparing base (fe24cb3) to head (d331a5e).
Report is 14 commits behind head on master.

Files with missing lines Patch % Lines
src/dataLoaders.ts 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #475      +/-   ##
==========================================
- Coverage   54.62%   54.54%   -0.08%     
==========================================
  Files           9        9              
  Lines         119      121       +2     
  Branches       10       10              
==========================================
+ Hits           65       66       +1     
- Misses         50       51       +1     
  Partials        4        4              

☔ 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.

import DataLoader from 'dataloader';
import { Db, ObjectId } from 'mongodb';
import { PlanDBScheme, UserDBScheme, WorkspaceDBScheme, ProjectDBScheme } from '@hawk.so/types';
import { PlanDBScheme, UserDBScheme, WorkspaceDBScheme, ProjectDBScheme, ReleaseDBScheme } from '@hawk.so/types';
Copy link
Contributor

Choose a reason for hiding this comment

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

redundant

Comment on lines 67 to 79
return releases.map(release => ({
...release,
files: release.files?.map(file => {
const fileDetail = release.fileDetails?.find(
(detail: SourceMapFileChunk) => detail._id.toString() === file._id?.toString()
);

return {
...file,
size: fileDetail ? fileDetail.length : 0,
};
}),
}));
Copy link
Contributor

Choose a reason for hiding this comment

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

this triple nesting seems wrong to me, can we optimize it somehow?

"""
Project releases
"""
releases: [Release!]!
Copy link
Contributor

Choose a reason for hiding this comment

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

why releases list is required in project, what if user never sent any releases?

@3388ShubinPavel 3388ShubinPavel merged commit d4ad37c into master Mar 26, 2025
5 of 6 checks passed
@3388ShubinPavel 3388ShubinPavel deleted the feat-release branch March 26, 2025 19:18
@3388ShubinPavel 3388ShubinPavel restored the feat-release branch March 26, 2025 20:11
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.

5 participants