Skip to content

Quarkus LTS 3.20.0 upgrade #6296

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

porcelli
Copy link
Member

@porcelli porcelli commented Mar 29, 2025

@porcelli porcelli self-assigned this Mar 29, 2025
Comment on lines +30 to +31
public static final String X_DMN_EXCLUSIVE_MINIMUM_VALUE = "x-dmn-exclusive-minimum-value";
public static final String X_DMN_EXCLUSIVE_MAXIMUM_VALUE = "x-dmn-exclusive-maximum-value";
Copy link
Member Author

Choose a reason for hiding this comment

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

@gitgabrio @yesamer @baldimir the semantics of exclusive-maximum and exclusive-minimum has changed.

@@ -64,7 +65,7 @@ public static void populateSchemaFromUnaryTests(Schema toPopulate, List<DMNUnary
throw new IllegalArgumentException("At most one null value is allowed for enum definition");
}
// If there is a NullNode, the item is nullable
toPopulate.setNullable(!nullNodes.isEmpty());
toPopulate.addExtension(X_NULLABLE, !nullNodes.isEmpty());
Copy link
Member Author

Choose a reason for hiding this comment

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

@gitgabrio @yesamer @baldimir this also changed, no more native nullable

toPopulate.addExtension(DMNOASConstants.X_DMN_EXCLUSIVE_MAXIMUM_VALUE, range.getHighEndPoint());
} else {
toPopulate.addExtension(DMNOASConstants.X_DMN_MAXIMUM_VALUE, range.getHighEndPoint());
}
Copy link
Member Author

Choose a reason for hiding this comment

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

@gitgabrio @yesamer @baldimir the semantics of exclusive-maximum and exclusive-minimum has changed.

toPopulate.exclusiveMaximum(bigDecimal);
} else {
toPopulate.maximum(bigDecimal);
}
Copy link
Member Author

Choose a reason for hiding this comment

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

@gitgabrio @yesamer @baldimir the semantics of exclusive-maximum and exclusive-minimum has changed.

toPopulate.addExtension(DMNOASConstants.X_DMN_EXCLUSIVE_MINIMUM_VALUE, range.getLowEndPoint());
} else {
toPopulate.addExtension(DMNOASConstants.X_DMN_MINIMUM_VALUE, range.getLowEndPoint());
}
Copy link
Member Author

Choose a reason for hiding this comment

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

@gitgabrio @yesamer @baldimir the semantics of exclusive-maximum and exclusive-minimum has changed.

toPopulate.exclusiveMinimum(bigDecimal);
} else {
toPopulate.minimum(bigDecimal);
}
Copy link
Member Author

Choose a reason for hiding this comment

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

@gitgabrio @yesamer @baldimir the semantics of exclusive-maximum and exclusive-minimum has changed.

@@ -123,10 +121,8 @@ void populateSchemaWithRangesForTypeConstraints() {
SimpleTypeImpl toRead = getSimpleType(null, typeConstraintsString, FEEL_STRING, BuiltInType.STRING);
AtomicReference<Schema> toPopulate = new AtomicReference<>(getSchemaForSimpleType(toRead));
DMNTypeSchemas.populateSchemaWithConstraints(toPopulate.get(), toRead);
assertThat(toPopulate.get().getMinimum()).isEqualTo(BigDecimal.ONE);
assertThat(toPopulate.get().getExclusiveMinimum()).isTrue();
assertThat(toPopulate.get().getExclusiveMinimum()).isEqualTo(BigDecimal.ONE);
Copy link
Member Author

Choose a reason for hiding this comment

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

@gitgabrio @yesamer @baldimir the semantics of exclusive-maximum and exclusive-minimum has changed.

assertThat(toPopulate.getExtensions().get(DMNOASConstants.X_DMN_MAXIMUM_VALUE)).isEqualTo(expectedDates.get(1));
assertThat(toPopulate.getExclusiveMaximum()).isFalse();
assertThat(toPopulate.getExtensions().get(DMNOASConstants.X_DMN_EXCLUSIVE_MAXIMUM_VALUE)).isNull();
Copy link
Member Author

Choose a reason for hiding this comment

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

@gitgabrio @yesamer @baldimir the semantics of exclusive-maximum and exclusive-minimum has changed.

@baldimir
Copy link
Contributor

Hi @porcelli, as I wrote on the mailing list here https://lists.apache.org/thread/4khkoyq3x6v5zd7hmolpwyyjfstxczzq, @AnnJoy23 is already working on it for some time. Should I ask her to stop and scratch her work, please?

@porcelli
Copy link
Member Author

@baldimir can't @AnnJoy23 collaborate on top of this?

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.

Upgrade Quarkus from 3.15.3 (LTS) to 3.20 (LTS)
2 participants