Skip to content

fix: Revert "feat: Add effective map location to metadata events (#2321)"#2380

Merged
rsynek merged 1 commit into
TimefoldAI:mainfrom
rsynek:fix/revert-resolved-location
Jun 17, 2026
Merged

fix: Revert "feat: Add effective map location to metadata events (#2321)"#2380
rsynek merged 1 commit into
TimefoldAI:mainfrom
rsynek:fix/revert-resolved-location

Conversation

@rsynek

@rsynek rsynek commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

This reverts commit 71f89e1

@rsynek rsynek requested a review from triceo as a code owner June 17, 2026 10:43
Copilot AI review requested due to automatic review settings June 17, 2026 10:43

Copilot AI 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.

Pull request overview

This PR reverts commit 71f89e11, removing the previously added “resolved map-service location” propagation through maps-service responses into dataset Metadata and related insight/event flows.

Changes:

  • Removes resolvedMapLocation from Metadata and deletes the MapEnrichmentContext side-channel used to propagate it to the worker.
  • Removes the X-TF-MAPS-LOCATION response header and related env var constants, and simplifies maps-service client caching structures accordingly.
  • Reverts/adjusts maps-service wiremock test transformers and client tests to no longer emit/assert the removed location metadata.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
service/worker/src/main/java/ai/timefold/solver/service/worker/impl/SolverWorker.java Removes map-location side-channel injection and metadata write-back.
service/maps/service-test/src/main/java/ai/timefold/solver/service/maps/service/test/impl/HaversineDistanceResponseTransformer.java Stops emitting the removed maps location header in wiremock responses.
service/maps/service-test/src/main/java/ai/timefold/solver/service/maps/service/test/impl/DistanceGetUpdateResponseTransformer.java Reverts update-response simulation back to always returning 410 (no update path).
service/maps/service-integration/src/main/java/ai/timefold/solver/service/maps/service/integration/internal/provider/TravelTimeAndDistanceMatrixResponse.java Drops the resolvedMapLocation field from the response record.
service/maps/service-integration/src/main/java/ai/timefold/solver/service/maps/service/integration/internal/model/TravelTimeAndDistanceWithMetadata.java Drops the resolvedMapLocation field from the metadata wrapper record.
service/maps/service-client/src/test/java/ai/timefold/solver/service/maps/service/client/api/TravelTimeMatrixEnricherTest.java Removes assertions/tests related to resolved map location propagation.
service/maps/service-client/src/main/java/ai/timefold/solver/service/maps/service/client/impl/MapServiceClientImpl.java Removes reading/storing of the location header and trims cache item contents.
service/maps/service-client/src/main/java/ai/timefold/solver/service/maps/service/client/impl/CacheItem.java Removes cached resolvedMapLocation from the cache record.
service/maps/service-client/src/main/java/ai/timefold/solver/service/maps/service/client/api/TravelTimeMatrixEnricher.java Removes publishing of resolved map location into the side-channel context.
service/definition/src/main/java/ai/timefold/solver/service/definition/internal/platform/EnvironmentVars.java Removes map-service location env var constants.
service/definition/src/main/java/ai/timefold/solver/service/definition/internal/MapEnrichmentContext.java Deletes the map-location propagation context bean.
service/definition/src/main/java/ai/timefold/solver/service/definition/internal/Headers.java Removes the X-TF-MAPS-LOCATION header constant.
service/definition/src/main/java/ai/timefold/solver/service/definition/api/domain/Metadata.java Removes resolvedMapLocation field and its accessors/copying.

@rsynek rsynek force-pushed the fix/revert-resolved-location branch from 036e90c to f388412 Compare June 17, 2026 10:52
@rsynek rsynek changed the title Revert "feat: Add effective map location to metadata events (#2321)" fix: Revert "feat: Add effective map location to metadata events (#2321)" Jun 17, 2026

@triceo triceo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

As agreed.

@sonarqubecloud

Copy link
Copy Markdown

@rsynek rsynek merged commit 055b214 into TimefoldAI:main Jun 17, 2026
19 checks passed
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.

4 participants