Skip to content

Commit fd285f7

Browse files
committed
Merge branch 'master' into feature/runner-lock-on-project
* master: (147 commits) Update CHANGELOG Remove deprecated issues_tracker and issues_tracker_id from project Schema doesn’t reflect the changes of the last 3 migrations Revert CHANGELOG Also rename "find" in the specs Change to new Notes styleguide Add guide on changing a document's location Change logs.md location in README Move logs/logs.md to administration/logs.md Make "four phase test" Only show branches for revert / cherry-pick Instrument all Banzai::ReferenceParser classes Removed old comment from update_column_in_batches Update columns in batches until no rows are left Remove counters from Pipeline navigation Handle NULL migration errors in migration helpers Fix typo causing related branches to Error 500 Improved SVG sanitizer specs to include smoke tests for clean. Refactored SVG sanitizer Added SVG sanitizer fix to the changelog ...
2 parents 1b8f52d + 121c632 commit fd285f7

File tree

582 files changed

+3372
-1513
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

582 files changed

+3372
-1513
lines changed

.github/ISSUE_TEMPLATE.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
We’re closing our issue tracker on GitHub so we can focus on the GitLab.com project and respond to issues more quickly.
2+
3+
We encourage you to open an issue on the [GitLab.com issue tracker](https://gitlab.com/gitlab-org/gitlab-ce/issues). You can log into GitLab.com using your GitHub account.

.github/PULL_REQUEST_TEMPLATE.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Thank you for taking the time to contribute back to GitLab!
2+
3+
Please open a merge request [on GitLab.com](https://gitlab.com/gitlab-org/gitlab-ce/merge_requests), we look forward to reviewing your contribution! You can log into GitLab.com using your GitHub account.

.gitlab-ci.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ services:
77
cache:
88
key: "ruby21"
99
paths:
10-
- vendor
10+
- vendor/apt
11+
- vendor/ruby
1112

1213
variables:
1314
MYSQL_ALLOW_EMPTY_PASSWORD: "1"
@@ -91,9 +92,7 @@ update-knapsack:
9192
- export KNAPSACK_REPORT_PATH=knapsack/spinach_node_${CI_NODE_INDEX}_${CI_NODE_TOTAL}_report.json
9293
- export KNAPSACK_GENERATE_REPORT=true
9394
- cp knapsack/spinach_report.json ${KNAPSACK_REPORT_PATH}
94-
- knapsack spinach "-r rerun"
95-
# retry failed tests 3 times
96-
- retry '[ ! -e tmp/spinach-rerun.txt ] || bin/spinach -r rerun $(cat tmp/spinach-rerun.txt)'
95+
- knapsack spinach "-r rerun" || retry '[ ! -e tmp/spinach-rerun.txt ] || bundle exec spinach -r rerun $(cat tmp/spinach-rerun.txt)'
9796
artifacts:
9897
paths:
9998
- knapsack/

.rubocop.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ AllCops:
1313
# Exclude some GitLab files
1414
Exclude:
1515
- 'vendor/**/*'
16-
- 'db/**/*'
16+
- 'db/*'
17+
- 'db/fixtures/**/*'
1718
- 'tmp/**/*'
1819
- 'bin/**/*'
1920
- 'lib/backup/**/*'
@@ -348,7 +349,7 @@ Style/MultilineArrayBraceLayout:
348349

349350
# Avoid multi-line chains of blocks.
350351
Style/MultilineBlockChain:
351-
Enabled: false
352+
Enabled: true
352353

353354
# Ensures newlines after multiline block do statements.
354355
Style/MultilineBlockLayout:

CHANGELOG

+27-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
Please view this file on the master branch, on stable branches it's out of date.
22

33
v 8.9.0 (unreleased)
4+
- Fix Error 500 when using closes_issues API with an external issue tracker
45
- Bulk assign/unassign labels to issues.
56
- Ability to prioritize labels !4009 / !3205 (Thijs Wouters)
67
- Fix endless redirections when accessing user OAuth applications when they are disabled
78
- Allow enabling wiki page events from Webhook management UI
89
- Bump rouge to 1.11.0
10+
- Fix issue with arrow keys not working in search autocomplete dropdown
911
- Make EmailsOnPushWorker use Sidekiq mailers queue
1012
- Fix wiki page events' webhook to point to the wiki repository
13+
- Don't show tags for revert and cherry-pick operations
1114
- Fix issue todo not remove when leave project !4150 (Long Nguyen)
1215
- Allow customisable text on the 'nearly there' page after a user signs up
1316
- Bump recaptcha gem to 3.0.0 to remove deprecated stoken support
17+
- Fix SVG sanitizer to allow more elements
1418
- Allow forking projects with restricted visibility level
19+
- Added descriptions to notification settings dropdown
1520
- Improve note validation to prevent errors when creating invalid note via API
1621
- Reduce number of fog gem dependencies
1722
- Remove project notification settings associated with deleted projects
@@ -22,13 +27,17 @@ v 8.9.0 (unreleased)
2227
- `git clone https://host/namespace/project` now works, in addition to using the `.git` suffix
2328
- Bump nokogiri to 1.6.8
2429
- Use gitlab-shell v3.0.0
30+
- Upgrade to jQuery 2
2531
- Use Knapsack to evenly distribute tests across multiple nodes
2632
- Add `sha` parameter to MR merge API, to ensure only reviewed changes are merged
2733
- Don't allow MRs to be merged when commits were added since the last review / page load
2834
- Add DB index on users.state
2935
- Add rake task 'gitlab:db:configure' for conditionally seeding or migrating the database
3036
- Changed the Slack build message to use the singular duration if necessary (Aran Koning)
37+
- Links from a wiki page to other wiki pages should be rewritten as expected
38+
- Add option to project to only allow merge requests to be merged if the build succeeds (Rui Santos)
3139
- Fix issues filter when ordering by milestone
40+
- Added artifacts:when to .gitlab-ci.yml - this requires GitLab Runner 1.3
3241
- Todos will display target state if issuable target is 'Closed' or 'Merged'
3342
- Fix bug when sorting issues by milestone due date and filtering by two or more labels
3443
- Add support for using Yubikeys (U2F) for two-factor authentication
@@ -38,35 +47,45 @@ v 8.9.0 (unreleased)
3847
- Use downcased path to container repository as this is expected path by Docker
3948
- Projects pending deletion will render a 404 page
4049
- Measure queue duration between gitlab-workhorse and Rails
50+
- Make Omniauth providers specs to not modify global configuration
4151
- Make authentication service for Container Registry to be compatible with < Docker 1.11
4252
- Make it possible to lock a runner from being enabled for other projects
4353
- Add Application Setting to configure Container Registry token expire delay (default 5min)
4454
- Cache assigned issue and merge request counts in sidebar nav
4555
- Use Knapsack only in CI environment
4656
- Cache project build count in sidebar nav
57+
- Add milestone expire date to the right sidebar
4758
- Fix markdown_spec to use before instead of before(:all) to properly cleanup database after testing
4859
- Reduce number of queries needed to render issue labels in the sidebar
4960
- Improve error handling importing projects
5061
- Remove duplicated notification settings
5162
- Put project Files and Commits tabs under Code tab
63+
- Decouple global notification level from user model
5264
- Replace Colorize with Rainbow for coloring console output in Rake tasks.
65+
- Add workhorse controller and API helpers
5366
- An indicator is now displayed at the top of the comment field for confidential issues.
5467
- RepositoryCheck::SingleRepositoryWorker public and private methods are now instrumented
5568
- Improve issuables APIs performance when accessing notes !4471
5669
- External links now open in a new tab
57-
58-
v 8.8.4 (unreleased)
70+
- Markdown editor now correctly resets the input value on edit cancellation !4175
71+
- Toggling a task list item in a issue/mr description does not creates a Todo for mentions
72+
- Improved UX of date pickers on issue & milestone forms
73+
- Cache on the database if a project has an active external issue tracker.
74+
- Put project Labels and Milestones pages links under Issues and Merge Requests tabs as subnav
75+
- All classes in the Banzai::ReferenceParser namespace are now instrumented
76+
- Remove deprecated issues_tracker and issues_tracker_id from project model
77+
78+
v 8.8.5 (unreleased)
5979
- Ensure branch cleanup regardless of whether the GitHub import process succeeds
60-
- Fix issue with arrow keys not working in search autocomplete dropdown
6180
- Fix todos page throwing errors when you have a project pending deletion
6281
- Reduce number of SQL queries when rendering user references
63-
- Upgrade to jQuery 2
64-
- Remove prev/next buttons on issues and merge requests
6582
- Import GitHub repositories respecting the API rate limit
6683
- Fix importer for GitHub comments on diff
6784
- Disable Webhooks before proceeding with the GitHub import
68-
- Added descriptions to notification settings dropdown
69-
- Markdown editor now correctly resets the input value on edit cancellation !4175
85+
- Fix incremental trace upload API when using multi-byte UTF-8 chars in trace
86+
87+
v 8.8.4
88+
- Fix LDAP-based login for users with 2FA enabled. !4493
7089

7190
v 8.8.3
7291
- Fix 404 page when viewing TODOs that contain milestones or labels in different projects. !4312
@@ -178,6 +197,7 @@ v 8.8.0
178197
- Fixed advice on invalid permissions on upload path !2948 (Ludovic Perrine)
179198
- Allows MR authors to have the source branch removed when merging the MR. !2801 (Jeroen Jacobs)
180199
- When creating a .gitignore file a dropdown with templates will be provided
200+
- Shows the issue/MR list search/filter form and corrects the mobile styling for guest users. #17562
181201

182202
v 8.7.7
183203
- Fix import by `Any Git URL` broken if the URL contains a space

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ end
245245

246246
group :development do
247247
gem "foreman"
248-
gem 'brakeman', '~> 3.2.0', require: false
248+
gem 'brakeman', '~> 3.3.0', require: false
249249

250250
gem 'letter_opener_web', '~> 1.3.0'
251251
gem 'quiet_assets', '~> 1.0.2'

Gemfile.lock

+5-23
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,7 @@ GEM
9797
bootstrap-sass (3.3.6)
9898
autoprefixer-rails (>= 5.2.1)
9999
sass (>= 3.3.4)
100-
brakeman (3.2.1)
101-
erubis (~> 2.6)
102-
haml (>= 3.0, < 5.0)
103-
highline (>= 1.6.20, < 2.0)
104-
ruby2ruby (~> 2.3.0)
105-
ruby_parser (~> 3.8.1)
106-
safe_yaml (>= 1.0)
107-
sass (~> 3.0)
108-
slim (>= 1.3.6, < 4.0)
109-
terminal-table (~> 1.4)
100+
brakeman (3.3.2)
110101
browser (2.0.3)
111102
builder (3.2.2)
112103
bullet (5.0.0)
@@ -338,7 +329,6 @@ GEM
338329
hashie (3.4.3)
339330
health_check (1.5.1)
340331
rails (>= 2.3.0)
341-
highline (1.7.8)
342332
hipchat (1.5.2)
343333
httparty
344334
mimemagic
@@ -642,10 +632,7 @@ GEM
642632
ruby-saml (1.1.2)
643633
nokogiri (>= 1.5.10)
644634
uuid (~> 2.3)
645-
ruby2ruby (2.3.0)
646-
ruby_parser (~> 3.1)
647-
sexp_processor (~> 4.0)
648-
ruby_parser (3.8.1)
635+
ruby_parser (3.8.2)
649636
sexp_processor (~> 4.1)
650637
rubyntlm (0.5.2)
651638
rubypants (0.2.0)
@@ -655,7 +642,7 @@ GEM
655642
safe_yaml (1.0.4)
656643
sanitize (2.1.0)
657644
nokogiri (>= 1.4.4)
658-
sass (3.4.21)
645+
sass (3.4.22)
659646
sass-rails (5.0.4)
660647
railties (>= 4.0.0, < 5.0)
661648
sass (~> 3.1)
@@ -704,9 +691,6 @@ GEM
704691
tilt (>= 1.3, < 3)
705692
six (0.2.0)
706693
slack-notifier (1.2.1)
707-
slim (3.0.6)
708-
temple (~> 0.7.3)
709-
tilt (>= 1.3.3, < 2.1)
710694
slop (3.6.0)
711695
spinach (0.8.10)
712696
colorize
@@ -747,10 +731,8 @@ GEM
747731
railties (>= 3.2.5, < 6)
748732
teaspoon-jasmine (2.2.0)
749733
teaspoon (>= 1.0.0)
750-
temple (0.7.6)
751734
term-ansicolor (1.3.2)
752735
tins (~> 1.0)
753-
terminal-table (1.5.2)
754736
test_after_commit (0.4.2)
755737
activerecord (>= 3.2)
756738
thin (1.6.4)
@@ -759,7 +741,7 @@ GEM
759741
rack (~> 1.0)
760742
thor (0.19.1)
761743
thread_safe (0.3.5)
762-
tilt (2.0.2)
744+
tilt (2.0.5)
763745
timecop (0.8.1)
764746
timfel-krb5-auth (0.8.3)
765747
tinder (1.10.1)
@@ -848,7 +830,7 @@ DEPENDENCIES
848830
better_errors (~> 1.0.1)
849831
binding_of_caller (~> 0.7.2)
850832
bootstrap-sass (~> 3.3.0)
851-
brakeman (~> 3.2.0)
833+
brakeman (~> 3.3.0)
852834
browser (~> 2.0.3)
853835
bullet
854836
bundler-audit

app/assets/javascripts/activities.js.coffee

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
class @Activities
22
constructor: ->
3-
Pager.init 20, true
3+
Pager.init 20, true, false, @updateTooltips
44
$(".event-filter-link").on "click", (event) =>
55
event.preventDefault()
66
@toggleFilter($(event.currentTarget))
77
@reloadActivities()
88

9+
updateTooltips: ->
10+
gl.utils.localTimeAgo($('.js-timeago', '#activity'))
11+
912
reloadActivities: ->
1013
$(".content_list").html ''
1114
Pager.init 20, true

app/assets/javascripts/application.js.coffee

+8-21
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
#= require raphael
3636
#= require g.raphael
3737
#= require g.bar
38-
#= require Chart
3938
#= require branch-graph
4039
#= require ace/ace
4140
#= require ace/ext-searchbox
@@ -163,19 +162,6 @@ $ ->
163162
$el.data('placement') || 'bottom'
164163
)
165164

166-
$('.header-logo .home').tooltip(
167-
placement: (_, el) ->
168-
$el = $(el)
169-
if $('.page-with-sidebar').hasClass('page-sidebar-collapsed') then 'right' else 'bottom'
170-
container: 'body'
171-
)
172-
173-
$('.page-with-sidebar').tooltip(
174-
selector: '.sidebar-collapsed .nav-sidebar a, .sidebar-collapsed a.sidebar-user'
175-
placement: 'right'
176-
container: 'body'
177-
)
178-
179165
# Form submitter
180166
$('.trigger-submit').on 'change', ->
181167
$(@).parents('form').submit()
@@ -208,6 +194,7 @@ $ ->
208194

209195
$('.navbar-toggle').on 'click', ->
210196
$('.header-content .title').toggle()
197+
$('.header-content .header-logo').toggle()
211198
$('.header-content .navbar-collapse').toggle()
212199
$('.navbar-toggle').toggleClass('active')
213200
$('.navbar-toggle i').toggleClass("fa-angle-right fa-angle-left")
@@ -226,6 +213,10 @@ $ ->
226213
form = btn.closest("form")
227214
new ConfirmDangerModal(form, text)
228215

216+
217+
$(document).on 'click', 'button', ->
218+
$(this).blur()
219+
229220
$('input[type="search"]').each ->
230221
$this = $(this)
231222
$this.attr 'value', $this.val()
@@ -238,7 +229,6 @@ $ ->
238229
$this.attr 'value', $this.val()
239230

240231
$sidebarGutterToggle = $('.js-sidebar-toggle')
241-
$navIconToggle = $('.toggle-nav-collapse')
242232

243233
$(document)
244234
.off 'breakpoint:change'
@@ -248,10 +238,6 @@ $ ->
248238
if $gutterIcon.hasClass('fa-angle-double-right')
249239
$sidebarGutterToggle.trigger('click')
250240

251-
$navIcon = $navIconToggle.find('.fa')
252-
if $navIcon.hasClass('fa-angle-left')
253-
$navIconToggle.trigger('click')
254-
255241
fitSidebarForSize = ->
256242
oldBootstrapBreakpoint = bootstrapBreakpoint
257243
bootstrapBreakpoint = bp.getBreakpointSize()
@@ -264,9 +250,10 @@ $ ->
264250
$(document).trigger('breakpoint:change', [bootstrapBreakpoint])
265251

266252
$(window)
267-
.off "resize"
268-
.on "resize", (e) ->
253+
.off "resize.app"
254+
.on "resize.app", (e) ->
269255
fitSidebarForSize()
270256

257+
gl.awardsHandler = new AwardsHandler()
271258
checkInitialSidebarSize()
272259
new Aside()

0 commit comments

Comments
 (0)