Skip to content

Feature/5566 maintenance contract by martin#80

Open
martinyde wants to merge 52 commits into
developfrom
feature/5566_maintenance_contract-by-martin
Open

Feature/5566 maintenance contract by martin#80
martinyde wants to merge 52 commits into
developfrom
feature/5566_maintenance_contract-by-martin

Conversation

@martinyde
Copy link
Copy Markdown
Contributor

@martinyde martinyde commented May 19, 2026

Link to ticket

https://leantime.itkdev.dk/ProjectOverview/projectOverview?fromDate=2025-01-01&userIds=14&tab=ticketdetails#/tickets/showTicket/5566

Depends on: #60

Description

  • Add security contract entity with crud controller
  • Add Abstract full crud controller and extend on it in some cases
  • Add economics service and sync action/command for service agreement synchronization

Screenshot of the result

List:
Skærmbillede 2026-05-19 kl  11 00 27

Detail:
Skærmbillede 2026-05-19 kl  11 00 43

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.

If your code does not pass all the requirements on the checklist you have to add a comment explaining why this change
should be exempt from the list.

Additional comments or questions

If you have any further comments or questions for the reviewer please add them here.

@martinyde martinyde requested a review from turegjorup May 19, 2026 10:55
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 19, 2026

API Specification - Non-breaking changes

API Changelog 1.0.0 vs. 1.0.0

No changes detected

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 19, 2026

Codecov Report

❌ Patch coverage is 19.51952% with 268 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (develop@dcdd479). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/Entity/SecurityContract.php 0.00% 107 Missing ⚠️
...ontroller/Admin/SecurityContractCrudController.php 5.17% 55 Missing ⚠️
src/Service/ServiceAgreementSyncService.php 1.88% 52 Missing ⚠️
...rc/EasyAdmin/Config/Menu/AutoBadgeCrudMenuItem.php 0.00% 14 Missing ⚠️
src/Command/SyncServiceAgreementsCommand.php 0.00% 10 Missing ⚠️
src/Repository/SecurityContractRepository.php 0.00% 10 Missing ⚠️
src/Repository/OIDCRepository.php 0.00% 7 Missing ⚠️
src/Repository/ServiceCertificateRepository.php 0.00% 7 Missing ⚠️
src/EasyAdmin/Config/AutoBadgeMenuItem.php 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             develop      #80   +/-   ##
==========================================
  Coverage           ?   37.14%           
  Complexity         ?      948           
==========================================
  Files              ?      133           
  Lines              ?     2972           
  Branches           ?        0           
==========================================
  Hits               ?     1104           
  Misses             ?     1868           
  Partials           ?        0           
Flag Coverage Δ
unittests 37.14% <19.51%> (?)

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.

turegjorup and others added 5 commits May 20, 2026 10:26
- Drop asset-mapper migration files (now in PR #81)
- Drop duplicate workflows/apispec.yaml (develop has api-spec.yaml)
- Consolidate doctrine validation + fixtures into doctrine.yaml,
  remove duplicates from pr.yaml
- Update doctrine.yaml to actions/checkout@v6 and rename job to
  validate-doctrine-schema
- Revert cosmetic changes to .gitignore, .prettierignore,
  .php-cs-fixer.dist.php, webpack_encore.yaml, .env
- Restore psalm.xml and public/css/admin.css (their removal moved to
  PR #81)
- Trim CHANGELOG: drop PR #60 row, fix #90 → #80 link, keep only
  feature bullets

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- AutoBadgeMenuItem::__call/__callStatic always throw, so return type
  is `never` — type the magic-method parameters too, ignore unnecessary
- AutoBadgeCrudMenuItem::__call delegates to the wrapped CrudMenuItem
  with an arbitrary method name, so return type is `mixed`
- AutoBadgeCrudMenuItem::__callStatic always throws, so return type is
  `never`
- AutoBadgeCrudMenuItem::setBadge uses the wrapped CrudMenuItem's
  documented union (\Stringable|string|int|float|bool|null); the
  runtime is_int check is unchanged
- Enable reportIgnoresWithoutComments in phpstan.dist.neon so any
  future @phpstan-ignore must justify itself in a parenthesised
  comment

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The AssetMapper migration moved to PR #81 but the dashboard and base
template still referenced AssetMapper, causing every admin smoke test
to 500 with "AssetMapper component is not installed".

- DashboardController::configureAssets() goes back to addCssFile('css/admin.css')
- base.html.twig drops the {{ importmap('app') }} block

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The template was a global EasyAdmin override that rendered a hardcoded
"Notes" fieldset with placeholder text on every entity's detail page.
Clearly leftover from local exploration; if notes belong on the
SecurityContract detail, add the field via configureFields() instead.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@turegjorup turegjorup left a comment

Choose a reason for hiding this comment

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

I have cleaned up some my left over mess here, and made a dedicated PR for switching to asset mapper here: #81

On this PR, we should clean up migrations to just one.

@martinyde martinyde marked this pull request as ready for review May 20, 2026 10:22
@martinyde martinyde requested a review from turegjorup May 20, 2026 10:22
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.

3 participants