Commit graph

170 commits

Author SHA1 Message Date
oleghasjanov
7799727867 feat: add age validation for admin contacts
- Add AgeValidation module for consistent age checks
- Validate admin contacts must be at least 18 years old
- Move age validation logic from Domain to shared module
- Add tests for admin contact age validation
- Fix JSON format for admin_contacts_allowed_ident_type setting

This change ensures that administrative contacts must be adults (18+),
using the same age validation logic as for registrants. The validation
works with both birthday and Estonian ID formats. Settings are now
properly stored as JSON strings for consistent parsing.
2025-03-20 16:37:38 +02:00
Timo Võhmar
98bf7fb594
Merge pull request #2751 from internetee/2742-clienthold-status-must-not-me-reset-unless-the-forcedelete-status-is-reset
fix: prevent client_hold status from returning after manual removal
2025-02-19 15:38:17 +02:00
Timo Võhmar
38dc5466e9
Merge pull request #2723 from internetee/company-validator-during-creation
feat: restore company validation for Estonian organizations
2025-02-12 10:33:28 +02:00
oleghasjanov
6194c5c58a fix: prevent client_hold status from returning after manual removal
- Add flag in force_delete_data to track manual client_hold removal
- Update ProcessClientHold to respect manual status removal
- Add test to verify client_hold doesn't return after admin removes it

When an admin manually removes the client_hold status from a domain,
it should not be automatically re-added by the ProcessClientHold job.
This change tracks manual removals and prevents the status from being
re-added while maintaining the force delete process.
2025-02-10 13:42:19 +02:00
oleghasjanov
19df0cd57f fix tests -> count of running jobs were decreased 2025-02-03 14:08:50 +02:00
oleghasjanov
f2978599b4 feat: add admin contact ident type validation
- Add new setting for allowed admin contact ident types
- Add validation for admin contact ident types on domain create/update
- Add UI controls for managing allowed ident types
- Add tests for new validation rules
- Update domain model to respect new settings

The changes allow configuring which identification types (private person,
organization, birthday) are allowed for administrative contacts. This is
enforced when creating new domains or adding new admin contacts.
2025-02-03 13:59:03 +02:00
Oleg Hasjanov
8eee65579b move validator from callback to action interactor and to the api controller 2024-02-02 09:08:04 +02:00
Oleg Hasjanov
f4d276fc44 comment out not relevant tests 2024-02-02 09:08:04 +02:00
Oleg Hasjanov
736d935e3e added test 2024-02-02 09:08:04 +02:00
Sergei Tsoganov
d3bca1434c Refactored and corrected code for domain force delete 2023-05-17 16:04:40 +03:00
olegphenomenon
51dd9dc112 added condition for send expired email 2022-12-02 12:41:55 +02:00
olegphenomenon
17b9cf0ffc send expire email for multiyear domains 2022-12-02 11:12:48 +02:00
Thiago Youssef
62f18c0358 fix test 2022-10-16 07:55:24 -03:00
Thiago Youssef
9d7bf049e6 Delete duplicate test 2022-09-25 11:13:23 -03:00
Thiago Youssef
39022eab9e Fix tests 2022-09-25 11:06:16 -03:00
Thiago Youssef
71d1e9bf47 Migrate refresh status notes to CheckForceDeleteLift job 2022-09-25 10:31:31 -03:00
Thiago Youssef
c6ff1ad300 fix tests 2022-09-18 17:56:05 -03:00
Thiago Youssef
929ccf6985 Migrate force delete refresh status notes to a job 2022-09-18 13:37:16 -03:00
Thiago Youssef
70ff87bd20 Add tests 2022-08-15 06:34:37 -03:00
Thiago Youssef
943dedd194 Remove deprecated statuses_before_force_delete field 2022-05-24 16:36:21 +03:00
Thiago Youssef
ee76deaf52 Fix tests 2022-05-03 14:10:48 +03:00
Thiago Youssef
b1afdbf50e Add rake task optional args 2022-05-03 13:43:19 +03:00
Thiago Youssef
944aba563c Fix tests 2022-05-02 12:52:32 +03:00
Thiago Youssef
c246bbaa6d Remove legacy code 2022-04-28 12:29:24 +03:00
Thiago Youssef
626edbd4c3 Add validation event check force delete to a job 2022-04-27 13:45:12 +03:00
olegphenomenon
bc0a9d4f99 comment out force delete check callback 2022-04-26 09:17:12 +03:00
Timo Võhmar
253da801e6
Merge pull request #2344 from internetee/fix-fd-poll-message-after-validation
fix poll message spam after validation email
2022-04-18 10:32:10 +03:00
Thiago Youssef
d0d40cc792 Fix tests 2022-04-13 13:45:58 +03:00
Thiago Youssef
f8612d687f Remove email verification legacy code 2022-04-13 11:51:08 +03:00
olegphenomenon
e320a7ced1 fix poll message spam after validation email 2022-04-12 15:32:21 +03:00
dinsmol
04ade0cab2 Fix tests 2022-01-21 01:55:04 +03:00
dinsmol
8cab4f6df4 Fix tests and errors 2022-01-17 17:16:05 +03:00
dinsmol
d5e6ba1e69 Fix tests 2022-01-16 00:14:14 +03:00
dinsmol
17be0908cd Fix tests 2022-01-15 23:36:24 +03:00
dinsmol
7c7213c337 Fix tests 2022-01-15 23:09:31 +03:00
dinsmol
9f9606aba0 Fix tests 2022-01-14 10:34:13 +03:00
dinsmol
ee4f340128 Fix test 2022-01-14 09:57:37 +03:00
dinsmol
f63a51a5d6 Style fix 2022-01-14 09:44:06 +03:00
dinsmol
c47b093a45 Implement FD notes updating 2022-01-14 00:39:31 +03:00
olegphenomenon
2543b9c1f8 fixed error 2021-11-15 16:22:29 +02:00
olegphenomenon
6a050f9ce3 updated restore function 2021-10-22 14:51:58 +03:00
olegphenomenon
f65063f6a5 removed delete prohibited remover 2021-10-22 12:15:38 +03:00
Timo Võhmar
dbb58bc2e7
Merge pull request #2167 from internetee/93-locked-domains-failed-after-fc
93 locked domains failed after fc
2021-10-21 11:02:06 +03:00
Alex Sherman
70a6a44525 Fix deprecated email_notification usage in tests 2021-10-07 16:18:02 +05:00
Alex Sherman
d48b0f4401 Fixed FD test for new behaviour 2021-10-07 16:18:02 +05:00
olegphenomenon
a896e78e51 updated tests 2021-09-24 14:18:39 +03:00
OlegPhenomenon
ab26100e78
Merge branch 'master' into 93-locked-domains-failed-after-fc 2021-09-24 09:32:27 +03:00
olegphenomenon
09eab21d2b added test and saving statuses into histroy field 2021-09-23 11:05:02 +03:00
olegphenomenon
622dba4f1c init 2021-09-22 15:09:31 +03:00
olegphenomenon
4d64ee21a1 refactoring 2021-09-22 11:21:49 +03:00