loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Revert "[BUG] Remember topic only in repo search"

This reverts commit b4360d504cfc00dff8f80c774e70e5facc0aed37.

-14
-1
templates/explore/repo_search.tmpl
··· 2 2 <form class="ui form ignore-dirty gt-f1"> 3 3 <input type="hidden" name="sort" value="{{$.SortType}}"> 4 4 <input type="hidden" name="language" value="{{$.Language}}"> 5 - <input type="hidden" name="topic" value="{{$.TopicOnly}}"> 6 5 <div class="ui fluid action input"> 7 6 {{template "shared/searchinput" dict "Value" .Keyword}} 8 7 {{if .PageIsExploreRepositories}}
-13
tests/integration/explore_repos_test.go
··· 8 8 "testing" 9 9 10 10 "code.gitea.io/gitea/tests" 11 - "github.com/stretchr/testify/assert" 12 11 ) 13 12 14 13 func TestExploreRepos(t *testing.T) { ··· 16 15 17 16 req := NewRequest(t, "GET", "/explore/repos") 18 17 MakeRequest(t, req, http.StatusOK) 19 - 20 - t.Run("Persistent parameters", func(t *testing.T) { 21 - defer tests.PrintCurrentTest(t)() 22 - 23 - req := NewRequest(t, "GET", "/explore/repos?topic=1&language=Go&sort=moststars") 24 - resp := MakeRequest(t, req, http.StatusOK) 25 - htmlDoc := NewHTMLParser(t, resp.Body) 26 - 27 - assert.EqualValues(t, "moststars", htmlDoc.Find("input[type='hidden'][name='sort']").AttrOr("value", "not found")) 28 - assert.EqualValues(t, "Go", htmlDoc.Find("input[type='hidden'][name='language']").AttrOr("value", "not found")) 29 - assert.EqualValues(t, "true", htmlDoc.Find("input[type='hidden'][name='topic']").AttrOr("value", "not found")) 30 - }) 31 18 }