-
Notifications
You must be signed in to change notification settings - Fork 326
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Servantify Galley Teams [2/2] #2277
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
One thing I'd like to improve is the use of NoContent
, which is a bit of a hack in servant, and it contaminates the handler code with servant-specific nonsense. We have created a MultiVerb
combinator to solve this and other limitations of servant, and here it works pretty well (in its MultiVerb1
incarnation, which is for a single response).
I've taken the liberty of adding a commit to this PR which removes the uses of NoContent
. As you can see, a lot of meaningless glue code around the handler just goes away.
Definitely a good change, but the glue code you removed was mostly historical: when we were preparing the wai-route code for servant in the past, we had two functions: a wrapper With the removal of wai-route, we probably want to remove all the wrappers. |
Some I've been able to drop and call the underlying function directly. Some have status code manipulation or |
Reordered Servant type combinators to no longer require `hoistAPI id` calls. Inlined type aliases that are no longer used elsewhere.
We are already under the "/i/" URL structure, but this better reflects the name in Galley.API.Teams.
118809c
to
32313ce
Compare
JIRA:
Checklist
changelog.d
.