Skip to content

BYNT-1370/1/2: ID Number Types and Actor.id_number migration#121

Merged
tarekio merged 39 commits intomainfrom
bynt-1371-id-number-types
Jul 9, 2025
Merged

BYNT-1370/1/2: ID Number Types and Actor.id_number migration#121
tarekio merged 39 commits intomainfrom
bynt-1371-id-number-types

Conversation

@cango91
Copy link
Contributor

@cango91 cango91 commented Jun 23, 2025

Jira Issue

  1. BYNT-1371
  2. BYNT-1372
  3. BYNT-1370

Description

Add IDNumberType implementation following dialect/ethnography pattern:

  • Model with ComponentDataMixin for title/title_tr fields
  • CRUD API endpoints with admin role restrictions and activity logging
  • Frontend component data page updates
  • Database migration with default types (National ID, Passport, etc.)
  • Data import command updated to include ID Number Types (with defaults from enferno/data/id_number_types.csv)
  • Test coverage and API documentation
  • Add migration to migrate Actor.id_number to JSONB array
  • Add test script to verify data integrity
  • Modify DELETE IDNumberType endpoint to check for references in
    Actor.id_number
  • Add database constraints to ensure data integrity

Checklist

  • Tests added/updated
  • Documentation updated (if needed)
  • New strings prepared for translations

API Changes (if applicable)

  • Permissions checked
  • Endpoint tests added

Additional Notes

[Any other relevant information]

cango91 added 2 commits June 23, 2025 13:05
Add IDNumberType implementation following dialect/ethnography pattern:
- Model with ComponentDataMixin for title/title_tr fields
- CRUD API endpoints with admin role restrictions and activity logging
- Frontend component data page updates
- Database migration with default types (National ID, Passport, etc.)
- Data import command updated to include ID Number Types (with defaults from enferno/data/id_number_types.csv)
- Test coverage and API documentation
@cango91 cango91 self-assigned this Jun 23, 2025
@cango91 cango91 marked this pull request as ready for review June 23, 2025 17:34
@cango91 cango91 requested a review from tarekio June 23, 2025 17:35
Copy link
Collaborator

@level09 level09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is good. my comments are really just for code/style consistency.

## Jira Issue
1. [BYNT-1372](https://syriajustice.atlassian.net/browse/BYNT-1372)

## Description
- Add migration to migrate Actor.id_number to JSONB array
- Add test script to verify data integrity
- Modify DELETE IDNumberType endpoint to check for references in
Actor.id_number
- Add database constraints to ensure data integrity

## Checklist
- [x] Tests added/updated
- [ ] Documentation updated (if needed)
- [ ] New strings prepared for translations

## API Changes (if applicable)
- [ ] Permissions checked
- [ ] Endpoint tests added

## Additional Notes
[Any other relevant information]


[BYNT-1372]:
https://syriajustice.atlassian.net/browse/BYNT-1372?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@cango91 cango91 changed the title BYNT-1371: ID Number Types BYNT-1371: ID Number Types + BYNT-1372: Actor.id_number migration Jun 26, 2025
@cango91 cango91 changed the title BYNT-1371: ID Number Types + BYNT-1372: Actor.id_number migration BYNT-1370/1/2: ID Number Types and Actor.id_number migration Jun 26, 2025
…ndancy; ui/ux: make id_number inline editable
@cango91 cango91 requested a review from apodacaduron June 26, 2025 22:32
@apodacaduron apodacaduron requested a review from tarekio June 30, 2025 21:27
@apodacaduron
Copy link
Contributor

@tarekio the feedback has been addressed

Copy link
Collaborator

@level09 level09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guys, We Gotta simplify this 🫵

@apodacaduron
Copy link
Contributor

@level09 i made some updates based on your feedback, should be much simpler now

Copy link
Contributor

@tarekio tarekio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go.

@tarekio tarekio merged commit 445428f into main Jul 9, 2025
6 of 7 checks passed
@tarekio tarekio deleted the bynt-1371-id-number-types branch July 9, 2025 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants