Skip to content
Snippets Groups Projects
Commit 866ca4e4 authored by GitLab Bot's avatar GitLab Bot
Browse files

Add latest changes from gitlab-org/gitlab@master

parent 26a50872
No related branches found
No related tags found
No related merge requests found
Showing
with 81 additions and 17 deletions
Loading
Loading
@@ -31,7 +31,7 @@ module AnalyticsNavbarHelper
end
 
def cycle_analytics_navbar_link(project, current_user)
return unless Feature.enabled?(:analytics_pages_under_project_analytics_sidebar, project)
return unless Feature.enabled?(:analytics_pages_under_project_analytics_sidebar, project, default_enabled: true)
return unless project_nav_tab?(:cycle_analytics)
 
navbar_sub_item(
Loading
Loading
@@ -43,7 +43,7 @@ module AnalyticsNavbarHelper
end
 
def repository_analytics_navbar_link(project, current_user)
return if Feature.disabled?(:analytics_pages_under_project_analytics_sidebar, project)
return if Feature.disabled?(:analytics_pages_under_project_analytics_sidebar, project, default_enabled: true)
return if project.empty_repo?
 
navbar_sub_item(
Loading
Loading
@@ -55,7 +55,7 @@ module AnalyticsNavbarHelper
end
 
def ci_cd_analytics_navbar_link(project, current_user)
return unless Feature.enabled?(:analytics_pages_under_project_analytics_sidebar, project)
return unless Feature.enabled?(:analytics_pages_under_project_analytics_sidebar, project, default_enabled: true)
return unless project_nav_tab?(:pipelines)
return unless project.feature_available?(:builds, current_user) || !project.empty_repo?
 
Loading
Loading
Loading
Loading
@@ -3,7 +3,7 @@
module Ci
class ProcessBuildService < BaseService
def execute(build, current_status)
if valid_statuses_for_when(build.when).include?(current_status)
if valid_statuses_for_build(build).include?(current_status)
if build.schedulable?
build.schedule
elsif build.action?
Loading
Loading
@@ -25,10 +25,10 @@ module Ci
build.enqueue
end
 
def valid_statuses_for_when(value)
case value
def valid_statuses_for_build(build)
case build.when
when 'on_success'
%w[success skipped]
build.scheduling_type_dag? ? %w[success] : %w[success skipped]
when 'on_failure'
%w[failed]
when 'always'
Loading
Loading
Loading
Loading
@@ -6,10 +6,10 @@
= link_to navbar_links.first.link do
.nav-icon-container
= sprite_icon('chart')
%span.nav-item-name
%span.nav-item-name{ data: { qa_selector: 'analytics_link' } }
= _('Analytics')
 
%ul.sidebar-sub-level-items
%ul.sidebar-sub-level-items{ data: { qa_selector: 'analytics_sidebar_submenu' } }
- navbar_links.each do |menu_item|
= nav_link(path: menu_item.path) do
= link_to(menu_item.link, menu_item.link_to_options) do
Loading
Loading
- should_display_analytics_pages_in_sidebar = Feature.enabled?(:analytics_pages_under_group_analytics_sidebar, @group)
- should_display_analytics_pages_in_sidebar = Feature.enabled?(:analytics_pages_under_group_analytics_sidebar, @group, default_enabled: true)
- issues_count = group_issues_count(state: 'opened')
- merge_requests_count = group_merge_requests_count(state: 'opened')
 
Loading
Loading
- should_display_analytics_pages_in_sidebar = Feature.enabled?(:analytics_pages_under_project_analytics_sidebar, @project)
- should_display_analytics_pages_in_sidebar = Feature.enabled?(:analytics_pages_under_project_analytics_sidebar, @project, default_enabled: true)
 
.nav-sidebar{ class: ("sidebar-collapsed-desktop" if collapsed_sidebar?) }
.nav-sidebar-inner-scroll
Loading
Loading
@@ -9,7 +9,7 @@
= project_icon(@project, alt: @project.name, class: 'avatar s40 avatar-tile', width: 40, height: 40)
.sidebar-context-title
= @project.name
%ul.sidebar-top-level-items
%ul.sidebar-top-level-items.qa-project-sidebar
- paths = sidebar_projects_paths
- paths << 'cycle_analytics#show' unless should_display_analytics_pages_in_sidebar
= nav_link(path: paths, html_options: { class: 'home' }) do
Loading
Loading
---
title: Prevent DAG builds to run after skipped need build
merge_request: 23405
author:
type: fixed
---
title: Backfill LfsObjectsProject records of forks
merge_request: 24767
author:
type: other
---
title: Fix Group Import existing objects lookup when description attribute is an empty
string
merge_request: 25187
author:
type: fixed
---
title: Update cluster-applications to v0.8.0
merge_request: 25138
author:
type: changed
---
title: Move analytics pages under the sidebar for projects and groups
merge_request: 24470
author:
type: changed
# frozen_string_literal: true
class ScheduleLinkLfsObjects < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
MIGRATION = 'LinkLfsObjects'
BATCH_SIZE = 1_000
disable_ddl_transaction!
class Project < ActiveRecord::Base
include EachBatch
self.table_name = 'projects'
end
def up
fork_network_members =
Gitlab::BackgroundMigration::LinkLfsObjects::ForkNetworkMember
.select(1)
.with_non_existing_lfs_objects
.where('fork_network_members.project_id = projects.id')
forks = Project.where('EXISTS (?)', fork_network_members)
queue_background_migration_jobs_by_range_at_intervals(
forks,
MIGRATION,
BackgroundMigrationWorker.minimum_interval,
batch_size: BATCH_SIZE
)
end
def down
# no-op
end
end
Loading
Loading
@@ -16,7 +16,7 @@ group:
- Merge requests
- Push events
 
To view the Contribution Analytics, go to your group's **Overview > Contribution Analytics**
To view the Contribution Analytics, go to your group's **Analytics > Contribution Analytics**
page.
 
## Use cases
Loading
Loading
doc/user/group/insights/img/insights_sidebar_link.png

12 KiB

doc/user/group/insights/img/insights_sidebar_link_v12_8.png

7.59 KiB

Loading
Loading
@@ -14,10 +14,10 @@ requests to be merged and much more.
 
## View your group's Insights
 
You can access your group's Insights by clicking the **Overview > Insights**
You can access your group's Insights by clicking the **Analytics > Insights**
link in the left sidebar:
 
![Insights sidebar link](img/insights_sidebar_link.png)
![Insights sidebar link](img/insights_sidebar_link_v12_8.png)
 
## Configure your Insights
 
Loading
Loading
doc/user/group/issues_analytics/img/issues_created_per_month.png

27.8 KiB

doc/user/group/issues_analytics/img/issues_created_per_month_v12_8.png

65.3 KiB

Loading
Loading
@@ -10,7 +10,7 @@ Issues Analytics is a bar graph which illustrates the number of issues created e
The default timespan is 13 months, which includes the current month, and the 12 months
prior.
 
To access the chart, navigate to a group's sidebar and select **Issues > Analytics**.
To access the chart, navigate to a group's sidebar and select **Analytics > Issues Analytics**.
 
Hover over each bar to see the total number of issues.
 
Loading
Loading
@@ -28,7 +28,7 @@ You can change the total number of months displayed by setting a URL parameter.
For example, `https://gitlab.com/groups/gitlab-org/-/issues_analytics?months_back=15`
shows a total of 15 months for the chart in the GitLab.org group.
 
![Issues created per month](img/issues_created_per_month.png)
![Issues created per month](img/issues_created_per_month_v12_8.png)
 
<!-- ## Troubleshooting
 
Loading
Loading
doc/user/project/insights/img/insights_sidebar_link.png

13.5 KiB

doc/user/project/insights/img/insights_sidebar_link_v12_8.png

10.9 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment