Skip to content

Comments

feat(ks): remove target_group field from employer summer voucher#3860

Merged
nikomakela merged 1 commit intomainfrom
YJDH-738-del-empl-trgt-grp
Feb 2, 2026
Merged

feat(ks): remove target_group field from employer summer voucher#3860
nikomakela merged 1 commit intomainfrom
YJDH-738-del-empl-trgt-grp

Conversation

@nikomakela
Copy link
Contributor

YJDH-738.

Remove the target_group database field from EmployerSummerVoucher and replace it with a custom property, that reads the value from the linked YouthSummerVoucher instance.

The included migration processses moves the values from EmployerSummerVoucher to the linked YouthSummerVoucher instances and then alters the structure so that the target group is stored only in YouthSummerVoucher.

Trying to keep some backward compatibility and methods for easy to use by adding a custom property for target group reading from EmployerSummerVoucher.

@nikomakela nikomakela force-pushed the YJDH-738-del-empl-trgt-grp branch 3 times, most recently from 499ea54 to 383d986 Compare January 30, 2026 14:48
@azure-pipelines
Copy link

YJDH-KESASETELI-API branch is deployed to platta: https://yjdh-kesaseteli-pr3860.api.dev.hel.ninja 🚀🚀🚀

@sonarqubecloud
Copy link

@sonarqubecloud
Copy link

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

@azure-pipelines
Copy link

EMPLOYER branch is deployed to platta: https://kesaseteli-pr3860.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-pr3860.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

YOUTH branch is deployed to platta: https://nuortenkesaseteli-pr3860.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

TestCafe result is success for https://nuortenkesaseteli-pr3860.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

HANDLER branch is deployed to platta: https://kesaseteli-handler-ui-pr3860.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-handler-ui-pr3860.dev.hel.ninja 😆🎉🎉🎉

@nikomakela nikomakela force-pushed the YJDH-738-del-empl-trgt-grp branch from 383d986 to 2cda2be Compare February 2, 2026 09:04
@nikomakela nikomakela marked this pull request as ready for review February 2, 2026 09:04
@nikomakela nikomakela requested a review from a team as a code owner February 2, 2026 09:04
@azure-pipelines
Copy link

YJDH-KESASETELI-API branch is deployed to platta: https://yjdh-kesaseteli-pr3860.api.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

YOUTH branch is deployed to platta: https://nuortenkesaseteli-pr3860.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

TestCafe result is success for https://nuortenkesaseteli-pr3860.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

HANDLER branch is deployed to platta: https://kesaseteli-handler-ui-pr3860.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

EMPLOYER branch is deployed to platta: https://kesaseteli-pr3860.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-handler-ui-pr3860.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-pr3860.dev.hel.ninja 😆🎉🎉🎉

@nikomakela nikomakela force-pushed the YJDH-738-del-empl-trgt-grp branch 2 times, most recently from 9771215 to b37112b Compare February 2, 2026 09:57
@azure-pipelines
Copy link

YJDH-KESASETELI-API branch is deployed to platta: https://yjdh-kesaseteli-pr3860.api.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

EMPLOYER branch is deployed to platta: https://kesaseteli-pr3860.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

YOUTH branch is deployed to platta: https://nuortenkesaseteli-pr3860.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

HANDLER branch is deployed to platta: https://kesaseteli-handler-ui-pr3860.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-pr3860.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

TestCafe result is success for https://nuortenkesaseteli-pr3860.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-handler-ui-pr3860.dev.hel.ninja 😆🎉🎉🎉

Copy link
Collaborator

@karisal-anders karisal-anders left a comment

Choose a reason for hiding this comment

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

Please consider adding a docstring/comment to EmployerSummerVoucher.target_group property for clarity saying that it is a backward compatibility property or something like that. Not a blocker, so you can add it or not.

YJDH-738.

Remove the `target_group` database field from `EmployerSummerVoucher`
and replace it with a custom property, that reads the value from the
linked `YouthSummerVoucher` instance.

The included migration processses moves the values from
`EmployerSummerVoucher` to the linked `YouthSummerVoucher` instances and
then alters the structure so that the target group is stored only in
`YouthSummerVoucher`.

Trying to keep some backward compatibility and methods for easy to use
by adding a custom property for target group reading from
`EmployerSummerVoucher`.
@nikomakela nikomakela force-pushed the YJDH-738-del-empl-trgt-grp branch from b37112b to 17d1e7a Compare February 2, 2026 11:13
@nikomakela nikomakela merged commit 31909cc into main Feb 2, 2026
44 of 50 checks passed
@nikomakela nikomakela deleted the YJDH-738-del-empl-trgt-grp branch February 2, 2026 11:19
@azure-pipelines
Copy link

YJDH-KESASETELI-API branch is deployed to platta: https://yjdh-kesaseteli-pr3860.api.dev.hel.ninja 🚀🚀🚀

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 2, 2026

@azure-pipelines
Copy link

YOUTH branch is deployed to platta: https://nuortenkesaseteli-pr3860.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

EMPLOYER branch is deployed to platta: https://kesaseteli-pr3860.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

TestCafe result is success for https://nuortenkesaseteli-pr3860.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-pr3860.dev.hel.ninja 😆🎉🎉🎉

@azure-pipelines
Copy link

HANDLER branch is deployed to platta: https://kesaseteli-handler-ui-pr3860.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

TestCafe result is success for https://kesaseteli-handler-ui-pr3860.dev.hel.ninja 😆🎉🎉🎉

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.

2 participants