Skip to content

BYNT-1400: Handle new ID number in Sheet Import (BE)#141

Merged
tarekio merged 6 commits intomainfrom
bynt-1400-sheet-import-id-number
Jul 31, 2025
Merged

BYNT-1400: Handle new ID number in Sheet Import (BE)#141
tarekio merged 6 commits intomainfrom
bynt-1400-sheet-import-id-number

Conversation

@cango91
Copy link
Contributor

@cango91 cango91 commented Jul 21, 2025

Jira Issue

  1. BYNT-1400

Description

  • models id_number after events in SheetImport

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 cango91 self-assigned this Jul 22, 2025
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.

This doesn't work.

@tarekio tarekio requested a review from level09 July 26, 2025 13:47
"""
Method to set idnumbers.
"""
id_number_types = [str(t.id) for t in IDNumberType.query.all()]
Copy link
Collaborator

Choose a reason for hiding this comment

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

  1. For new code, we gotta move away from legacy sqlalchemy 1.x syntax and use sqlalchemy 2.x
  2. we have to get the types only once per import not query db for every row. we could take it outside or use @cached_property

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  1. Thank you, fixed in 57150fd
  2. Great advice, thank you; added in 57150fd

@cango91 cango91 requested a review from level09 July 28, 2025 13:27
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.

Great !

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

## Description
Update id number component in sheetimport page

## 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]


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

---------

Co-authored-by: tarekio <7659394+tarekio@users.noreply.github.com>
@tarekio tarekio merged commit 575b8bd into main Jul 31, 2025
6 of 7 checks passed
@tarekio tarekio deleted the bynt-1400-sheet-import-id-number branch July 31, 2025 12:14
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