Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: implemented the backend for demand and capacity notifications 2.0 #415

Conversation

ReneSchroederLJ
Copy link
Member

@ReneSchroederLJ ReneSchroederLJ commented May 28, 2024

Description

  • implemented the CRUD endpoints for demand and capacity notications

resolves #316

Pre-review checks

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

@ReneSchroederLJ ReneSchroederLJ marked this pull request as ready for review May 28, 2024 08:48
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.

Overall great work. Had a few findings.

Sidenote: Please always mark the dependency and license header things in the pr on your own prior to requesting the review :)

@ResponseBody
@Operation(summary = "Get all own notifications", description = "Get all own notifications. Optionally the partner can be filtered by its bpnl.")
public List<NotificationDto> getAllNotifications(Optional<String> partnerBpnl) {
if (partnerBpnl.isEmpty()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please sanitize / pattern check partnerBpnl

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 see new comment. Regarding bpnl sanitizing: not sure if you missed the comment, please check. If you propose to not go with sanitizing the controllers parameter, please elaborate why.

@ReneSchroederLJ
Copy link
Member Author

Please see new comment. Regarding bpnl sanitizing: not sure if you missed the comment, please check. If you propose to not go with sanitizing the controllers parameter, please elaborate why.

I'm unsure what you mean regarding the BPNL sanitizing. Is the pattern check I added to the parameter not enough?

@tom-rm-meyer-ISST
Copy link
Contributor

Please see new comment. Regarding bpnl sanitizing: not sure if you missed the comment, please check. If you propose to not go with sanitizing the controllers parameter, please elaborate why.

I'm unsure what you mean regarding the BPNL sanitizing. Is the pattern check I added to the parameter not enough?

Ah sorry, you're right. Got confused due to the outdated conversation.

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, great contribution! :)

@tom-rm-meyer-ISST tom-rm-meyer-ISST merged commit 9595354 into eclipse-tractusx:main May 30, 2024
12 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Messages in the backend
2 participants