-
Notifications
You must be signed in to change notification settings - Fork 0
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
Port StripFileExtensions from Desk #24
Conversation
Copy StripFileExtensions from Desk so that it can be used in Spaces and other projects - Add Sanitize middleware - Add tests - Update Gopkg.lock to include echo so tests can be run
Codecov Report
@@ Coverage Diff @@
## master #24 +/- ##
=========================================
- Coverage 59.78% 59.59% -0.2%
=========================================
Files 11 12 +1
Lines 378 396 +18
=========================================
+ Hits 226 236 +10
- Misses 127 132 +5
- Partials 25 28 +3
Continue to review full report at Codecov.
|
I don't think we should port this to be honest. It's an ugly hack. I have never happy with it in Desk either, and the only reason we added it in Desk was because we were supposed to move away from adding It would be better to either simply not use |
We don't get the choice to not use |
Then someone should fix the echo router. Adding middlewares is very annoying because it adds two entries to the stack trace on any error. It's already almost two pages in a full-screen terminal on my screen. Every time I have an error I need to scroll up. Very annoying when trying to fix stuff. The only reason my PR got reverted is because it had a bug, so if someone fixes that, then we can just use the echo router. |
Sure. We can do that. But the spaces team needs this in the mean time.
…On Tue, Apr 17, 2018 at 4:05 PM Martin Tournoij ***@***.***> wrote:
Then someone should fix the echo router. Adding middlewares is very
annoying because it adds two entries to the stack trace on any error. It's
already almost two pages in a full-screen terminal on my screen. Every time
I have an error I need to scroll up. Very annoying when trying to fix stuff.
The only reason my PR got reverted is because it had a bug, so if someone
fixes that, then we can just use the echo router.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHbUqIJwKuNfZgXIoUAPkWtXt85SxU2ks5tpnUrgaJpZM4TY7J_>
.
|
@@ -28,6 +28,39 @@ | |||
packages = ["."] | |||
revision = "7cafcd837844e784b526369c9bce262804aebc60" | |||
|
|||
[[projects]] | |||
name = "github.com/labstack/echo" |
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.
This should be in echoutil btw, as we use this package in some projects that don't use echo, and this will add echo as a dependency.
Closing this PR as it's been replaced by https://github.com/Teamwork/echoutil/pull/11 |
Copy StripFileExtensions from Desk so that it can be used in Spaces
and other projects