Skip to content

Conversation

@olsen232
Copy link
Collaborator

@olsen232 olsen232 commented Dec 3, 2023

Adding url redirect rules to the linked-storage.json meta item causes those redirect rules to be honoured when fetching tiles for any commit that includes the new linked-storage.json.

However, this won't help when fetching tiles for older commits which were created before the redirect rules were added. The fix will be to add logic such that Kart finds redirect rules from a newer commit even when fetching tiles when checking out an older commit.

TODO in later PRs:
TODO: add logic such that Kart finds redirect rules from newer commits.
TODO: add a command for setting up redirect rules - right now there is just kart meta set which is pretty bare bones.

Related links:

#905

Checklist:

  • Have you reviewed your own change?
  • Have you included test(s)?
  • Have you updated the changelog?

Adding url redirect rules to the linked-storage.json meta item
causes those redirect rules to be honoured when fetching tiles
for any commit that includes the new linked-storage.json.

However, this won't help when fetching tiles for older commits which
were created before the redirect rules were added.
The fix will be to add logic such that Kart finds redirect rules from
a newer commit even when fetching tiles when checking out an older commit.

TODO: add logic such that Kart finds redirect rules from newer commits.
TODO: add a command for setting up redirect rules - right now there is
just `kart meta set` which is pretty bare bones.
@olsen232 olsen232 requested a review from craigds December 3, 2023 23:08
@olsen232 olsen232 marked this pull request as draft December 4, 2023 23:52
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.

2 participants