| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|\
| |
| |
| |
| | |
Minor update to address Sean McGivern's comment.
See merge request gitlab-org/gitlab-ce!14311
|
| |
| |
| |
| | |
More details are available here https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/13436/diffs#note_39115837
|
|\ \
| | |
| | |
| | |
| | | |
Replace the 'project/snippets.feature' spinach test with an rspec analog
See merge request gitlab-org/gitlab-ce!14326
|
| |/ |
|
|\ \
| | |
| | |
| | |
| | | |
Replace the 'project/commits/revert.feature' spinach test with an rspec analog
See merge request gitlab-org/gitlab-ce!14325
|
| |/ |
|
|\ \
| | |
| | |
| | |
| | | |
Replace the 'project/archived.feature' spinach test with an rspec analog
See merge request gitlab-org/gitlab-ce!14322
|
| |/ |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Improve 'spec/features/profiles/*' specs
Closes #37855 et #37856
See merge request gitlab-org/gitlab-ce!14317
|
| |/ |
|
|/ |
|
|\
| |
| |
| |
| | |
Remove title attribute from sidebar elements
See merge request gitlab-org/gitlab-ce!14140
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Resolve "Scope users by group inside dropdowns if I'm on group page (Issue, MRs)"
Closes #20824
See merge request gitlab-org/gitlab-ce!14249
|
| |/
| |
| |
| | |
Signed-off-by: Rémy Coutable <remy@rymai.me>
|
| | |
|
|\ \
| |/
|/|
| |
| |
| |
| |
| |
| | |
'37576-renamed-files-have-escaped-html-for-the-inline-diff-in-the-header' into 'master'
Resolve "Renamed files have escaped HTML for the inline diff in the header"
Closes #37576
See merge request gitlab-org/gitlab-ce!14121
|
| |
| |
| |
| | |
add feature test for inline diff in file header
|
|\ \
| | |
| | |
| | |
| | | |
Replace the 'profile/active_tab.feature' spinach test with an rspec analog
See merge request !14239
|
| | | |
|
|\ \ \
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | | |
'36907-new-issue-from-failed-build-no-longer-links-to-failed-build' into 'master'
Resolve "New issue from failed build no longer links to failed build"
Closes #36907
See merge request !13790
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
Replace the 'project/issues/award_emoji.feature' spinach test with an rspec analog
See merge request !14202
|
| |/ /
| | |
| | |
| | | |
analog
|
|/ / |
|
| |
| |
| |
| |
| |
| | |
spec/features/projects/wiki/user_updates_wiki_page_spec.rb
Signed-off-by: Rémy Coutable <remy@rymai.me>
|
|\ \
| | |
| | |
| | |
| | | |
Replace the 'project/merge_requests/revert.feature' spinach test with an rspec analog
See merge request !14201
|
| | |
| | |
| | |
| | | |
rspec analog
|
|\ \ \
| |/ /
|/| |
| | |
| | | |
Replace the 'project/milestone.feature' spinach test with an rspec analog
See merge request !14171
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
Replace the 'project/merge_requests/accept.feature' spinach test with an rspec analog
See merge request !14176
|
| |/ /
| | |
| | |
| | | |
rspec analog
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
Replace 'project/wiki.feature' spinach test with an rspec analog
See merge request !13856
|
| |/ / |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
Replace 'project/group_links.feature' spinach test with an rspec analog
See merge request !14169
|
| |/ / |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
Replace the 'profile/emails.feature' spinach test with an rspec analog
See merge request !14172
|
| |/ / |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
Replace the 'project/team_management.feature' spinach test with an rspec analog
See merge request !14173
|
| |/ / |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Rework how recent push events are retrieved
Closes #35990
See merge request !13995
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Whenever you push to a branch GitLab will show a button to create a
merge request (should one not exist already). The underlying code to
display this data was quite inefficient. For example, it involved
multiple slow queries just to figure out what the most recent push event
was.
This commit changes the way this data is retrieved so it's much faster.
This is achieved by caching the ID of the last push event on every push,
which is then retrieved when loading certain pages. Database queries are
only executed if necessary and the cached data is removed automatically
once a merge request has been created, or 2 hours after being stored.
A trade-off of this approach is that we _only_ track the last event.
Previously if you were to push to branch A and B then create a merge
request for branch B we'd still show the widget for branch A. As of this
commit this is no longer the case, instead we will only show the widget
for the branch you pushed to most recently. Once a merge request exists
the widget is no longer displayed. Alternative solutions are either too
complex and/or too slow, hence the decision was made to settle for this
trade-off.
Performance Impact
------------------
In the best case scenario (= a user didn't push anything for more than 2
hours) we perform a single Redis GET per page. Should there be cached
data we will run a single (and lightweight) SQL query to get the
event data from the database. If a merge request already exists we will
run an additional DEL to remove the cache key.
The difference in response timings can vary a bit per project. On
GitLab.com the 99th percentile of time spent in User#recent_push hovers
between 100 milliseconds and 1 second, while the mean hovers around 50
milliseconds. With the changes in this MR the expected time spent in
User#recent_push is expected to be reduced down to just a few
milliseconds.
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/35990
|
| |/
|/| |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
'37569-fix-wrong-number-of-arguments-in-tree_helper-flatten_tree' into 'master'
Fix a "Wrong number of arguments" error in TreeHelper#flatten_tree
Closes #37569
See merge request !14119
|
| | |
| | |
| | |
| | | |
Signed-off-by: Rémy Coutable <remy@rymai.me>
|