-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Various wiki bug fixes #2996
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
Various wiki bug fixes #2996
Conversation
models/unit_tests.go
Outdated
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 change is from your other PR #2995 and unrelated to this PR. It is unlikely to create merge conflicts, but perhaps it should be removed just in case.
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.
done
models/twofactor.go
Outdated
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.
The changes to 2FA are unrelated to this PR, could they be pulled out an resubmitted under a diff PR?
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.
They are necessary, because of the macaron update.
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.
Thanks for the clarification :)
ab49b95 to
01d5a88
Compare
modules/templates/helper.go
Outdated
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.
wrong import order
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.
done
templates/repo/wiki/view.tmpl
Outdated
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.
why removegrey?
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.
Because the footer was the only one with a grey line on the top; neither the main wiki page nor the sidebar had one, so I removed it for consistency.
01d5a88 to
7d768f6
Compare
|
Tests seem to fail |
51ec52a to
fa7f540
Compare
Codecov Report
@@ Coverage Diff @@
## master #2996 +/- ##
==========================================
+ Coverage 32.53% 32.72% +0.18%
==========================================
Files 267 267
Lines 39271 39188 -83
==========================================
+ Hits 12778 12825 +47
+ Misses 24700 24548 -152
- Partials 1793 1815 +22
Continue to review full report at Codecov.
|
fa7f540 to
ad14378
Compare
|
|
||
| m.Group("/wiki", func() { | ||
| m.Get("/raw/*", repo.WikiRaw) | ||
| m.Get("/*", repo.WikiRaw) |
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.
Why this route is removed?
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.
It cannot be reached (aside from a few corner cases), since the /:page route takes precedence.
|
LGTM |
|
LGTM |
This PR does the following:
models/wiki_test.go, addressing existing TODOs