Skip to content

Conversation

lunny
Copy link
Member

@lunny lunny commented Apr 24, 2019

Will fix #6511 with integration tests

@lunny lunny added the type/bug label Apr 24, 2019
@lunny lunny added this to the 1.9.0 milestone Apr 24, 2019
@lunny lunny changed the title fix bug when sort repos on org home page login with non-admin Fix bug when sort repos on org home page login with non-admin Apr 24, 2019
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Apr 24, 2019
@lunny lunny force-pushed the lunny/fix_org_repo_sort branch from 4bc8c4b to a6daf03 Compare April 24, 2019 16:33

var (
users = []string{"user1", "user2"}
kases = map[string][]string{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
kases = map[string][]string{
cases = map[string][]string{

for _, user := range users {
t.Run(user, func(t *testing.T) {
session := loginUser(t, user)
for sortBy, repos := range kases {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for sortBy, repos := range kases {
for sortBy, repos := range cases {

@lunny
Copy link
Member Author

lunny commented Apr 24, 2019

@mrsdizzie done.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Apr 24, 2019
@codecov-io
Copy link

codecov-io commented Apr 24, 2019

Codecov Report

Merging #6741 into master will increase coverage by 0.16%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6741      +/-   ##
==========================================
+ Coverage   40.82%   40.98%   +0.16%     
==========================================
  Files         421      421              
  Lines       57910    57915       +5     
==========================================
+ Hits        23640    23738      +98     
+ Misses      31131    31018     -113     
- Partials     3139     3159      +20
Impacted Files Coverage Δ
models/org.go 70.03% <100%> (+0.23%) ⬆️
routers/user/home.go 47.76% <100%> (+9.72%) ⬆️
models/unit.go 45.71% <0%> (-5.72%) ⬇️
routers/repo/view.go 41.6% <0%> (-1.01%) ⬇️
models/user.go 50.78% <0%> (+0.27%) ⬆️
models/repo.go 47.96% <0%> (+0.58%) ⬆️
routers/user/profile.go 38.09% <0%> (+1.73%) ⬆️
modules/context/org.go 32.75% <0%> (+31.89%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 821184c...fbc02a4. Read the comment docs.

@zeripath zeripath merged commit ff03b2f into go-gitea:master Apr 24, 2019
@lunny lunny deleted the lunny/fix_org_repo_sort branch April 25, 2019 00:29
lunny added a commit to lunny/gitea that referenced this pull request Apr 25, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

organization repository sort order
7 participants