Commit graph

33 commits

Author SHA1 Message Date
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
oleghasjanov
cd5de3bd14 commit
feat: make technical contacts optional for all domains

- Remove automatic tech contact assignment from admin contacts
- Set minimum tech contacts to 0 for all registrant types
- Update tests to reflect optional tech contacts
- Keep max tech contacts limit from settings

This change implements the requirement to make technical contacts optional
for all domain types while maintaining the maximum limit from settings.
Previously tech contacts were required for organizations and automatically
copied from admin contacts.
2025-01-31 15:49:35 +02:00
oleghasjanov
863dcce647 Add admin contact validation rules based on registrant type and age
- Add validation requiring admin contacts for legal entity registrants
- Add validation requiring admin contacts for underage private registrants:
  - Under 18 years old for birthday-based identification
  - Under 18 years old for Estonian ID numbers
- Make admin contacts optional for:
  - Adult private registrants (18+ years)
  - Adult Estonian ID holders
  - Non-Estonian private registrants
- Add tests covering all new validation scenarios
- Add helper methods to calculate age and parse Estonian ID birth dates
2025-01-31 12:49:14 +02:00
oleghasjanov
3c169bb00b Make admin contacts optional for private registrants
This change makes admin contacts optional for private registrants while keeping them mandatory for organizations. The changes include:

- Updated Domain model validations to make admin and tech contacts optional (min=0) for private registrants
- Added validation rules methods to handle different requirements based on registrant type
- Modified EPP domain creation to support domains without admin contacts for private registrants
- Updated attach_default_contacts to skip adding contacts for private registrants
- Added comprehensive test coverage for:
  - Domain model validations with private/org registrants
  - EPP domain creation without admin contacts for private registrants
  - REPP API contact management for private registrants

This implements the requirement to make admin contacts optional for private registrations of .ee domains while maintaining the existing validation rules for organizations.
2025-01-07 12:24:57 +02:00
Oleg Hasjanov
96bc237484 implement mechanism of save statuses for force delete and lock 2021-07-14 12:04:55 +03:00
Alex Sherman
eac7dd352b Revert "Merge pull request #1902 from internetee/1900-removing-registry-lock-should-not-remove-statuses-set-prior-to-setting-it"
This reverts commit f6fcf15fff, reversing
changes made to 26618a3c90.
2021-04-14 12:31:26 +05:00
Oleg Hasjanov
dad4790ccc fix: made admin status store, related to lock feature 2021-04-07 14:46:40 +03:00
Oleg Hasjanov
28a54d6612 implement domain statuses restore after domain locked, added test 2021-04-05 15:36:24 +03:00
Oleg Hasjanov
0c1c015fc9 Wrote test for admin users 2021-01-15 16:15:31 +02:00
Alex Sherman
5363c546a5 Move all the existing interactors to Domains namespace 2020-11-30 13:50:26 +05:00
Alex Sherman
e62f0a077a Remove domain namespace 2020-11-11 21:16:27 +05:00
Alex Sherman
bce39e3404 Move interactor from Interactor gem to ActiveInteraction 2020-11-11 21:07:22 +05:00
Alex Sherman
3c7fa88463 Inherit all the interactors from base one 2020-11-10 15:08:10 +05:00
Alex Sherman
f97dff6002 Fix tests & interactor process 2020-11-10 14:56:25 +05:00
Karl Erik Õunapuu
d81fd763e2
Test domain is renewable if pendingDelete is set 2020-10-05 15:33:38 +03:00
Karl Erik Õunapuu
9976e3dd93
Test renewal prohibited statuses 2020-09-28 13:01:47 +03:00
Artur Beljajev
41fee1d098 Remove redundant database column domains.registered_at
Alias `Domain#registered_at` to `created_at`

Closes #1442
2020-09-04 13:25:27 +05:00
Alex Sherman
a0029d0a80 Fix error if domain name was nil.
Used for some old history entries
Closes #1663
2020-08-27 13:04:47 +05:00
Timo Võhmar
dfe29fa986
Merge pull request #1644 from internetee/1642-refactor-registrant-api-contacts
Add company contacts to registrant API
2020-08-26 14:59:32 +03:00
Alex Sherman
c4de5655e1 Add company controlled contacts to registrant API
Fix tests.
2020-07-15 15:11:51 +05:00
Alex Sherman
68833e11ab Add uniquie constraints to domain_contacts & nameservers 2020-07-14 17:11:42 +05:00
Alex Sherman
daac2977d0 Add support of single-character domains 2020-07-02 17:17:22 +05:00
Timo Võhmar
3be2c384a2
Revert "Fix possible doubling of contact objects after race" 2020-06-30 15:39:48 +03:00
Alex Sherman
2fdc487511 Fix possible doubling of contact objects after race 2020-06-22 15:08:59 +05:00
Alex Sherman
e7581246d6 Add test for clear force delete on registrar change 2020-01-17 20:09:48 +05:00
Artur Beljajev
fa52001be6 Upgrade to Rails 5.0
Closes #377
2019-11-15 15:26:33 +02:00
Artur Beljajev
53a7dab7eb Fix sporadic test failures 2019-10-09 17:20:24 +03:00
Artur Beljajev
54577b530b Remove specs 2019-10-07 15:44:14 +03:00
Artur Beljajev
110b0e4cef Fix test 2019-04-01 20:05:09 +03:00
Artur Beljajev
5d63feb0a5 Update emails' content
Closes #1127
2019-03-28 15:22:46 +02:00
Artur Beljajev
83f8a9fb6a Extract company register
Closes #1079, #916, #1077
2019-03-15 17:33:07 +02:00
Artur Beljajev
42e8f86dae Integrate auction
Closes #874
2019-01-18 18:06:54 +02:00
Artur Beljajev
a002e87d7c Move test case 2019-01-06 23:20:31 +02:00
Renamed from test/models/domain/domain_test.rb (Browse further)