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

feat: expose ConstraintMetaModel at build time #1343

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rsynek
Copy link
Contributor

@rsynek rsynek commented Jan 21, 2025

Fixes #1323.

@@ -15,7 +15,7 @@ public final class SolverConfigBuildItem extends SimpleBuildItem {
* Constructor for multiple solver configurations.
*/
public SolverConfigBuildItem(Map<String, SolverConfig> solverConfig, GeneratedGizmoClasses generatedGizmoClasses) {
this.solverConfigurations = solverConfig;
this.solverConfigurations = Map.copyOf(solverConfig);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add a comment explaining why this is necessary.

Copy link
Contributor

@triceo triceo left a comment

Choose a reason for hiding this comment

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

I am a bit confused at the amount of new code.

@@ -573,6 +577,43 @@ private SolverConfig loadSolverConfig(IndexView indexView,
return solverConfig;
}

@BuildStep
void buildConstraintMetaModel(SolverConfigBuildItem solverConfigBuildItem,
Copy link
Contributor

Choose a reason for hiding this comment

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

This is new code? I don't understand. Didn't we already have support for this, and therefore the code should have been either reused, or moved from elsewhere?

@triceo triceo added this to the v1.19.0 milestone Jan 21, 2025
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
3.6% Coverage on New Code (required ≥ 70%)

See analysis details on SonarQube Cloud

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.

Feat: Expose Quarkus build item representing either the SolverConfig or the ConstraintMetaModel
2 participants