Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
f0b3092
Recommend issue name.
maxlazio May 19, 2014
971dc47
Fix typo.
maxlazio May 19, 2014
0660183
Renamed based on suggestion Martijn.
dosire May 20, 2014
114e675
The 4.0 raketask is no longer needed and rebuilding of missing satell…
dosire May 22, 2014
0957f34
Updates for the monthly release document.
maxlazio May 22, 2014
b6a88c7
Update casing of gitlab.com.
maxlazio May 22, 2014
d2e9294
add newsletter to release doc
JobV May 19, 2014
ab126c8
Add proposed email for mailchimp.
maxlazio May 22, 2014
6a85cdf
Implements drag and drop upload in creating issues
May 23, 2014
fc86165
Merge pull request #7011 from erbunao/drag-and-drop_markdown
dzaporozhets May 23, 2014
8ec38c1
Mention changes to protected branches
dzaporozhets May 23, 2014
8ae2d21
Fix branch protection help doc
dzaporozhets May 23, 2014
a5e1624
Redirect to tree view after branch created
dzaporozhets May 23, 2014
b44138a
Branch link on branches page goes to tree view instead of commits
dzaporozhets May 23, 2014
695fd3c
Move protected branches to Project settings
dzaporozhets May 23, 2014
484c097
Fix tests
dzaporozhets May 23, 2014
c5922ca
Don't forget to update the changelog.
dosire May 23, 2014
c1da50c
Merge branch 'remove-features-raketask' into 'master'
dzaporozhets May 23, 2014
66c9fa9
Merge branch 'merge-marshal' into 'master'
dzaporozhets May 23, 2014
8efc80e
Add threaded emails to changelog.
dosire May 23, 2014
6990f8a
Replace jquery deprecated .live with .on
maxlazio May 23, 2014
68942db
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq
maxlazio May 23, 2014
7f84ba8
Project visibility setting is missed by people sometimes.
dosire May 23, 2014
d575ee3
Improve branch deletion via API
dzaporozhets May 23, 2014
a56e35e
Merge branch 'api-branch-deletion' into 'master'
dzaporozhets May 23, 2014
245c04c
Change the license to B.V.
dosire May 23, 2014
c8abf22
Merge branch 'license-to-bv' into 'master'
dzaporozhets May 23, 2014
d906f19
Merge branch 'move-protected-branches' into 'master'
dzaporozhets May 23, 2014
de7d93e
Merge branch 'branch-creation-flow' into 'master'
dzaporozhets May 23, 2014
a502a2b
Merge branch 'missing-items-changelog' into 'master'
dzaporozhets May 23, 2014
09fc3df
Merge branch 'explain-setting' into 'master'
dzaporozhets May 23, 2014
3e1853c
More stuff to CHANGELOG
dzaporozhets May 23, 2014
cc28b21
Add drag-n-drop to CHANGELOG
dzaporozhets May 24, 2014
0853eeb
Improve comments css
dzaporozhets May 24, 2014
5cfaf94
Improve notes form UI/UX
dzaporozhets May 24, 2014
50f3280
Remove unused css
dzaporozhets May 24, 2014
7c6a58a
Merge branch 'ui-improvements' into 'master'
dzaporozhets May 24, 2014
1bb9aeb
Fix specs. Fix note form reset after submit
dzaporozhets May 24, 2014
5a1429a
Fix branches tests
dzaporozhets May 24, 2014
bbc4b2b
Fix help tests
dzaporozhets May 24, 2014
ef933ae
Even more tests fixed :)
dzaporozhets May 24, 2014
cc1dd32
Add pkgr.io to readme one-click installation methods
axilleas May 24, 2014
2a8aa74
Merge branch 'monthly_doc_update' into 'master'
maxlazio May 26, 2014
23bcb9c
A regressions issue to improve communication.
dosire May 26, 2014
9f6709d
Have the issue for the entire monthly time.
dosire May 26, 2014
f39d8a8
Add any known bugs.
dosire May 26, 2014
1748073
Correct typo.
dosire May 26, 2014
d4b61a6
Merge branch 'add_pkgrio_to_readme' into 'master'
dosire May 26, 2014
8bec6b0
Make existing tests test something, return correct errors.
maxlazio May 26, 2014
13233d6
Merge branch 'regression-issue' into 'master'
dosire May 26, 2014
3b2b3cf
Move logic to image_service.
maxlazio May 26, 2014
f441436
Add compare branches endpoint to API
dzaporozhets May 26, 2014
75e90cb
Push to all remotes doc.
dosire May 26, 2014
c7a5530
Small layout improvements.
dosire May 26, 2014
f8a6d34
Add image_service spec.
maxlazio May 26, 2014
fe10f37
Add default arguments, name gitlab repo gl, suggest dotfile repo.
dosire May 26, 2014
43e7b8f
Remove empty space
maxlazio May 26, 2014
9b2a134
Need txt file in test.
maxlazio May 26, 2014
040b3be
Give a hint where to find the email settings.
dosire May 26, 2014
2422918
Add some tests to compare api
dzaporozhets May 26, 2014
b2ec09e
Specify what version to test manually.
dosire May 26, 2014
c267d18
Merge branch 'test-ee' into 'master'
dzaporozhets May 26, 2014
e03a2fa
Merge branch 'email-hint' into 'master'
dzaporozhets May 26, 2014
21649ca
Merge branch 'fix/drag_and_drop_image_tests' into 'master'
dzaporozhets May 26, 2014
f486588
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
dzaporozhets May 26, 2014
7ad5fb5
Merge branch 'push-release-doc' into 'master'
dzaporozhets May 26, 2014
52c3179
Do not replace links inside code blocks, less code for the same amoun…
maxlazio May 20, 2014
603e04b
Make sure slashes are handled properly.
maxlazio May 20, 2014
281643a
Add feature spec.
maxlazio May 23, 2014
e426d43
Check return system value for gitlab test rake tasks
dzaporozhets May 26, 2014
c456231
Use css truncation on dashboard
dzaporozhets May 26, 2014
c9020ae
Fix test.rake
dzaporozhets May 26, 2014
1e7fa8d
Fix syntax error
dzaporozhets May 27, 2014
aef2122
Merge branch 'css-truncation' into 'master'
dzaporozhets May 27, 2014
7c5d96c
Merge branch 'improve-gitlab-test' into 'master'
dzaporozhets May 27, 2014
e918ae2
Merge branch 'no_link_inside_code_block' into 'master'
dzaporozhets May 27, 2014
f4889f5
Add entry to changelog.
maxlazio May 27, 2014
10ee137
Expose timeout and same_ref compare fields
dzaporozhets May 27, 2014
c7e00ac
Better specs for Compare API
dzaporozhets May 27, 2014
d7b3bbf
Make MR dicussion and changes tabs more noticable
dzaporozhets May 27, 2014
b60226a
Merge branch 'improve-mr-tabs' into 'master'
dzaporozhets May 27, 2014
3553e36
Merge branch 'review-changelog' into 'master'
maxlazio May 27, 2014
3bdf0e2
Merge branch 'compare-api' into 'master'
dzaporozhets May 27, 2014
f22c709
Add titles to doc pages.
maxlazio May 27, 2014
046647a
Add directions on how to upgrade gitlab-shell in the upgrader guide.
maxlazio May 27, 2014
c8b58f0
Cherry-pick the changelog additions into master.
dosire May 27, 2014
7dfb678
Revert "Actually use the 'user_filter' configuration option"
jacobvosmaer May 27, 2014
cee8850
Fix typo in text.
maxlazio May 27, 2014
cb4b504
Merge branch 'merge-patch-changelog-back-into-master' into 'master'
maxlazio May 27, 2014
2341cef
Move from script to bin directory.
maxlazio May 27, 2014
c862bc6
Merge branch 'ldap_user_filter_fix' into 'master'
dzaporozhets May 27, 2014
19ea362
Merge branch 'add_titles_to_help_pages' into 'master'
dzaporozhets May 27, 2014
d25bc25
Merge branch 'gitlab_shell_in_upgrader_guide' into 'master'
dzaporozhets May 27, 2014
affd376
Dont show remove source branch ckecbox/button if you dont have such
dzaporozhets May 27, 2014
3682e72
Merge branch 'move_script_to_bin' into 'master'
dzaporozhets May 27, 2014
6bd114a
Merge branch 'remove-branch-btn' into 'master'
dzaporozhets May 27, 2014
c53f076
Implements and refactors clipboard feature for markdown.
erbunao May 26, 2014
1df3c9b
minor fix
erbunao May 27, 2014
331c250
wdlakjlds
erbunao May 28, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ v 7.0.0
- The CPU no longer overheats when you hold down the spacebar
- Improve edit file UI
- Add ability to upload group avatar when create
- Protected branch cannot be removed
- Developers can remove normal branches with UI
- Remove branch via API (sponsored by O'Reilly Media)
- Move protected branches page to Project settings area
- Redirect to Files view when create new branch via UI
- Drag and drop upload of image in every markdown-area (Earle Randolph Bunao and Neil Francis Calabroso)
- Refactor the markdown relative links processing

v 6.9.0
- Store Rails cache data in the Redis `cache:gitlab` namespace
Expand All @@ -24,6 +31,7 @@ v 6.9.0
- Add more access checks during API calls
- Block SSH access for 'disabled' Active Directory users
- Labels for merge requests (Drew Blessing)
- Threaded emails by setting a Message-ID (Philip Blatter)

v 6.8.0
- Ability to at mention users that are participating in issue and merge req. discussion
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ If you can, please submit a merge request with the fix or improvements including
1. Be prepared to answer questions and incorporate feedback even if requests for this arrive weeks or months after your MR submittion
1. If your MR touches code that executes shell commands, make sure it adheres to the [shell command guidelines]( doc/development/shell_commands.md).

The **official merge window** is in the beginning of the month from the 1st to the 7th day of the month. The best time to submit a MR and get feedback fast. Before this time the GitLab.com team is still dealing with work that is created by the monthly release such as assisting subscribers with upgrade issues, the release of Enterprise Edition and the upgrade of GitLab Cloud. After the 7th it is already getting closer to the release date of the next version. This means there is less time to fix the issues created by merging large new features.
The **official merge window** is in the beginning of the month from the 1st to the 7th day of the month. The best time to submit a MR and get feedback fast. Before this time the GitLab B.V. team is still dealing with work that is created by the monthly release such as assisting subscribers with upgrade issues, the release of Enterprise Edition and the upgrade of GitLab Cloud. After the 7th it is already getting closer to the release date of the next version. This means there is less time to fix the issues created by merging large new features.

Please keep the change in a single MR **as small as possible**. If you want to contribute a large feature think very hard what the minimum viable change is. Can you split functionality? Can you only submit the backend/API code? Can you start with a very simple UI? The smaller a MR is the more likely it is it will be merged, after that you can send more MR's to enhance it.

Expand Down
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ gem "haml-rails"
# Files attachments
gem "carrierwave"

# Drag and Drop UI
gem 'dropzonejs-rails'

# for aws storage
gem "fog", "~> 1.14", group: :aws
gem "unf", group: :aws
Expand Down
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ GEM
diffy (3.0.3)
docile (1.1.1)
dotenv (0.9.0)
dropzonejs-rails (0.4.14)
rails (> 3.1)
email_spec (1.5.0)
launchy (~> 2.1)
mail (~> 2.2)
Expand Down Expand Up @@ -579,6 +581,7 @@ DEPENDENCIES
devise (= 3.0.4)
devise-async (= 0.8.0)
diffy (~> 3.0.3)
dropzonejs-rails
email_spec
email_validator (~> 1.4.0)
enumerize
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2011-2014 Dmitriy Zaporozhets
Copyright (c) 2011-2014 GitLab B.V.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion PROCESS.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Below we describe the contributing process to GitLab for two reasons. So that co
- Monitors all issues for feedback (but especially ones commented on since automatically watching them)
- Closes issues with no feedback from the reporter for two weeks

### Merge request officers
### Merge marshal

- Responds to merge requests the issue team mentions them in and monitors for new merge requests
- Provides feedback to the merge request submitter to improve the merge request (style, tests, etc.)
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@

* [Cloud 66 deployment and management](http://blog.cloud66.com/installing-gitlab-ubuntu/) Use Cloud 66 to deploy GitLab to your own server or any cloud (eg. DigitalOcean, AWS, Rackspace, GCE) and then manage it with database backups, scaling and more.

* [Pkgr.io one-click installer](https://pkgr.io/apps/gitlabhq/gitlabhq) Currently supporting Ubuntu 14.04, Ubuntu 12.04 and Debian 7.4. For more information check the [README](https://gitlab.com/gitlab-org/gitlab-recipes/blob/master/install/pkgr/README.md) at gitlab-recipes repo.

#### Unofficial installation methods

* [GitLab recipes](https://gitlab.com/gitlab-org/gitlab-recipes/) repository with unofficial guides for using GitLab with different software (operating systems, webservers, etc.) than the official version.
Expand Down Expand Up @@ -106,7 +108,7 @@ Start it with [Foreman](https://github.com/ddollar/foreman)
or start each component separately

bundle exec rails s
script/background_jobs start
bin/background_jobs start

And surf to [localhost:3000](http://localhost:3000/) and login with root / 5iveL!fe

Expand Down
1 change: 1 addition & 0 deletions app/assets/javascripts/application.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#= require underscore
#= require nprogress
#= require nprogress-turbolinks
#= require dropzone
#= require_tree .

window.slugify = (text) ->
Expand Down
4 changes: 0 additions & 4 deletions app/assets/javascripts/behaviors/toggler_behavior.coffee
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
$ ->
$("body").on "click", ".js-toggler-target", ->
container = $(@).closest(".js-toggler-container")
container.toggleClass("on")

# Toggle button. Show/hide content inside parent container.
# Button does not change visibility. If button has icon - it changes chevron style.
#
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/commits.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CommitsList
$('.loading').hide()

@init: (ref, limit) ->
$(".day-commits-table li.commit").live 'click', (event) ->
$("body").on "click", ".day-commits-table li.commit", (event) ->
if event.target.nodeName != "A"
location.href = $(this).attr("url")
e.stopPropagation()
Expand Down
178 changes: 178 additions & 0 deletions app/assets/javascripts/markdown_area.js.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
$(document).ready ->
alertClass = "alert alert-danger alert-dismissable div-dropzone-alert"
alertAttr = "class=\"close\" data-dismiss=\"alert\"" + "aria-hidden=\"true\""
divHover = "<div class=\"div-dropzone-hover\"></div>"
divSpinner = "<div class=\"div-dropzone-spinner\"></div>"
divAlert = "<div class=\"" + alertClass + "\"></div>"
iconPicture = "<i class=\"icon-picture div-dropzone-icon\"></i>"
iconSpinner = "<i class=\"icon-spinner icon-spin div-dropzone-icon\"></i>"
btnAlert = "<button type=\"button\"" + alertAttr + ">&times;</button>"
project_image_path_upload = window.project_image_path_upload or null

$("textarea.markdown-area").wrap "<div class=\"div-dropzone\"></div>"
$(".div-dropzone").parent().addClass "div-dropzone-wrapper"
$(".div-dropzone").append divHover
$(".div-dropzone-hover").append iconPicture
$(".div-dropzone").append divSpinner
$(".div-dropzone-spinner").append iconSpinner

dropzone = $(".div-dropzone").dropzone(
url: project_image_path_upload
dictDefaultMessage: ""
clickable: true
paramName: "markdown_img"
maxFilesize: 10
uploadMultiple: false
acceptedFiles: "image/jpg,image/jpeg,image/gif,image/png"
headers:
"X-CSRF-Token": $("meta[name=\"csrf-token\"]").attr("content")

previewContainer: false

processing: ->
closeAlertMessage()

dragover: ->
$(".div-dropzone > textarea").addClass "div-dropzone-focus"
$(".div-dropzone-hover").css "opacity", 0.7
return

dragleave: ->
$(".div-dropzone > textarea").removeClass "div-dropzone-focus"
$(".div-dropzone-hover").css "opacity", 0
return

drop: ->
$(".div-dropzone > textarea").removeClass "div-dropzone-focus"
$(".div-dropzone-hover").css "opacity", 0
$(".div-dropzone > textarea").focus()
return

success: (header, response) ->
appendToTextArea(formatLink(response.link))
return

error: (temp, errorMessage) ->
showError(errorMessage)
return

sending: ->
showSpinner()
return

complete: ->
$(".dz-preview").remove()
$(".markdown-area").trigger "input"
closeSpinner()
return
)

child = $(dropzone[0]).children("textarea")

formatLink = (str) ->
"![" + str.alt + "](" + str.url + ")"

handlePaste = (e) ->
e.preventDefault()
my_event = e.originalEvent

if my_event.clipboardData and my_event.clipboardData.items
i = 0
console.log my_event.clipboardData.items[0]
while i < my_event.clipboardData.items.length
item = my_event.clipboardData.items[i]
processItem(my_event, item)
i++

processItem = (e, item) ->
console.log e.clipboardData.items.length
console.log isImage(item)
if isImage(item)
filename = getFilename(e) or "image.png"
text = "{{" + filename + "}}"
pasteText(text)
uploadFile item.getAsFile(), filename
else if e.clipboardData.items.length == 1
text = e.clipboardData.getData("text/plain")
pasteText(text)

isImage = (item) ->
if item
item.type.indexOf("image") isnt -1

pasteText = (text) ->
caretStart = $(child)[0].selectionStart
caretEnd = $(child)[0].selectionEnd
textEnd = $(child).val().length

beforeSelection = $(child).val().substring 0, caretStart
afterSelection = $(child).val().substring caretEnd, textEnd
$(child).val beforeSelection + text + afterSelection
$(".markdown-area").trigger "input"

getFilename = (e) ->
if window.clipboardData and window.clipboardData.getData
value = window.clipboardData.getData("Text")
else if e.clipboardData and e.clipboardData.getData
value = e.clipboardData.getData("text/plain")

value = value.split("\r")
value.first()

uploadFile = (item, filename) ->
formData = new FormData()
formData.append "markdown_img", item, filename
$.ajax
url: project_image_path_upload
type: "POST"
data: formData
dataType: "json"
processData: false
contentType: false
headers:
"X-CSRF-Token": $("meta[name=\"csrf-token\"]").attr("content")

beforeSend: ->
showSpinner()
closeAlertMessage()

success: (e, textStatus, response) ->
insertToTextArea(filename, formatLink(response.responseJSON.link))

error: (response) ->
showError(response.responseJSON.message)

complete: ->
closeSpinner()

insertToTextArea = (filename, url) ->
$(child).val (index, val) ->
val.replace("{{" + filename + "}}", url + "\n")

appendToTextArea = (url) ->
$(child).val (index, val) ->
val + url + "\n"

showSpinner = (e) ->
$(".div-dropzone-spinner").css "opacity", 0.7

closeSpinner = ->
$(".div-dropzone-spinner").css "opacity", 0

showError = (message) ->
checkIfMsgExists = $(".error-alert").children().length
if checkIfMsgExists is 0
$(".error-alert").append divAlert
$(".div-dropzone-alert").append btnAlert + message

closeAlertMessage = ->
$(".div-dropzone-alert").alert "close"

$(".markdown-selector").click (e) ->
e.preventDefault()
$(".div-dropzone").click()
return

$(".div-dropzone").on "paste", handlePaste

return
12 changes: 6 additions & 6 deletions app/assets/javascripts/merge_request.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ class MergeRequest
, 'json'

bindEvents: ->
this.$('.nav-tabs').on 'click', 'a', (event) =>
this.$('.merge-request-tabs').on 'click', 'a', (event) =>
a = $(event.currentTarget)

href = a.attr('href')
History.replaceState {path: href}, document.title, href

event.preventDefault()

this.$('.nav-tabs').on 'click', 'li', (event) =>
this.$('.merge-request-tabs').on 'click', 'li', (event) =>
this.activateTab($(event.currentTarget).data('action'))

this.$('.accept_merge_request').on 'click', ->
Expand All @@ -71,15 +71,15 @@ class MergeRequest
this.$('.remove_source_branch_widget.failed').show()

activateTab: (action) ->
this.$('.nav-tabs li').removeClass 'active'
this.$('.merge-request-tabs li').removeClass 'active'
this.$('.tab-content').hide()
switch action
when 'diffs'
this.$('.nav-tabs .diffs-tab').addClass 'active'
this.$('.merge-request-tabs .diffs-tab').addClass 'active'
this.loadDiff() unless @diffs_loaded
this.$('.diffs').show()
else
this.$('.nav-tabs .notes-tab').addClass 'active'
this.$('.merge-request-tabs .notes-tab').addClass 'active'
this.$('.notes').show()

showState: (state) ->
Expand Down Expand Up @@ -107,7 +107,7 @@ class MergeRequest
loadDiff: (event) ->
$.ajax
type: 'GET'
url: this.$('.nav-tabs .diffs-tab a').attr('href')
url: this.$('.merge-request-tabs .diffs-tab a').attr('href')
beforeSend: =>
this.$('.status').addClass 'loading'
complete: =>
Expand Down
Loading