Skip to content

feat: update demand and capacity notification version to 3.0.0 - #1197

Open
ruzicam8020 wants to merge 2 commits into
eclipse-tractusx:mainfrom
achtzig20:feat/update-demandandcapacitynotification-to-version-3-0-0
Open

feat: update demand and capacity notification version to 3.0.0#1197
ruzicam8020 wants to merge 2 commits into
eclipse-tractusx:mainfrom
achtzig20:feat/update-demandandcapacitynotification-to-version-3-0-0

Conversation

@ruzicam8020

Copy link
Copy Markdown
  • update demand and capacity notifications to version 3.0.0

Resolves: #1194

Description

Pre-review checks

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

  • DEPENDENCIES are up-to-date. Dash license tool. Committers can open IP issues for restricted libs.
  • Copyright and license header are present on all affected files (TRG 7.02)
  • Documentation Notice are present on all affected files (TRG 7.07)
  • If helm chart has been changed, the chart version has been bumped to either next major, minor or patch level (compared to released chart).
  • Changelog updated (changelog.md) with PR reference and brief summary.
  • Frontend version bumped, if needed (frontend/package.json, frontend/package-lock.json)
  • Backend version bumped, if needed (backend/pom.xml)
  • Open API specification updated, if controllers have been changed (use python script scripts/generate_openapi_yaml.py with running customer backend)

}
try {
log.info("Received POST request for DemandAndCapacityNotification 2.0.0 with BPNL: " + bpnl);
log.info("Received POST request for DemandAndCapacityNotification 3.0.0 with BPNL: " + bpnl);

@ReneSchroederLJ ReneSchroederLJ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for your contribution. Overall very solid work I just found some unused parameters and you accidentally pushed a log file.

return parseContent(body.get("content"), expectedContext, contentType);
}

private <T> T parseContent(JsonNode content, IndustryCoreMessageContext context, Class<T> contentType) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
private <T> T parseContent(JsonNode content, Class<T> contentType) {

throw new IllegalArgumentException("Body is missing");
}
validate(body.get("header"), senderBpn, expectedContext);
return parseContent(body.get("content"), expectedContext, contentType);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
return parseContent(body.get("content"), contentType);

Comment thread local/logs.txt

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please remove

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.

[Story] Update DemandAndCapacityNotification to version 3.0.0

3 participants