Commit graph

11289 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
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
tsoganov
55848e1000 Added birthday ident verification 2025-01-27 16:26:20 +02:00
Timo Võhmar
34da6f250d
Update CHANGELOG.md 2025-01-15 16:46:33 +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
Timo Võhmar
c618ebcfb7
Update CHANGELOG.md 2025-01-15 16:44:19 +02:00
Timo Võhmar
7daa54b007
Merge pull request #2733 from internetee/remove-russian-translation-from-email-templates
Removed Russian notices from mail templates
2025-01-15 16:43:27 +02:00
OlegPhenomenon
d10208cbd3
Merge pull request #2736 from internetee/renovate/actions-upload-artifact-4.x
chore(deps): update actions/upload-artifact action to v4.6.0
2025-01-15 11:11:14 +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
renovate[bot]
1adb716a65
chore(deps): update actions/upload-artifact action to v4.6.0 2025-01-11 01:42:48 +00:00
oleghasjanov
1be8b28acd Removed Russian notices from mail templates 2025-01-08 11:27:02 +02:00
OlegPhenomenon
9ca9ba2322
Merge pull request #2732 from internetee/turn-off-automerge-for-renovate
turn off automerge for renovate bot
2025-01-08 11:07:22 +02:00
oleghasjanov
1d2317cd94 turn off automerge for renovate bot 2025-01-08 11:03:15 +02:00
Sergei Tsõganov
3ad45e5bb1
Update .ruby-version 2025-01-07 12:25:51 +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
renovate[bot]
bfe2a10889
chore(deps): update dependency pry to v0.15.2 (#2725)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-05 06:44:19 +00:00
renovate[bot]
a6ef033a4b
chore(deps): update dependency ruby to v3.3.6 (#2726)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-05 04:39:01 +00:00
OlegPhenomenon
b3a90c2d5f
Merge pull request #2722 from internetee/dependabot/bundler/json-jwt-1.16.6
Bump json-jwt from 1.16.1 to 1.16.6
2025-01-02 13:45:38 +02:00
OlegPhenomenon
378040c3d2
Merge pull request #2721 from internetee/dependabot/bundler/rails-html-sanitizer-1.6.1
Bump rails-html-sanitizer from 1.6.0 to 1.6.1
2025-01-02 13:44:13 +02:00
dependabot[bot]
b5e4d6baaa
Bump rails-html-sanitizer from 1.6.0 to 1.6.1
Bumps [rails-html-sanitizer](https://github.com/rails/rails-html-sanitizer) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/rails/rails-html-sanitizer/releases)
- [Changelog](https://github.com/rails/rails-html-sanitizer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rails/rails-html-sanitizer/compare/v1.6.0...v1.6.1)

---
updated-dependencies:
- dependency-name: rails-html-sanitizer
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-02 10:59:32 +00:00
dependabot[bot]
2a454ea62d
Bump json-jwt from 1.16.1 to 1.16.6
Bumps [json-jwt](https://github.com/nov/json-jwt) from 1.16.1 to 1.16.6.
- [Release notes](https://github.com/nov/json-jwt/releases)
- [Changelog](https://github.com/nov/json-jwt/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nov/json-jwt/compare/v1.16.1...v1.16.6)

---
updated-dependencies:
- dependency-name: json-jwt
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-02 10:59:23 +00:00
OlegPhenomenon
d76e020b15
Merge pull request #2719 from internetee/dependabot/bundler/actiontext-6.1.7.9
Bump actiontext from 6.1.7.7 to 6.1.7.9
2025-01-02 12:58:03 +02:00
dependabot[bot]
0387ebd3c2
Bump actiontext from 6.1.7.7 to 6.1.7.9
Bumps [actiontext](https://github.com/rails/rails) from 6.1.7.7 to 6.1.7.9.
- [Release notes](https://github.com/rails/rails/releases)
- [Changelog](https://github.com/rails/rails/blob/v8.0.1/actiontext/CHANGELOG.md)
- [Commits](https://github.com/rails/rails/compare/v6.1.7.7...v6.1.7.9)

---
updated-dependencies:
- dependency-name: actiontext
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-02 10:56:45 +00:00
OlegPhenomenon
e3c4e5d6c8
Merge pull request #2694 from internetee/renovate/ubuntu-24.x
chore(deps): update dependency ubuntu to v24
2025-01-02 11:23:06 +02:00