Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Gate): add business partner relations #1167

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nicoprow
Copy link
Contributor

@nicoprow nicoprow commented Dec 19, 2024

Description

This pull request adds new endpoints to search, create, update and delete business partner relations.
It currently supports only the IsManagedBy relation type.

  • add logic for CRUD and constraint checking
  • add database table for relations
  • add tests

Contributes to #1027

Pre-review checks

Please ensure to do as many of the following checks as possible, before asking for committer review:

@nicoprow nicoprow force-pushed the feat/managed-by-relations branch from 6c3500b to fa0c8ec Compare December 20, 2024 03:09
@nicoprow nicoprow requested a review from SujitMBRDI December 20, 2024 03:19
@nicoprow nicoprow marked this pull request as ready for review December 20, 2024 03:22
@nicoprow nicoprow added this to the BPDM v6.3.0 / R25.03. milestone Dec 20, 2024
@nicoprow nicoprow added enhancement New feature or request standards-relevant The issue has an impact on the Catena-X standards labels Dec 20, 2024
@nicoprow nicoprow force-pushed the feat/managed-by-relations branch from fa0c8ec to 636f67c Compare December 20, 2024 03:24
Copy link
Contributor

@SujitMBRDI SujitMBRDI left a comment

Choose a reason for hiding this comment

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

Great logic and code changes!!
Changes looks good to me, tests i have performed:

  1. From gate input, I have provided two legal entities
  2. Then created relations using tenant null
  3. Then deleted relationship too.

As we discussed in review session, just we need to swap logic for Source and Target as IsManagedBy is passive term.

@nicoprow nicoprow force-pushed the feat/managed-by-relations branch 2 times, most recently from 18ec529 to 9b6ff0c Compare January 9, 2025 03:48
- add new endpoints to search, create, update and delete business partner relations
- add logic for CRUD and constraint checking
- add database table for relations
- add tests
@nicoprow nicoprow force-pushed the feat/managed-by-relations branch from 9b6ff0c to a20ab68 Compare January 9, 2025 03:57
@nicoprow
Copy link
Contributor Author

nicoprow commented Jan 9, 2025

I changed the constraints on the IsManagedBy relation as discussed.
Also, I removed the tenantBpnL as it caused confusion before. Maybe at some later point we can add it again as a hidden parameter that only appears on no-auth profiles. But that is quite extra work that I feel warrants its own contribution.

@nicoprow nicoprow requested a review from SujitMBRDI January 9, 2025 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request standards-relevant The issue has an impact on the Catena-X standards
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants