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

add mastery runtime grammar and protocol changes #2303

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

tundeOlagunju
Copy link
Contributor

add mastery runtime grammar and protocol changes

@tundeOlagunju tundeOlagunju requested review from hausea and a team as code owners September 25, 2023 12:53
{
if (masterRecordDefinition == null)
{
return null;
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we throw an exception here (similar to line 63 below)?

List<String> duplicateMasterRecords = ListIterate.select(masterRecordDefinitions, m -> !uniqueMasterRecordDefinitions.add(m));
if (!duplicateMasterRecords.isEmpty())
{
throw new EngineException(format("The following master record definitions %s appear multiple times. There cannot be duplicate masterRecordDefinitions across one or multiple mastery runtimes.", duplicateMasterRecords), EngineErrorType.PARSER);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we make the error message consistent? master record definition or masterRecordDefinition?

@hausea hausea merged commit 94bcc86 into finos:master Sep 25, 2023
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.

3 participants