-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ks-backend): add create_without_ssn endpoint & tests for it
This new endpoint can be used to create youth applications without a permanent Finnish personal identity code refs YJDH-697
- Loading branch information
1 parent
b7b4f79
commit 097b099
Showing
12 changed files
with
1,170 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...nd/kesaseteli/applications/migrations/0033_add_non_vtj_birthdate_and_home_municipality.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 3.2.23 on 2024-04-16 11:50 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('applications', '0032_alter_employersummervoucher_target_group'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='youthapplication', | ||
name='non_vtj_birthdate', | ||
field=models.DateField(blank=True, default=None, help_text='Birthdate of person who has no permanent Finnish personal identity code, and thus no data obtainable through the VTJ integration', null=True, verbose_name='non-vtj birthdate'), | ||
), | ||
migrations.AddField( | ||
model_name='youthapplication', | ||
name='non_vtj_home_municipality', | ||
field=models.CharField(blank=True, default='', help_text='Home municipality of person who has no permanent Finnish personal identity code, and thus no data obtainable through the VTJ integration', max_length=64, verbose_name='non-vtj home municipality'), | ||
), | ||
] |
20 changes: 20 additions & 0 deletions
20
backend/kesaseteli/applications/migrations/0034_make_social_security_number_optional.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Generated by Django 3.2.23 on 2024-04-16 13:46 | ||
|
||
import common.utils | ||
from django.db import migrations | ||
import encrypted_fields.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('applications', '0033_add_non_vtj_birthdate_and_home_municipality'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='youthapplication', | ||
name='social_security_number', | ||
field=encrypted_fields.fields.SearchField(blank=True, db_index=True, encrypted_field_name='encrypted_social_security_number', hash_key='ee235e39ebc238035a6264c063dd829d4b6d2270604b57ee1f463e676ec44669', max_length=66, null=True, validators=[common.utils.validate_optional_finnish_social_security_number]), | ||
), | ||
] |
26 changes: 26 additions & 0 deletions
26
backend/kesaseteli/applications/migrations/0035_add_youth_application_creator.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Generated by Django 3.2.23 on 2024-04-19 11:09 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('applications', '0034_make_social_security_number_optional'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='youthapplication', | ||
name='creator', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='created_youth_applications', to=settings.AUTH_USER_MODEL, verbose_name='creator'), | ||
), | ||
migrations.AlterField( | ||
model_name='youthapplication', | ||
name='handler', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='handled_youth_applications', to=settings.AUTH_USER_MODEL, verbose_name='handler'), | ||
), | ||
] |
Oops, something went wrong.