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

UHF-9159 subgroup #161

Merged
merged 8 commits into from
Nov 21, 2023
Merged

UHF-9159 subgroup #161

merged 8 commits into from
Nov 21, 2023

Conversation

dire
Copy link
Contributor

@dire dire commented Nov 15, 2023

UHF-9159

What was done?

  • Added new field subgroup to TPR units.
  • Added tests for the new field.

How to install

  • Make sure your KASKO instance is up and running.
    • make fresh
  • Chance the branch to get correct configs: git checkout UHF-9159_subgroup-kasko-configs.
  • Run composer require drupal/helfi_tpr:dev-UHF-9159_subgroup
  • Run composer require drupal/helfi_platform_config:dev-UHF-9159_subgroup-field-conf
  • Run composer require drupal/hdbt:dev-UHF-9159_subgroup-accordion
  • Run make drush-updb drush-cim drush-locale-update drush-cr.

How to test

Testing the new field and migration

Run the tests

Run following in the /app inside the container.

  • Run vendor/bin/phpunit -c /app/phpunit.xml.dist public/modules/contrib/helfi_tpr/tests/src/Unit/ConnectionRepositoryTest.php
  • Run vendor/bin/phpunit -c /app/phpunit.xml.dist public/modules/contrib/helfi_tpr/tests/src/Unit/ConnectionTest.php
  • Run vendor/bin/phpunit -c /app/phpunit.xml.dist public/modules/contrib/helfi_tpr/tests/src/Kernel/UnitMigrationTest.php

All tests should pass.

Other PRs

@codecov-commenter
Copy link

codecov-commenter commented Nov 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (42eed9b) 81.38% compared to head (3783cbc) 81.79%.
Report is 6 commits behind head on main.

❗ Current head 3783cbc differs from pull request most recent head 84d0c42. Consider uploading reports for the commit 84d0c42 to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #161      +/-   ##
============================================
+ Coverage     81.38%   81.79%   +0.40%     
- Complexity      356      360       +4     
============================================
  Files            49       50       +1     
  Lines          2810     2873      +63     
============================================
+ Hits           2287     2350      +63     
  Misses          523      523              

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

@dire dire requested a review from tuutti November 21, 2023 10:00
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

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