Skip to content

Feature/fcdf 191 lookup#4

Merged
mykhalchuk-m merged 2 commits intofeature/FCDF-190from
feature/FCDF-191_lookup
Oct 3, 2023
Merged

Feature/fcdf 191 lookup#4
mykhalchuk-m merged 2 commits intofeature/FCDF-190from
feature/FCDF-191_lookup

Conversation

@slavko28
Copy link
Copy Markdown

@slavko28 slavko28 commented Oct 3, 2023

No description provided.

@slavko28 slavko28 changed the base branch from develop to feature/FCDF-190 October 3, 2023 09:59
Copy link
Copy Markdown

@mykhalchuk-m mykhalchuk-m left a comment

Choose a reason for hiding this comment

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

Also, please add a ticket into backlog to cover the code with unit tests


if (!notFoundList.isEmpty()) {
notFoundList.forEach(id -> emitter.emitError(
new InvalidEntry<>(1, String.format("Not found in MDM. UUID: %s", id), input)));
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The error code needs to be documented appropriately so the message doesn't need to be present in response. The message filed just needs to contain the UUID that was not found.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

now message contains only UUID that was not found

lookupData.add(processProperty(input, field));
}
} else {
LOG.warn("Unrecognized field type");
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This log is useless as we expect only particular field types to be processed here.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

removed useless block with log

@mykhalchuk-m mykhalchuk-m merged commit 20546e9 into feature/FCDF-190 Oct 3, 2023
@mykhalchuk-m mykhalchuk-m deleted the feature/FCDF-191_lookup branch October 3, 2023 12:23
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