-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: restore company validation for Estonian organizations #2723
base: master
Are you sure you want to change the base?
Conversation
- 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.
- 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
- 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
- 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.
Use direct accessor method for template_name instead of hash access since force_delete_data is stored as hstore
Only attempt to cancel force delete for domains that actually have it scheduled. This prevents unnecessary method calls and potential errors.
- 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
- 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
- Extract liquidation email logic into separate method `send_email_for_liquidation` - Add early return for bankrupt companies - Remove redundant logging for bankrupt companies - Simplify status handling conditions
ed135fa
to
6d65742
Compare
Please fix a message that is logged when a company could not be found in the business registry: The message "Contact has status No information" is hard to understand. Change the message to something like |
fix: improve company register status messages - Update error message for missing company in registry - Clarify status message format for existing companies - Update dependencies: logger (1.6.5) and net-smtp (0.5.1) The changes make company status messages more descriptive and clearer for administrators when a company's registration status triggers domain deletion. Messages now explicitly state whether a contact was not found or has a specific status in the business registry.
This change ensures that only registered or liquidated Estonian companies can be used when creating organizational contacts.