"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "routers/user/home.go" between
gitea-1.13.1.tar.gz and gitea-1.13.2.tar.gz

About: Gitea allows to set up a self-hosted code hosting Git service (a fork of Gogs).

home.go  (gitea-1.13.1):home.go  (gitea-1.13.2)
skipping to change at line 570 skipping to change at line 570
commitStatus[issue.PullRequest.ID], _ = pull_service.GetL astCommitStatus(issue.PullRequest) commitStatus[issue.PullRequest.ID], _ = pull_service.GetL astCommitStatus(issue.PullRequest)
} }
} }
userIssueStatsOpts := models.UserIssueStatsOptions{ userIssueStatsOpts := models.UserIssueStatsOptions{
UserID: ctxUser.ID, UserID: ctxUser.ID,
UserRepoIDs: userRepoIDs, UserRepoIDs: userRepoIDs,
FilterMode: filterMode, FilterMode: filterMode,
IsPull: isPullList, IsPull: isPullList,
IsClosed: isShowClosed, IsClosed: isShowClosed,
LabelIDs: opts.LabelIDs,
} }
if len(repoIDs) > 0 { if len(repoIDs) > 0 {
userIssueStatsOpts.UserRepoIDs = repoIDs userIssueStatsOpts.UserRepoIDs = repoIDs
} }
userIssueStats, err := models.GetUserIssueStats(userIssueStatsOpts) userIssueStats, err := models.GetUserIssueStats(userIssueStatsOpts)
if err != nil { if err != nil {
ctx.ServerError("GetUserIssueStats User", err) ctx.ServerError("GetUserIssueStats User", err)
return return
} }
var shownIssueStats *models.IssueStats var shownIssueStats *models.IssueStats
if !forceEmpty { if !forceEmpty {
statsOpts := models.UserIssueStatsOptions{ statsOpts := models.UserIssueStatsOptions{
UserID: ctxUser.ID, UserID: ctxUser.ID,
UserRepoIDs: userRepoIDs, UserRepoIDs: userRepoIDs,
FilterMode: filterMode, FilterMode: filterMode,
IsPull: isPullList, IsPull: isPullList,
IsClosed: isShowClosed, IsClosed: isShowClosed,
IssueIDs: issueIDsFromSearch, IssueIDs: issueIDsFromSearch,
LabelIDs: opts.LabelIDs,
} }
if len(repoIDs) > 0 { if len(repoIDs) > 0 {
statsOpts.RepoIDs = repoIDs statsOpts.RepoIDs = repoIDs
} }
shownIssueStats, err = models.GetUserIssueStats(statsOpts) shownIssueStats, err = models.GetUserIssueStats(statsOpts)
if err != nil { if err != nil {
ctx.ServerError("GetUserIssueStats Shown", err) ctx.ServerError("GetUserIssueStats Shown", err)
return return
} }
} else { } else {
skipping to change at line 611 skipping to change at line 613
var allIssueStats *models.IssueStats var allIssueStats *models.IssueStats
if !forceEmpty { if !forceEmpty {
allIssueStats, err = models.GetUserIssueStats(models.UserIssueSta tsOptions{ allIssueStats, err = models.GetUserIssueStats(models.UserIssueSta tsOptions{
UserID: ctxUser.ID, UserID: ctxUser.ID,
UserRepoIDs: userRepoIDs, UserRepoIDs: userRepoIDs,
FilterMode: filterMode, FilterMode: filterMode,
IsPull: isPullList, IsPull: isPullList,
IsClosed: isShowClosed, IsClosed: isShowClosed,
IssueIDs: issueIDsFromSearch, IssueIDs: issueIDsFromSearch,
LabelIDs: opts.LabelIDs,
}) })
if err != nil { if err != nil {
ctx.ServerError("GetUserIssueStats All", err) ctx.ServerError("GetUserIssueStats All", err)
return return
} }
} else { } else {
allIssueStats = &models.IssueStats{} allIssueStats = &models.IssueStats{}
} }
var shownIssues int var shownIssues int
skipping to change at line 662 skipping to change at line 665
ctx.Data["CommitStatus"] = commitStatus ctx.Data["CommitStatus"] = commitStatus
ctx.Data["Repos"] = showRepos ctx.Data["Repos"] = showRepos
ctx.Data["Counts"] = counts ctx.Data["Counts"] = counts
ctx.Data["IssueStats"] = userIssueStats ctx.Data["IssueStats"] = userIssueStats
ctx.Data["ShownIssueStats"] = shownIssueStats ctx.Data["ShownIssueStats"] = shownIssueStats
ctx.Data["ViewType"] = viewType ctx.Data["ViewType"] = viewType
ctx.Data["SortType"] = sortType ctx.Data["SortType"] = sortType
ctx.Data["RepoIDs"] = repoIDs ctx.Data["RepoIDs"] = repoIDs
ctx.Data["IsShowClosed"] = isShowClosed ctx.Data["IsShowClosed"] = isShowClosed
ctx.Data["TotalIssueCount"] = totalIssues ctx.Data["TotalIssueCount"] = totalIssues
ctx.Data["SelectLabels"] = selectLabels
if isShowClosed { if isShowClosed {
ctx.Data["State"] = "closed" ctx.Data["State"] = "closed"
} else { } else {
ctx.Data["State"] = "open" ctx.Data["State"] = "open"
} }
// Convert []int64 to string // Convert []int64 to string
reposParam, _ := json.Marshal(repoIDs) reposParam, _ := json.Marshal(repoIDs)
 End of changes. 4 change blocks. 
0 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)