Commit graph

5788 commits

Author SHA1 Message Date
Timo Võhmar
268b942042
Merge pull request #2741 from internetee/disclose-phone-num-for-org-registrants
Update company_register gem and fix logger dependency
2025-01-31 17:52:57 +02:00
Timo Võhmar
3289851340
Merge pull request #2740 from internetee/add-birthdate-verification
Added birthday ident verification
2025-01-31 17:50:55 +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
c2affb393f Refactor domain admin contact validation logic
- Remove validate_admin_contact_type validation
- Extract age calculation logic into separate methods
- Add helper methods for Estonian ID and birthday age checks
- Improve code organization and readability
- Split complex require_admin_contacts? method into smaller methods
2025-01-31 13:01:00 +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
tsoganov
c87c86ac9b Corrected tests 2025-01-31 12:49:14 +02:00
tsoganov
ffe2cad8d9 Improved verification email translations 2025-01-31 12:49:14 +02:00
oleghasjanov
cb868cd1a9 Removed Russian notices from mail templates 2025-01-31 12:49:14 +02:00
oleghasjanov
803276d8c8 Add phone number validation for Estonian organization contacts
- Add OrgRegistrantPhoneCheckerJob execution for contact creation and update
- Rename validate_* methods to maybe_validate_* for consistency
- Add tests for phone number validation in REPP API
- Fix method naming and add proper job arguments

This ensures phone numbers are validated against company register data
for Estonian organization contacts after creation or update.
2025-01-30 12:49:20 +02:00
oleghasjanov
429e2644d6 Fix registrant user lookup in phone checker job
- Replace RegistrantUser.find_by with Contact model query
- Add proper scoping for organization contacts from Estonia
- Include join with registrant domains

This ensures consistent contact lookup between bulk and single checker methods
2025-01-30 10:57:45 +02:00
oleghasjanov
fe880ab3d1 refactor 2025-01-29 14:50:33 +02:00
oleghasjanov
d3d91b5294 Update company_register gem and fix logger dependency
- Switch company_register gem to 'issues-with-upcoming-data' branch
- Add concurrent-ruby 1.3.4 to fix ThreadSafeLevel logger error
- Update various gem dependencies

Resolves logger initialization error related to ActiveSupport::Logger::ThreadSafeLevel
2025-01-29 14:47:51 +02:00
tsoganov
8fdbf32913 Added country claim for birthday ident verifications 2025-01-29 11:50:45 +02:00
tsoganov
8ed720b383 Fixed identification request webhook 2025-01-28 10:41:54 +02:00
Timo Võhmar
a9b341ebfe
Merge pull request #2730 from internetee/2702-optional-admin-contact-for-private-registrations
Make admin contacts optional for private registrants
2025-01-28 10:15:33 +02:00
tsoganov
55848e1000 Added birthday ident verification 2025-01-27 16:26:20 +02:00
Timo Võhmar
8dcc287d60
Merge pull request #2737 from internetee/improve-verification-translations
Improved verification email translations
2025-01-15 16:45:44 +02:00
tsoganov
5cf18bd9e5 Corrected tests 2025-01-14 15:52:33 +02:00
tsoganov
03f2ab0463 Improved verification email translations 2025-01-14 15:31:53 +02:00
oleghasjanov
1be8b28acd Removed Russian notices from mail templates 2025-01-08 11:27:02 +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
Timo Võhmar
e38c46757b
Merge pull request #2718 from internetee/daily-fd-domains-subscription
Daily email notification to admins about new FD statuses
2024-12-31 10:56:52 +02:00
Timo Võhmar
ce50664930
Merge pull request #2717 from internetee/fix-poll-message-to-invalid-company-ident
feat: Add invalid ident notification for company register status checks
2024-12-31 10:54:43 +02:00
Timo Võhmar
1a063fb1ae
Merge pull request #2666 from internetee/2665-fix-expired-status
Manage domain auto expiry status
2024-12-31 10:52:11 +02:00
oleghasjanov
4b52284a86 Remove debug output from force delete process
WHAT:
- Removed debug output line from PostSetProcess
- Fixed force_delete_start date comparison in admin notifier job

WHY:
- Debug output was adding noise to logs and wasn't necessary

HOW:
- Removed puts statement for domain status debugging
- Changed query to use exact timestamp comparison for force_delete_start
2024-12-19 14:27:47 +02:00
oleghasjanov
6facbc8302 updated poll message 2024-12-19 11:15:23 +02:00
oleghasjanov
b229613b8a feat: Add invalid ident notification for company register status checks
- Add notification system for invalid company identifications
- Update force delete notifications to handle invalid company cases
- Add translations for invalid ident messages (ET/EN)
- Add test coverage for invalid ident scenarios
- Remove debug logging from force delete process
- Clean up unused CSV templates

This change improves handling of invalid company identifications in the
Estonian business registry by providing proper notifications to registrars
and ensuring appropriate status updates.
2024-12-17 14:08:57 +02:00
oleghasjanov
d0a39bf469 remove company creation validation 2024-11-25 14:48:28 +02:00
oleghasjanov
d23b66e859 added logs for company register values 2024-11-25 13:17:07 +02:00
oleghasjanov
64d9ed4bc6 test 2024-11-25 12:57:01 +02:00
oleghasjanov
6d810bb604 call company status directly 2024-11-25 12:50:30 +02:00
oleghasjanov
7f6c4f24a6 added more logs 2024-11-25 12:46:46 +02:00
oleghasjanov
88d7689295 changed ident to string 2024-11-25 12:44:01 +02:00
oleghasjanov
95f5acb2b0 change test mode directly 2024-11-25 12:40:09 +02:00
oleghasjanov
cded813955 added details to error message 2024-11-25 12:29:20 +02:00
oleghasjanov
1dd0d29635 added retries 2024-11-25 12:27:13 +02:00
oleghasjanov
748a146fe5 added logs to exception 2024-11-25 12:18:56 +02:00
oleghasjanov
959ac0a9b2 mock method 2024-11-25 12:15:50 +02:00
oleghasjanov
025eb26f3b added logs to company register 2024-11-25 12:11:24 +02:00
oleghasjanov
5778c5e4e9 added more logs 2024-11-25 12:07:22 +02:00
oleghasjanov
962037c5a0 added test error message 2024-11-25 12:04:23 +02:00
oleghasjanov
2c1051a427 lecolice constants into the local interaction 2024-11-25 11:57:15 +02:00
oleghasjanov
00aee547dd registred company returns not exists 2024-11-25 11:47:30 +02:00
tsoganov
0085f99e02 Modified identification request webhook 2024-11-14 08:37:09 +02:00
tsoganov
d04622c49f Fixed request endpoint uri 2024-11-14 08:37:09 +02:00
tsoganov
8ed18ab76e Skipped authenticity token for webhook controller 2024-11-14 08:37:09 +02:00
tsoganov
285fa138e6 Fixed codeclimate 2024-11-14 08:37:09 +02:00
tsoganov
637cabf95f Handling contact verifications 2024-11-14 08:37:09 +02:00
oleghasjanov
292a4fddc5 fixed tests: updated gems; improve company register status job and test stability
- Refactor CompanyRegisterStatusJob for better readability and error handling
- Update whitelisted_companies to use JSON parsing with fallback
- Fix company register status check in tests with proper mock data
- Remove debug logging statements
- Add null check for domain status notes
- Update test dependencies (Capybara and Selenium) for better stability
2024-11-13 15:04:39 +02:00
oleghasjanov
3cf4e29531 change unique collection from by ident to code 2024-11-08 12:46:17 +02:00