Skip to content

Skip excluded workers in workload report#258

Merged
jeppekroghitk merged 19 commits intofeature/new-leantime-apifrom
hotfix/ignore-unset-normtid-from-excluded-workers-in-reports
Jan 7, 2026
Merged

Skip excluded workers in workload report#258
jeppekroghitk merged 19 commits intofeature/new-leantime-apifrom
hotfix/ignore-unset-normtid-from-excluded-workers-in-reports

Conversation

@jeppekroghitk
Copy link
Copy Markdown
Contributor

@jeppekroghitk jeppekroghitk commented Dec 16, 2025

Link to ticket

N/A

Description

Skip workers in workload report who are set to be excluded from reports.
Mock 'getIncludeInReports' in failing tests.

Screenshot of the result

N/A

Checklist

  • My code is covered by test cases.
  • My code passes our test (all our tests).
  • My code passes our static analysis suite.
  • My code passes our continuous integration process.

@jeppekroghitk jeppekroghitk changed the base branch from develop to feature/new-leantime-api December 16, 2025 11:34
@jeppekroghitk jeppekroghitk requested a review from tuj January 5, 2026 12:49
Comment thread src/Service/WorkloadReportService.php Outdated
}

foreach ($workers as $worker) {
$workerIncludedInReports = $worker->getIncludeInReports();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Instead of filtering out the workers at this stage I think you should limit the $worker array to begin with.

$workers = $this->workerRepository->findBy(["includeInReports" => true]);

@jeppekroghitk jeppekroghitk requested a review from tuj January 6, 2026 12:39
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (feature/new-leantime-api@013fa32). Learn more about missing BASE report.

Additional details and impacted files
@@                     Coverage Diff                     @@
##             feature/new-leantime-api     #258   +/-   ##
===========================================================
  Coverage                            ?   17.45%           
  Complexity                          ?     1678           
===========================================================
  Files                               ?      205           
  Lines                               ?     6955           
  Branches                            ?        0           
===========================================================
  Hits                                ?     1214           
  Misses                              ?     5741           
  Partials                            ?        0           
Flag Coverage Δ
17.45% <100.00%> (?)
unittests 17.45% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@jeppekroghitk jeppekroghitk added bug Something isn't working labels Jan 6, 2026
@jeppekroghitk jeppekroghitk merged commit b2f1e0a into feature/new-leantime-api Jan 7, 2026
9 checks passed
@jeppekroghitk jeppekroghitk deleted the hotfix/ignore-unset-normtid-from-excluded-workers-in-reports branch January 7, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants