Skip to content

Comments

fix(ks): employer application should allow empty target group#3863

Merged
nikomakela merged 1 commit intomainfrom
YJDH-738-fix-empty-target-handling
Feb 2, 2026
Merged

fix(ks): employer application should allow empty target group#3863
nikomakela merged 1 commit intomainfrom
YJDH-738-fix-empty-target-handling

Conversation

@nikomakela
Copy link
Contributor

@nikomakela nikomakela commented Feb 2, 2026

YJDH-738.

A critical fix to API data input serializer of employer application handling. When employer's UI creates a new draft, it always sends an empty target group. This empty string needs to be allowed also in serializer which is called by EmployerApplicationSerializer.

image

Here clicking the "Load information..." -button, triggers an application creation with an empty string set as a target_group.

When a draft is created, the target group can be chosen and then when it's selected, it's also post to serializer as selected:

image

YJDH-738.

A critical fix to API data input serializer of employer application
handling. When employer's UI creates a new draft, it always sends an
empty target group. This empty string needs to be allowed also in
serializer which is called by EmployerApplicationSerializer.
@nikomakela nikomakela requested a review from a team as a code owner February 2, 2026 13:00
@nikomakela
Copy link
Contributor Author

The UI should not try to send something that it does not have yet. Sending an empty form to create a draft should be replaced with something that sends only the given data. Or the creation of draft could even be totally omitted, but it's it's currently needed by the summary view. If the summary view would data from browser instead of draft data from database, the creation of draft could be omitted.

@azure-pipelines
Copy link

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

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 2, 2026

@azure-pipelines
Copy link

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

@azure-pipelines
Copy link

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

@azure-pipelines
Copy link

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

@azure-pipelines
Copy link

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

@azure-pipelines
Copy link

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

@azure-pipelines
Copy link

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

@nikomakela nikomakela merged commit ddef4d4 into main Feb 2, 2026
74 checks passed
@nikomakela nikomakela deleted the YJDH-738-fix-empty-target-handling branch February 2, 2026 13:31
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