-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Various wiki bug fixes #2996
Conversation
models/unit_tests.go
Outdated
@@ -32,7 +32,6 @@ func CreateTestEngine(fixturesDir string) error { | |||
if err = x.StoreEngine("InnoDB").Sync2(tables...); err != nil { | |||
return err | |||
} | |||
x.ShowSQL(true) |
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
@@ -61,7 +61,7 @@ func (t *TwoFactor) getEncryptionKey() []byte { | |||
|
|||
// SetSecret sets the 2FA secret. | |||
func (t *TwoFactor) SetSecret(secret string) error { | |||
secretBytes, err := com.AESEncrypt(t.getEncryptionKey(), []byte(secret)) |
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
@@ -25,6 +25,7 @@ import ( | |||
"golang.org/x/net/html/charset" | |||
"golang.org/x/text/transform" | |||
"gopkg.in/editorconfig/editorconfig-core-go.v1" | |||
"net/url" |
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
@@ -85,7 +85,7 @@ | |||
{{end}} | |||
</div> | |||
{{if .footerPresent}} | |||
<div class="ui grey segment"> | |||
<div class="ui segment"> |
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
@@ -608,7 +608,6 @@ func RegisterRoutes(m *macaron.Macaron) { | |||
|
|||
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