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/api for entity management #42

Conversation

eschrewe
Copy link
Contributor

Description

Added API for

  • adding and updating Materials,
  • adding and updating Partners,
  • adding and updating MaterialPartnerRelations.

Pre-review checks

Copy link
Contributor

@tom-rm-meyer-ISST tom-rm-meyer-ISST left a comment

Choose a reason for hiding this comment

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

As already said: Great effort! Please add example values to the parameters. Regarding the dependency check we'll need further investigation.

@tom-rm-meyer-ISST
Copy link
Contributor

tom-rm-meyer-ISST commented Sep 28, 2023

@eschrewe I realized that we need to update the Dependencies of the backend in both places:

  • root folder (DEPENDENCIES_BACKEND)
  • backend folder (DEPENDENCIES)

reason: the DEPENDENCIES need to be added to the distributables (jar, container) and we can't access the overlying folder during builds :)

This will also resolve the dependency check, that fails because it only evaluates the DEPENDENCIES_BACKEND in the root folder.

@tom-rm-meyer-ISST tom-rm-meyer-ISST mentioned this pull request Sep 28, 2023
2 tasks
Copy link
Contributor

@tom-rm-meyer-ISST tom-rm-meyer-ISST left a comment

Choose a reason for hiding this comment

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

Please fix small duplicate annotation and verify that the required parameter matches the null-value handling.

})
public ResponseEntity<?> addAddress(
@Parameter(name = "partnerBpnl", description = "The unique BPNL that was assigned to that Partner.",
example = "BPNL2222222222RR", required = true) @RequestParam() String partnerBpnl,
Copy link
Contributor

Choose a reason for hiding this comment

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

Duplicate of annotations "Parameter" and "RequestParam"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, there are some ugly redundancies...
I will do some cleaning up

Copy link
Contributor

@tom-rm-meyer-ISST tom-rm-meyer-ISST left a comment

Choose a reason for hiding this comment

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

LGTM, PR #50 resolves the outdated frontend dependencies

@tom-rm-meyer-ISST tom-rm-meyer-ISST merged commit b7d23f2 into eclipse-tractusx:main Oct 9, 2023
9 of 11 checks passed
@tom-rm-meyer-ISST tom-rm-meyer-ISST deleted the feat/api_for_entity_management branch October 9, 2023 16:15
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.

2 participants