Commit graph

355 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
oleghasjanov
38fdc35496 Remove extra update 2025-02-03 14:08:50 +02:00
oleghasjanov
ba9aeb437d remove logs, fixed company register status job 2024-11-08 12:46:17 +02:00
oleghasjanov
6ff5e55a24 business contact validation + tests 2024-11-08 12:45:12 +02:00
tsoganov
c7d3788a36 Updated contact name data type in schemas 2024-08-22 11:25:54 +03: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
33175eea88 Fixed ransack attributes 2023-04-06 14:15:05 +03:00
Sergei Tsoganov
aa8d8c35e8 Fixed ransack admin search 2023-04-06 13:54:03 +03:00
Sergei Tsoganov
37c16a067d Updated dependency ransack to v4 2023-03-16 11:28:25 +02:00
olegphenomenon
86fad85d03 fixed legal attributes 2022-11-28 12:01:40 +02:00
olegphenomenon
ea2fc01a60 disclose attributes validator 2022-11-28 11:26:43 +02:00
olegphenomenon
39e066f15f remove validator 2022-11-25 09:31:50 +02:00
olegphenomenon
7f41c5c26d added contact publisher 2022-11-25 09:31:50 +02:00
olegphenomenon
84aa93e97b added breakpoints 2022-11-25 09:31:50 +02:00
Thiago Youssef
59fe7dffbe Migrate publishable field name to registrant_publishable 2022-11-25 09:31:50 +02:00
Thiago Youssef
4286a6bab7 Test changing publishable field on registrant API 2022-11-25 09:31:50 +02:00
Thiago Youssef
5c129b24ef Add publishable contact field 2022-11-25 09:31:50 +02:00
olegphenomenon
6c66ba7383 returned back missing peace of code from #2349 branch 2022-09-02 12:39:00 +03:00
Sergei Tsõganov
a5ffce290d Updated REPP API for new registrar portal 2022-07-12 15:47:25 +03:00
Timo Võhmar
a580c22d71
Merge pull request #2375 from internetee/2374-deprecated-validation-events
Prevent deprecated validation events
2022-05-17 13:58:12 +03:00
olegphenomenon
3b3bd67a37 remove validates actions from contact and registrar 2022-05-17 12:06:11 +03:00
Thiago Youssef
2803c733f1 Contact destroy dependent validation event 2022-05-11 14:44:59 +03:00
Timo Võhmar
364954ecfa
Merge pull request #2355 from internetee/2340-fix-contact-update-fails
Deleted disclosable concern from contact
2022-04-20 16:02:03 +03:00
Sergei Tsõganov
41a3c661aa Deleted disclosable concern from contact 2022-04-13 15:59:01 +03:00
Thiago Youssef
f8612d687f Remove email verification legacy code 2022-04-13 11:51:08 +03:00
Timo Võhmar
95780ec84a
Merge pull request #2315 from internetee/2307-bulk-change-poll-messages
Fixed notifications about automatic contact name update
2022-04-05 18:56:47 +03:00
Thiago Youssef
e50501f13f Migrate ToCsv module to CsvGenerator service 2022-04-01 10:59:04 +03:00
Sergei Tsõganov
eb64b3aca4 Modifications for updating business and private contacts 2022-03-29 10:39:26 +03:00
Thiago Youssef
dd513b6313 Remove freeze method call at csv_header 2022-03-14 12:43:53 +02:00
Thiago Youssef
f44bdd1930 Fix admin contacts CSV output 2022-03-14 09:22:03 +02:00
Thiago Youssef
9fb4a6d7e6 Refactor admin/contact_version and admin/domain_version csv generation logic 2022-03-10 16:03:53 +02:00
Alex Sherman
d4fe961e34 Add basic storage for validation events 2021-10-07 16:13:48 +05:00
Alex Sherman
6675dac63d Revert "WIP Interim save"
This reverts commit 74efab33be5f52d622a96e0967e694b3c5f617dc.
2021-10-07 16:11:24 +05:00
Alex Sherman
7d3f0249dc WIP Interim save 2021-10-07 16:09:15 +05:00
dinsmol
788af6cc5f fixed codeclimate errors 2021-09-09 21:34:56 +03:00
dinsmol
e7e3278267 fixed codeclimate errors 2021-09-09 13:06:51 +03:00
dinsmol
f4e0084895 fixed codeclimate errors (partically) 2021-09-09 09:19:09 +03:00
dinsmol
17fd942459 added name_regexp 2021-07-23 10:57:00 +03:00
Dinar Safiulin
aaedc31457
Merge branch 'master' into 1795-validation-contacts-name 2021-07-23 10:41:02 +03:00
dinsmol
aa7cf1d1b3 using validation for only person names 2021-07-23 09:44:27 +03:00
Keijo Raamat
46479dc31b Revert "Merge pull request #2074 from internetee/1795-validation-contacts-name"
This reverts commit e2116a505e, reversing
changes made to ded22685c9.
2021-07-12 19:22:17 +03:00
dinsmol
f927ee1cf7 freezed name_regexp 2021-07-08 09:30:53 +03:00
dinsmol
7bac37f735 minor fixes 2021-07-07 23:31:16 +03:00
dinsmol
d97f9ab720 created black list of symbols 2021-07-07 18:01:48 +03:00
dinsmol
2a81b66d61 fix contacts name validation 2021-07-07 09:47:42 +03:00
Alex Sherman
7163695ad1 Add tests & fixes for epp contact 2021-06-17 13:38:02 +05:00
Alex Sherman
313731232e Move jobs from Que to ActiveJob 2021-04-12 17:22:35 +05:00
Alex Sherman
43b3033991 Fix namespaces for Zeitwerk class loader 2021-03-05 19:09:24 +05:00