Repository navigation
chore: Maven plugin offset handling, warning from deployment as logged information - #2796
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The release-offset selector needs clearer user documentation and Javadoc, and warning-header logging lacks test coverage for successful initial registration.
2 open issues
What changed in this PR
This PR adds release selection and platform warning logging to the Maven plugin’s model deployment tools.
Changes:
- Add
timefold.model.offset, defaulting to0, for updates and undeployment; initial registration ignores it. - Log
X-TF-WARN-MSGresponse headers at WARN after successful registration or updates. - Add tests for default/custom offsets and update warnings.
| File | Description |
|---|---|
service/tools/maven-plugin/src/test/java/ai/timefold/solver/tools/maven/UndeployModelMojoTest.java |
Verify default and custom undeployment offsets. |
service/tools/maven-plugin/src/test/java/ai/timefold/solver/tools/maven/DeployModelMojoTest.java |
Verify offset handling and warning logging for updates. |
service/tools/maven-plugin/src/main/java/ai/timefold/solver/tools/maven/UndeployModelMojo.java |
Send the release offset with DELETE requests. |
service/tools/maven-plugin/src/main/java/ai/timefold/solver/tools/maven/DeployModelMojo.java |
Send offsets with PATCH requests and log platform warnings. |
service/tools/maven-plugin/src/main/java/ai/timefold/solver/tools/maven/AbstractPlatformModelMojo.java |
Define the shared offset parameter and default. |
Review effort: Balanced
|
It seems the code needs to be properly formatted by a maven build. |
1b51a68 to
813e40d
Compare
reformatted. |
813e40d to
424d53d
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The documented plugin configuration uses the Maven property name instead of <offset>, leaving the offset at zero and risking updates or deletion of the latest version rather than the intended older version.
3 open issues
1 resolved since last review
Review effort: Balanced
424d53d to
60fd555
Compare
rsynek
left a comment
There was a problem hiding this comment.
Thanks for adding the documentation, looks good.

No description provided.