BigW Consortium Gitlab
Cycle Analytics: first iteration ## What does this MR do? - Implement the first iteration of the "Cycle Analytics" feature. ## What are the relevant issue numbers? - Closes #21170 ## Screenshots ![cycle_analytics_screencast.gif](/uploads/d23c3c912caa6935fd47b53ca3a56b97/cycle_analytics.gif) ## Backend Tasks - [x] Implementation - [x] Phases - [x] Issue (Tracker) - [x] Plan (Board) - [x] Code (IDE) - [x] Test (CI) - [x] Review (MR) - [x] Staging (CD) - [x] Production (Total) - [x] Make heuristics more modular - [x] Scope to project - [x] Date range (30 days, 90 days) - [x] Access restriction - [x] Test - [x] Find a better way to test these phases - [x] Phases - [x] Issue (Tracker) - [x] Plan (Board) - [x] Code (IDE) - [x] Test (CI) - [x] Review (MR) - [x] Staging (CD) - [x] Production (Total) - [x] Test for "end case happens before start case" - [x] Consolidate helper - [x] Miniboss review - [x] Performance testing with mock data - [x] Improve performance - [x] Pre-calculate "merge requests closing issues - [x] Pre-calculate everything else - [x] Test performance against 10k issues - [x] Test all pre-calculation code - [x] Ci::Pipeline -> build start/finish - [x] Ci::Pipeline#merge_requests - [x] Issue -> record default metrics after save - [x] MergeRequest -> record default metrics after save - [x] Deployment -> Update "first_deployed_to_production_at" for MR metrics - [x] Git Push -> Update "first commit mention" for issue metrics - [x] Merge request create/update/refresh -> Update "merge requests closing issues" - [x] Remove `MergeRequestsClosingIssues` when necessary - [x] Changes to unblock Fatih - [x] Add summary data - [x] `stats` should be array - [x] Let `stats` be `null` if all `stats` are null - [x] Indexes for "merge requests closing issues" - [x] Test summary data - [x] Scope everything to project - [x] Find out why tests were passing - [x] Filter should include issues/MRs which have made it to production within the range - [x] Don't create duplicate `MergeRequestsClosingIssues` - [x] Fix tests - [x] MySQL median - [x] Assign to Douwe for review - [x] Fix conflicts - [x] Implement suggestions from Yorick's review - [x] Test on PG - [x] Test on MySQL - [x] Refactor - [x] Cleanup - [x] What happens if we have no data at all? - [x] Extract common queries to methods / scopes - [x] Remove unused queries - [x] Downtime for foreign key migrations - [x] Find a way around "if issue.metrics.present?" all over the place - [x] Find a way around "if merge_request.metrics.present?" all over the place - [x] Test migrations on a fresh database - [x] MySQL - [x] Pg - [x] Access issues - While the project is public and the visibility is set to "Everyone with access", you cannot visit the cycle analytics page when signed out. - [x] CHANGELOG - [x] Implement suggestions from Douwe's review - [x] First set of comments - [x] Second set of comments - [x] Third set of comments - [x] Fourth set of comments - [x] Make sure build is green - [ ] Make issue for "polish" - [ ] EE MR See merge request !5986
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
behaviors | Loading commit data... | |
blob | Loading commit data... | |
blob_edit | Loading commit data... | |
boards | Loading commit data... | |
commit | Loading commit data... | |
diff_notes | Loading commit data... | |
extensions | Loading commit data... | |
graphs | Loading commit data... | |
lib | Loading commit data... | |
network | Loading commit data... | |
profile | Loading commit data... | |
snippet | Loading commit data... | |
templates | Loading commit data... | |
u2f | Loading commit data... | |
users | Loading commit data... | |
LabelManager.js | Loading commit data... | |
abuse_reports.js.es6 | Loading commit data... | |
activities.js | Loading commit data... | |
admin.js | Loading commit data... | |
api.js | Loading commit data... | |
application.js | Loading commit data... | |
aside.js | Loading commit data... | |
autosave.js | Loading commit data... | |
awards_handler.js | Loading commit data... | |
breakpoints.js | Loading commit data... | |
broadcast_message.js | Loading commit data... | |
build.js | Loading commit data... | |
build_artifacts.js | Loading commit data... | |
build_variables.js.es6 | Loading commit data... | |
commit.js | Loading commit data... | |
commits.js | Loading commit data... | |
compare.js | Loading commit data... | |
compare_autocomplete.js | Loading commit data... | |
confirm_danger_modal.js | Loading commit data... | |
copy_to_clipboard.js | Loading commit data... | |
create_label.js.es6 | Loading commit data... | |
cycle-analytics.js.es6 | Loading commit data... | |
diff.js | Loading commit data... | |
dispatcher.js | Loading commit data... | |
dropzone_input.js | Loading commit data... | |
due_date_select.js | Loading commit data... | |
files_comment_button.js | Loading commit data... | |
flash.js | Loading commit data... | |
gfm_auto_complete.js.es6 | Loading commit data... | |
gl_dropdown.js | Loading commit data... | |
gl_form.js | Loading commit data... | |
group_avatar.js | Loading commit data... | |
groups.js | Loading commit data... | |
groups_select.js | Loading commit data... | |
importer_status.js | Loading commit data... | |
issuable.js.es6 | Loading commit data... | |
issuable_context.js | Loading commit data... | |
issuable_form.js | Loading commit data... | |
issue.js | Loading commit data... | |
issue_status_select.js | Loading commit data... | |
issues-bulk-assignment.js | Loading commit data... | |
labels.js | Loading commit data... | |
labels_select.js | Loading commit data... | |
layout_nav.js | Loading commit data... | |
line_highlighter.js | Loading commit data... | |
logo.js | Loading commit data... | |
member_expiration_date.js | Loading commit data... | |
merge_conflict_data_provider.js.es6 | Loading commit data... | |
merge_conflict_resolver.js.es6 | Loading commit data... | |
merge_request.js | Loading commit data... | |
merge_request_tabs.js | Loading commit data... | |
merge_request_widget.js | Loading commit data... | |
merged_buttons.js | Loading commit data... | |
milestone.js | Loading commit data... | |
milestone_select.js | Loading commit data... | |
namespace_select.js | Loading commit data... | |
new_branch_form.js | Loading commit data... | |
new_commit_form.js | Loading commit data... | |
notes.js | Loading commit data... | |
notifications_dropdown.js | Loading commit data... | |
notifications_form.js | Loading commit data... | |
pager.js | Loading commit data... | |
pipeline.js.es6 | Loading commit data... | |
preview_markdown.js | Loading commit data... | |
project.js | Loading commit data... | |
project_avatar.js | Loading commit data... | |
project_find_file.js | Loading commit data... | |
project_fork.js | Loading commit data... | |
project_import.js | Loading commit data... | |
project_members.js | Loading commit data... | |
project_new.js | Loading commit data... | |
project_select.js | Loading commit data... | |
project_show.js | Loading commit data... | |
projects_list.js | Loading commit data... | |
protected_branch_access_dropdown.js.es6 | Loading commit data... | |
protected_branch_create.js.es6 | Loading commit data... | |
protected_branch_dropdown.js.es6 | Loading commit data... | |
protected_branch_edit.js.es6 | Loading commit data... | |
protected_branch_edit_list.js.es6 | Loading commit data... | |
right_sidebar.js | Loading commit data... | |
search.js | Loading commit data... | |
search_autocomplete.js | Loading commit data... | |
shortcuts.js | Loading commit data... | |
shortcuts_blob.js | Loading commit data... | |
shortcuts_dashboard_navigation.js | Loading commit data... | |
shortcuts_find_file.js | Loading commit data... | |
shortcuts_issuable.js | Loading commit data... | |
shortcuts_navigation.js | Loading commit data... | |
shortcuts_network.js | Loading commit data... | |
sidebar.js.es6 | Loading commit data... | |
single_file_diff.js | Loading commit data... | |
snippets_list.js.es6 | Loading commit data... | |
star.js | Loading commit data... | |
subscription.js | Loading commit data... | |
subscription_select.js | Loading commit data... | |
syntax_highlight.js | Loading commit data... | |
todos.js | Loading commit data... | |
tree.js | Loading commit data... | |
user.js.es6 | Loading commit data... | |
user_tabs.js | Loading commit data... | |
users_select.js | Loading commit data... | |
wikis.js | Loading commit data... | |
zen_mode.js | Loading commit data... |