Skip to content

BYNT-1391: Add DELETE Mapping endpoint#133

Merged
tarekio merged 5 commits intomainfrom
bynt-1391-delete-mapping-endpoint
Jul 31, 2025
Merged

BYNT-1391: Add DELETE Mapping endpoint#133
tarekio merged 5 commits intomainfrom
bynt-1391-delete-mapping-endpoint

Conversation

@cango91
Copy link
Contributor

@cango91 cango91 commented Jul 15, 2025

Jira Issue

  1. BYNT-1391

Description

Add DELETE /mapping/int:id route for Admins.
Only the specific Admin user who is associated with the mapping can delete it

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 15, 2025
@cango91 cango91 requested a review from tarekio July 15, 2025 13:33
@tarekio tarekio requested a review from level09 July 17, 2025 21:52
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.

Found some bugs in tests and small issue in endpoint.

Let's also change put mapping tests. (rename correctly to test_put_mapping etc ..) and let's use create_mapping instead of get_first_or_fail , I think it is always better to use the create fixture rather than relying on existing test db data.

@cango91 cango91 requested a review from level09 July 18, 2025 14:17
…#135)

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

## Description
implement delete endpoint on sheet mappings

## 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-1391]:
https://syriajustice.atlassian.net/browse/BYNT-1391?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

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

---------

Co-authored-by: tarekio <7659394+tarekio@users.noreply.github.com>
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.

All good

@tarekio tarekio merged commit 48e6d5a into main Jul 31, 2025
6 of 7 checks passed
@tarekio tarekio deleted the bynt-1391-delete-mapping-endpoint branch July 31, 2025 12:54
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