|
|
|
|
@ -110,7 +110,7 @@ func Dashboard(ctx *context.Context) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if setting.Service.EnableUserHeatmap {
|
|
|
|
|
data, err := activities_model.GetUserHeatmapDataByUserTeam(ctx, ctxUser, ctx.Org.Team, ctx.Doer)
|
|
|
|
|
data, err := activities_model.GetUserHeatmapDataByUserTeam(ctx, ctxUser, ctx.Org.Team, ctx.RepoGroup.Group, ctx.Doer)
|
|
|
|
|
if err != nil {
|
|
|
|
|
ctx.ServerError("GetUserHeatmapDataByUserTeam", err)
|
|
|
|
|
return
|
|
|
|
|
@ -122,6 +122,7 @@ func Dashboard(ctx *context.Context) {
|
|
|
|
|
feeds, count, err := feed_service.GetFeedsForDashboard(ctx, activities_model.GetFeedsOptions{
|
|
|
|
|
RequestedUser: ctxUser,
|
|
|
|
|
RequestedTeam: ctx.Org.Team,
|
|
|
|
|
RequestedGroup: ctx.RepoGroup.Group,
|
|
|
|
|
Actor: ctx.Doer,
|
|
|
|
|
IncludePrivate: true,
|
|
|
|
|
OnlyPerformedBy: false,
|
|
|
|
|
@ -170,6 +171,9 @@ func Milestones(ctx *context.Context) {
|
|
|
|
|
Archived: optional.Some(false),
|
|
|
|
|
HasMilestones: optional.Some(true), // Just needs display repos has milestones
|
|
|
|
|
}
|
|
|
|
|
if ctx.RepoGroup.Group != nil {
|
|
|
|
|
repoOpts.GroupID = ctx.RepoGroup.Group.ID
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ctxUser.IsOrganization() && ctx.Org.Team != nil {
|
|
|
|
|
repoOpts.TeamID = ctx.Org.Team.ID
|
|
|
|
|
@ -474,6 +478,9 @@ func buildIssueOverview(ctx *context.Context, unitType unit.Type) {
|
|
|
|
|
if opts.Team != nil {
|
|
|
|
|
repoOpts.TeamID = opts.Team.ID
|
|
|
|
|
}
|
|
|
|
|
if ctx.RepoGroup.Group != nil {
|
|
|
|
|
repoOpts.GroupID = ctx.RepoGroup.Group.ID
|
|
|
|
|
}
|
|
|
|
|
accessibleRepos := container.Set[int64]{}
|
|
|
|
|
{
|
|
|
|
|
ids, _, err := repo_model.SearchRepositoryIDs(ctx, repoOpts)
|
|
|
|
|
|