Skip to content

feat: add execution profile to record distance matrix and implement DM mocking in maps service client - #2754

Merged
diogodanielsoaresferreira merged 14 commits into
mainfrom
maps-recording-execution-profile
Oct 27, 2026
Merged

diogodanielsoaresferreira merged 14 commits into
mainfrom
maps-recording-execution-profile

Conversation

@diogodanielsoaresferreira

@diogodanielsoaresferreira diogodanielsoaresferreira commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor
  • Create execution profile to store distance matrices in execution artifacts after requests
  • Create ability to replay distance matrices from local file instead of reaching maps service in maps service client

fixes: https://github.com/TimefoldAI/timefold-platform/issues/5422

@diogodanielsoaresferreira diogodanielsoaresferreira changed the title feat: add execution profile to record distance matrices storage Add execution profile to record distance matrix and implement DM mocking in maps service client Oct 14, 2026
@diogodanielsoaresferreira diogodanielsoaresferreira changed the title Add execution profile to record distance matrix and implement DM mocking in maps service client feat: add execution profile to record distance matrix and implement DM mocking in maps service client Oct 14, 2026
@timefold-automations

Copy link
Copy Markdown
Contributor

This pull request, as it stands, would leave the Solver documentation stale in the place below. An automated check found this and can be wrong.

  1. Code change: service/maps/service-client/src/main/java/ai/timefold/solver/service/maps/service/client/impl/MapServiceProducer.java:62-65 adds the configuration keys timefold.platform.map-service.recording.enabled (default false), timefold.platform.map-service.replay.enabled (default false), and timefold.platform.map-service.replay.directory (required when replay is enabled).
    Docs location: no mention found in docs/src/modules/ROOT/.
    Confidence: high.

    Suggested edit: add a short subsection to docs/src/modules/ROOT/pages/running-timefold-solver/service/model-enrichment.adoc, near the map-service configuration, for example:

[#recordingMapServiceResponses]
=== Recording and replaying map service responses

Set `timefold.platform.map-service.recording.enabled` to `true` to record map service responses in the execution artifacts.
Set `timefold.platform.map-service.replay.enabled` to `true` to replay recorded responses instead of calling the maps service.
When replay is enabled, set `timefold.platform.map-service.replay.directory` to the directory containing the recorded files.
These properties are disabled by default.

The fix goes into this pull request because it is the timefold-solver pull request for the group.

A new commit on the branch updates this comment, and drift that is still there when the group merges gets a docs pull request against main.

Generated by Solver Docs Drift Review · copilot · gpt56 · 11.9 AIC · ⌖ 3.51 AIC · ⊞ 25.2K · ◷

@diogodanielsoaresferreira

Copy link
Copy Markdown
Contributor Author

This pull request, as it stands, would leave the Solver documentation stale in the place below. An automated check found this and can be wrong.

1. **Code change:** `service/maps/service-client/src/main/java/ai/timefold/solver/service/maps/service/client/impl/MapServiceProducer.java:62-65` adds the configuration keys `timefold.platform.map-service.recording.enabled` (default `false`), `timefold.platform.map-service.replay.enabled` (default `false`), and `timefold.platform.map-service.replay.directory` (required when replay is enabled).
   **Docs location:** no mention found in `docs/src/modules/ROOT/`.
   **Confidence:** high.
   **Suggested edit:** add a short subsection to `docs/src/modules/ROOT/pages/running-timefold-solver/service/model-enrichment.adoc`, near the map-service configuration, for example:
[#recordingMapServiceResponses]
=== Recording and replaying map service responses

Set `timefold.platform.map-service.recording.enabled` to `true` to record map service responses in the execution artifacts.
Set `timefold.platform.map-service.replay.enabled` to `true` to replay recorded responses instead of calling the maps service.
When replay is enabled, set `timefold.platform.map-service.replay.directory` to the directory containing the recorded files.
These properties are disabled by default.

The fix goes into this pull request because it is the timefold-solver pull request for the group.

A new commit on the branch updates this comment, and drift that is still there when the group merges gets a docs pull request against main.

Generated by Solver Docs Drift Review · copilot · gpt56 · 11.9 AIC · ⌖ 3.51 AIC · ⊞ 25.2K · ◷

This info was added in the model https://github.com/TimefoldAI/timefold-field-service-routing/pull/1553

@mswiderski mswiderski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this is now way better, thanks a lot for bearing with me on this. I think it simplify it both sides and makes it way easier to be used.

@rsynek rsynek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice work, no comments!

@diogodanielsoaresferreira
diogodanielsoaresferreira merged commit 858be7d into main Oct 27, 2026
44 of 57 checks passed
@diogodanielsoaresferreira
diogodanielsoaresferreira deleted the maps-recording-execution-profile branch October 27, 2026 16:47

This branch was successfully deployed

1 active deployment
internal — 42b5c6c1 Deployed Oct 27, 2026 by diogodanielsoaresferreira via approval_required #5151
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