Commit graph

11276 commits

Author SHA1 Message Date
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
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
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
renovate[bot]
9d85cb5615
chore(deps): update dependency ubuntu to v24 2025-01-02 09:16:46 +00:00
OlegPhenomenon
8559a58609
Merge pull request #2650 from internetee/renovate/major-github-artifact-actions
chore(deps): update github artifact actions to v4 (major)
2025-01-02 10:57:02 +02:00
renovate[bot]
7a561129cc
chore(deps): update github artifact actions to v4 2025-01-02 08:53:21 +00:00
Timo Võhmar
81e9ba3eef
Update CHANGELOG.md 2024-12-31 10:57:37 +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
57cbfbe1c1
Update CHANGELOG.md 2024-12-31 10:55:44 +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
0faa6f8ce7
Update CHANGELOG.md 2024-12-31 10:52:59 +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
Timo Võhmar
527ef490ae
Update CHANGELOG.md 2024-12-31 10:49:04 +02:00
Timo Võhmar
f2ae9218d9
Merge pull request #2670 from internetee/fix-force-block-exit
Fix force block exit
2024-12-31 10:47:08 +02:00
oleghasjanov
bd8d3ad684 updated whiteist companies handling 2024-12-19 14:48:30 +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