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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix routing problem for scene detail tiles #5213

Merged
merged 4 commits into from Oct 7, 2019

Conversation

jisantuc
Copy link
Contributor

@jisantuc jisantuc commented Oct 4, 2019

Overview

This PR dramatically DRYs out middleware application in backsplash-server, eliminates some unnecessary middlewares, and kills a layer of matching in server routes.

Checklist

  • Description of PR is in an appropriate section of the changelog and grouped with similar changes if possible

Demo

scene-tiles

Notes

I wanted it also to use AutoSlash from http4s.server.middleware but I couldn't figure out how to make that work. Given how much else I was able to light on 馃敟 I'm not worrying too much about it.

The dramatic changes to middleware / http4s upgrade were to get the API to look as much like http4s documentation as possible and to decrease the surface area of "things that could be different between rendering scenes and projects". View changes without whitespace changes to get a sense of how much was trimmed.

Testing Instructions

  • ;reload;backsplash-server/assembly (or just backsplash-server/assembly if you don't already have an sbt shell open)
  • click on an ingested scene from browsing a project
  • you should get tiles

Closes azavea/raster-foundry-platform#857

Copy link
Contributor

@notthatbreezy notthatbreezy left a comment

Choose a reason for hiding this comment

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

Looks great, does a good job cleaning up the routes and middleware + the http4s upgrade!

y
) :? BandOverrideQueryParamDecoder(
bandOverride
) as user using tracingContext =>
Copy link
Contributor

Choose a reason for hiding this comment

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

nice addition here removing the match

@jisantuc jisantuc merged commit 324efb5 into develop Oct 7, 2019
@jisantuc jisantuc deleted the feature/js/fix-scene-detail-tiles branch October 7, 2019 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants