Commit graph

127 commits

Author SHA1 Message Date
oleghasjanov
ae96863b88 feat: Implement P12 certificate generation improvements
- Replace hardcoded P12 password with randomly generated one
- Add p12_password column to certificates table
- Update certificate serializer to include p12 password in response
- Remove deprecated certificate revocation logic
- Add tests for certificate revocation functionality
- Implement async P12 generation via Sidekiq job
- Add job uniqueness to prevent parallel certificate generation

Migration changes:
- Replace p12_password_digest with p12_password column
- Add safety measures for column removal
2025-04-16 11:47:52 +03:00
oleghasjanov
bfecc3c40e refactor: improve force delete domain status tracking
- Add force_delete_domain_statuses_history_data to store force delete metadata
- Update force delete queries to use new JSON status history
- Refactor force delete tests to use travel_to helper
- Remove direct force_delete_start field usage
- Update status notes to include company identification number
2025-04-01 13:52:43 +03:00
oleghasjanov
917e426d91 feat: Add lifted force delete domains to daily admin notification
- Add tracking of lifted force delete domains with reason and date in json_statuses_history
- Modify ForceDeleteDailyAdminNotifierJob to include both force deleted and lifted domains
- Update admin mailer template to show separate tables for force deleted and lifted domains
- Update tests to reflect new functionality and fix timing issues with yesterday's data

Key changes:
- Store lift reason and date when canceling force delete
- Add new query method for finding lifted force delete domains
- Split email template into two sections
- Fix tests to properly handle the yesterday time window
2025-03-31 16:07:04 +03:00
oleghasjanov
ea8fa01f9b refactor 2025-03-06 11:51:01 +02:00
oleghasjanov
a11c0fca2d fix: handle HTTPClient::KeepAliveDisconnected in OrgRegistrantPhoneCheckerJob
This commit implements a reliable connection error handling solution for the
Company Register API integration. The job previously failed when connection
errors occurred without proper recovery mechanisms.
The implementation:
Adds a lightweight Retryable module with configurable retry logic
Implements smart caching of API responses (1 day expiration)
Handles common network errors like KeepAliveDisconnected and timeouts
Provides a fallback mechanism when all retry attempts fail
Ensures test reliability with cache-skipping in test environment
Testing:
Added specific tests for both recovery and fallback scenarios
Verified cache behavior in production and test environments
Resolves connection errors observed in production logs without adding
unnecessary complexity to the codebase.
2025-03-06 11:38:09 +02:00
oleghasjanov
cdf301bc0e updated test 2025-02-17 13:16:14 +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
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
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
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
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
da17294836 feat: add company register status job tests
- Add test for checking companies with status K (DELETED) that should be scheduled for force delete
- Add test for checking companies that are not found in register and should be deleted
- Add company_details method to CompanyRegisterClientStub for mocking API responses

The tests verify that:
1. Companies with DELETED status are properly marked for force delete
2. Companies not found in register are marked as deleted and scheduled for force delete
3. Proper mocking of company_details API responses
2024-11-14 10:13:01 +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
61497deb2a added more tests 2024-11-08 12:45:12 +02:00
olegphenomenon
5ddd8b4817 added test 2022-12-07 14:33:43 +02:00
Sergei Tsõganov
3ae24f2f68
Merge branch 'master' into monthly-invoices-fix 2022-12-01 14:36:20 +02:00
Timo Võhmar
e4740ffceb
Merge pull request #2437 from internetee/2436-fd-process-for-long-term-registrations
outzone rake task for invalid email domains
2022-11-02 15:53:11 +02:00
Sergei Tsõganov
51066fe4b4 Handling of cancelled monthly invoices 2022-10-13 09:02:48 +03:00
Sergei Tsõganov
5e6dbac462 Refactored monthly invoice generation job 2022-10-12 09:59:21 +03:00
olegphenomenon
1af5d63995 fixed tests 2022-09-09 13:54:16 +03:00
olegphenomenon
3d81164b23 remove soft force delete from sample 2022-09-09 13:46:24 +03:00
olegphenomenon
d15119c622 outzone rake task for invalid email domains 2022-09-08 16:05:25 +03:00
olegphenomenon
ce677ce69c rename directo job 2022-09-02 15:16:05 +03:00
olegphenomenon
cd81e58ff6 updated tests 2022-09-02 14:58:50 +03:00
olegphenomenon
f0cf47cd66 fixed test 2022-09-02 13:49:51 +03:00
Sergei Tsõganov
5d92442a48 Updated test 2022-08-29 16:06:14 +03:00
Sergei Tsõganov
14a9b5b709 Modifications for monthly invoices 2022-08-29 14:06:04 +03:00
Sergei Tsõganov
d589aa1681 Created job for sending monthly invoices 2022-08-21 19:11:39 +03:00
olegphenomenon
87e8258572 dnssec ans ns validation message 2022-04-28 11:32:40 +03:00
Thiago Youssef
cee5f34bd8 Remove legacy migration jobs 2022-03-23 14:48:41 +02:00
olegphenomenon
aba8c1fb17 addede test for dnssec validator 2022-02-09 15:15:08 +02:00
olegphenomenon
f6b352a087 updated nameserver letter 2022-02-09 15:15:08 +02:00
olegphenomenon
053382ffa3 updated tests 2022-02-09 15:15:08 +02:00
olegphenomenon
57e653e9e6 added soa nameserver validator 2022-02-09 15:15:08 +02:00
olegphenomenon
d4fd8dc0ee update contact notification 2022-02-09 15:15:08 +02:00
olegphenomenon
ae269c6772 move on functionality for separate service object and updated tests 2022-02-09 15:15:08 +02:00
Timo Võhmar
4ccbbd2292
Merge pull request #2212 from internetee/added_notifications_for_acc_center
added mail contronller and job for notificate registrars and admins about accreditation expire date
2022-01-13 09:23:11 +02:00
olegphenomenon
e24301ad0c added test 2022-01-07 11:19:01 +02:00
olegphenomenon
287c4ea5d6 remove nameserver validation from update and create interactions, refactored tests, job and move validator to services scoup 2022-01-06 14:25:12 +02:00
olegphenomenon
66c5b3b6ae updated tests 2022-01-06 13:45:42 +02:00
olegphenomenon
74b385a36b added tests 2022-01-06 13:45:42 +02:00
olegphenomenon
97c7e13cfc comment out tests 2021-11-23 18:05:56 +02:00
olegphenomenon
2543b9c1f8 fixed error 2021-11-15 16:22:29 +02:00
olegphenomenon
d6824bf46c added tests 2021-11-11 13:10:27 +02:00
Timo Võhmar
eba3facc58
Merge pull request #2193 from internetee/2191-disputed-domains-are-missing-from-whois
remove active disputed domains from retruned method
2021-10-22 10:50:13 +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
olegphenomenon
f75d975b29 remove active domains from whois job 2021-10-20 11:37:12 +03:00
olegphenomenon
f1a4c79069 fixed name error 2021-10-12 15:30:21 +03:00