Commit graph

11312 commits

Author SHA1 Message Date
oleghasjanov
bf2a038e3a refactor: Extract company status handling logic
- Move company status handling logic into a separate method `handle_company_statuses`
- Improve code readability by splitting proceed_company_status method
- Keep status update logic after handling company statuses
2025-02-03 14:08:50 +02:00
oleghasjanov
7392ce2d76 refactor: Extract company status handling logic
- Move company status handling logic into a separate method `handle_company_statuses`
- Improve code readability by splitting proceed_company_status method
- Keep status update logic after handling company statuses
2025-02-03 14:08:50 +02:00
oleghasjanov
78be26c0d4 send liquidated email only once 2025-02-03 14:08:50 +02:00
oleghasjanov
19611fe429 updated logs sidekiq handling 2025-02-03 14:08:50 +02:00
oleghasjanov
88f884ca47 fix: skip non-scheduled domains in lift_force_delete
Only attempt to cancel force delete for domains that actually have it scheduled.
This prevents unnecessary method calls and potential errors.
2025-02-03 14:08:50 +02:00
oleghasjanov
96fae4a8d4 fix: adjust template_name access for hstore field
Use direct accessor method for template_name instead of hash access since force_delete_data is stored as hstore
2025-02-03 14:08:50 +02:00
oleghasjanov
23c010f034 added new pattern for FD lifted 2025-02-03 14:08:50 +02:00
oleghasjanov
dcf9447f97 added update whois job skipping for lifting FG 2025-02-03 14:08:50 +02:00
oleghasjanov
d126944ad7 reverse 2025-02-03 14:08:50 +02:00
oleghasjanov
19df0cd57f fix tests -> count of running jobs were decreased 2025-02-03 14:08:50 +02:00
oleghasjanov
bbdf44583c updated WhoisUpdateJob condition for running 2025-02-03 14:08:50 +02:00
oleghasjanov
9d036f9af3 added virtual attribute for skip whois update 2025-02-03 14:08:50 +02:00
oleghasjanov
38fdc35496 Remove extra update 2025-02-03 14:08:50 +02:00
oleghasjanov
0829f387f2 added days interval 2025-02-03 14:08:50 +02:00
oleghasjanov
92f82194e1 change registrant query 2025-02-03 14:08:50 +02:00
oleghasjanov
8a93a8b4d2 feat: enhance soft delete process for invalid companies
- Add email notification for soft delete process
- Include company status information in force delete notes
- Add validation check to prevent duplicate force delete scheduling
- Pass additional context (reason, email) to force delete process

This improves the soft delete process by providing more detailed
information about why the domain is being force deleted and ensures
proper notification to the contact.
2025-02-03 14:08:50 +02:00
oleghasjanov
2ec545b3aa feat: add status notes to force delete notifications
- Add notes parameter to force delete interactions to provide more context
- Include company registry status in force delete notifications
- Add status mapping constants for better readability
- Move status note assignment before save in force delete process

Technical details:
- Add notes field to Domains::ForceDelete::Base interaction
- Update force delete notifications to include status notes
- Add REGISTRY_STATUSES mapping in CompanyRegisterStatusJob
- Update tests to verify new notification format
2025-02-03 14:08:50 +02:00
oleghasjanov
45c77f7052 fix: improve company registry data processing
- Switch company_register branch to issues-with-upcoming-data
- Convert ident to string when querying company data
- Add extended logging in CompanyRegisterStatusJob
- Disable automatic merging in renovate.json

Technical changes:
- Update dependencies: date, net-protocol, net-smtp, timeout
2025-02-03 14:08:48 +02:00
oleghasjanov
89097bfabe feat: restore company validation for Estonian organizations
- Re-enable company validation logic for Estonian organization contacts
- Update company_register gem to use master branch
- Restore and update company validation tests
- Add additional check for Estonian country code in validation

This change ensures that only registered or liquidated Estonian companies
can be used when creating organizational contacts.
2025-02-03 14:08:18 +02:00
Timo Võhmar
45703d4b86
Update CHANGELOG.md 2025-02-03 10:52:37 +02:00
Timo Võhmar
9112a48dbd
Merge pull request #2746 from internetee/ident-of-nil-registrant-raise-the-error
add nil check for registrant in phone checker job
2025-02-03 10:51:47 +02:00
oleghasjanov
a0a055a033 commit
fix: add nil check for registrant in phone checker job

Add a guard clause to handle cases where registrant_user is not found
in execute_single_checker method. This prevents potential NoMethodError
when trying to check phone number for non-existent registrant.

Previously the method would raise an error when registrant_user_code
was invalid or not found in the database.
2025-02-01 14:06:52 +02:00
Timo Võhmar
b641235bbd
Update CHANGELOG.md 2025-01-31 17:53:37 +02:00
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
0bbba2bbbf
Update CHANGELOG.md 2025-01-31 17:52:01 +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
Timo Võhmar
5f5d0a976d
Update CHANGELOG.md 2025-01-31 17:50:22 +02:00
Timo Võhmar
190202b221
Merge pull request #2743 from internetee/admin-contacts-requirements
Admin contacts requirements
2025-01-31 17:48:59 +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
Timo Võhmar
385877aa8e Update CHANGELOG.md 2025-01-31 12:49:14 +02:00
Timo Võhmar
f5c43b7b51 Update CHANGELOG.md 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
Timo Võhmar
b5a8b15bb5 Update CHANGELOG.md 2025-01-31 12:49:14 +02:00
oleghasjanov
cb868cd1a9 Removed Russian notices from mail templates 2025-01-31 12:49:14 +02:00
renovate[bot]
9e894ae5fd chore(deps): update actions/upload-artifact action to v4.6.0 2025-01-31 12:49:14 +02:00
oleghasjanov
a30de39bf8 turn off automerge for renovate bot 2025-01-31 12:49:14 +02:00
Sergei Tsõganov
4b84725f4e Update .ruby-version 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
9f81402d64 Corrected integration test 2025-01-28 10:43:59 +02:00
tsoganov
8ed720b383 Fixed identification request webhook 2025-01-28 10:41:54 +02:00
Timo Võhmar
c81aed0c62
Update CHANGELOG.md 2025-01-28 10:19:31 +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
8b872b4a14 Corrected test 2025-01-27 16:43:19 +02:00