Dmitriy Zaporozhets
496f94de4a
Cache commits list
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-30 15:41:25 +02:00
Robert Speicher
ae75b2ee40
Remove requires-input from the Network Graph form
...
The "Begin with the selected commit" checkbox requires the submit button
to be enabled, even if the extended SHA1 input field is blank.
2015-06-26 22:49:32 -04:00
Robert Speicher
f6503f71f9
Remove disableButtonIf[Any]EmptyField calls from forms
...
These have been replaced by the "requiresInput" behavior.
2015-06-26 22:07:59 -04:00
Dmitriy Zaporozhets
342d553709
Rename abilities to correspond contoller/model action names
...
write_ was renamed to create_
modify_ was renamed to update_
So now in update action we have next code
def create
can?(current_user, :create_issue, @issue)
end
def update
can?(current_user, :update_issue, @issue)
end
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-26 15:55:56 +02:00
Dmitriy Zaporozhets
d5947ada44
Simplify set of assignee, milestone and label to admin_issue rule
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-26 15:45:45 +02:00
Dmitriy Zaporozhets
b9fa82daee
Update tests and use js-issuable class for context form
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-26 15:05:30 +02:00
Dmitriy Zaporozhets
2d31568b27
Refactor issue and merge request sidebar
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-25 16:04:50 +02:00
Dmitriy Zaporozhets
60baa1e866
Move issuable partials in common directory
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-25 15:11:22 +02:00
Dmitriy Zaporozhets
9c0229732a
Merge branch 'rs-random-placeholder-tip' into 'master'
...
Show a random Markdown tip in the textarea placeholder
cc @darby
See merge request !879
2015-06-25 08:59:54 +00:00
Dmitriy Zaporozhets
87fa392d7f
Merge branch 'project_icon_removal' into 'master'
...
Removed the icons from the New Issue and New Project buttons
Fixes #1869
No more icons!
See merge request !885
2015-06-25 08:38:30 +00:00
Dmitriy Zaporozhets
0c8b96bdbc
Merge branch 'performance-improvements' into 'master'
...
Performance improvements
* store @participants in variable
* store result of subscribed? call into variable
In total it reduce amount of SQL queries for issue or merge_request with 10 comments/participants almost twice.
See merge request !883
2015-06-25 08:14:03 +00:00
Darby
e94e23617a
Removed the icons from the New Issue and New Project buttons
2015-06-24 11:48:04 -07:00
Dmitriy Zaporozhets
a3f64b195e
Improve performance for merge_request#show page
...
* store @participants in variable
* store result of subscribed? call into variable
In total it reduce amount of SQL queries for merge_request with 10
comments/participants twice.
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-24 12:56:10 +02:00
Dmitriy Zaporozhets
a5f23435f7
Improve performance for issue#show page
...
* store @participants in variable
* store result of subscribed? call into variable
In total it reduce amount of SQL queries for issue with 10 comments/participants twice.
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-24 12:49:34 +02:00
Robert Speicher
82a671704d
Show a random Markdown tip in the textarea placeholder
2015-06-23 21:00:10 -04:00
Valery Sizov
af93d447b6
Explicit error when commit not found in the GitLab CI
2015-06-23 14:50:06 +03:00
Dmitriy Zaporozhets
cc9b5c49d1
Merge branch 'revert-mr-state-names'
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
features/steps/project/merge_requests.rb
2015-06-22 15:43:09 +02:00
Dmitriy Zaporozhets
eb972b71d0
Fix closed merge request scope at milestone page
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-22 12:10:52 +02:00
Dmitriy Zaporozhets
29b6d465a7
Merge branch 'rs-dev-issue-2355' into 'master'
...
MergeRequest#show performance improvements
This is a first pass on improving the performance of the `MergeRequests#show` page. Notable changes:
- The "Commits" tab is loaded lazily, so the initial page load should be much faster for MRs with many commits.
- Relative timestamps via `timeago` are only initialized once per load instead of `O(n^2)`. This greatly improves frontend rendering times for a large number of commits.
- Refactored `User.find_for_commit` to use a single ARel-generated SQL query instead of the old method which resulted in one query, and could result in up to three.
See merge request !838
2015-06-22 09:48:49 +00:00
Stan Hu
c8d4a408f8
Disable changing of target branch in new merge request page when a branch has already been specified
...
Closes #1830
2015-06-19 15:39:56 -07:00
Dmitriy Zaporozhets
7524d7c082
Revert merge request states renaming
...
Replaced:
* "Accepted" with "Merged"
* "Rejected" with "Closed"
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-19 17:09:50 +02:00
Darby
e2e8e384bb
Revert "Changed the placeholder text and modified the css class to make it visible"
...
This reverts commit c39c823421 .
2015-06-18 13:50:33 -07:00
Robert Speicher
1c4bf0e474
Use skip_js for commit timestamps
...
This greatly improves frontend rendering times.
2015-06-17 16:59:51 -04:00
Robert Speicher
bc027c5183
Load the Merge Request > Commits tab lazily
2015-06-17 16:59:51 -04:00
Robert Speicher
8c8cd8be43
Update time_ago_with_tooltip helper
...
Minor refactoring, add specs, changes arguments to use keywords.
2015-06-17 16:37:10 -04:00
Dmitriy Zaporozhets
1eb51e1706
Merge branch 'placeholder_text'
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
Gemfile.lock
2015-06-17 11:43:08 +02:00
Darby
c39c823421
Changed the placeholder text and modified the css class to make it visible
2015-06-16 14:44:13 -07:00
Robert Speicher
e3c1818a3e
Bootlint: Modals no longer need a '.hide' class
2015-06-16 13:32:33 -04:00
Robert Speicher
7400cfc114
Bootlint: Use offset grid classes instead of empty divs
2015-06-16 13:32:32 -04:00
Stan Hu
a7932fe2fd
Support commenting on a diff in side-by-side view
...
Closes https://github.com/gitlabhq/gitlabhq/issues/9283
2015-06-16 06:11:59 -07:00
Dmitriy Zaporozhets
f92d6e2423
Merge branch 'remove-activity-feed-text' into 'master'
...
Remove text since rss is now to prominent.
See merge request !1855
2015-06-12 10:41:50 +00:00
Sytse Sijbrandij
91ab3849bd
Remove text since rss is now to prominent.
2015-06-12 11:58:18 +02:00
Dmitriy Zaporozhets
21a62bb995
Merge branch 'refactor-mr-widget' into 'master'
...
Refactor accept merge request widget
* make each case a simple view
* separate merge request JS from merge request accept widget JS
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
See merge request !799
2015-06-12 08:22:13 +00:00
Dmitriy Zaporozhets
15cfa5ca20
Fix automerge
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-11 18:49:34 +02:00
Dmitriy Zaporozhets
946b4ceda3
Improve variables in mr widget
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-11 18:45:12 +02:00
Dmitriy Zaporozhets
00600a592b
Extract merge request widget JS to separate class
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-11 18:27:03 +02:00
Dmitriy Zaporozhets
d2d8037b1a
Refactor merge request widget step 2
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-11 15:14:50 +02:00
Dmitriy Zaporozhets
644b6ba993
Refactor accept merge request widget
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-11 09:40:26 +02:00
Robert Speicher
42ca87ebf7
Add negative tabindex to Markdown Write and Preview tabs
...
Closes #1757
2015-06-10 16:34:51 -04:00
Dmitriy Zaporozhets
3620849018
Improve project edit form
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-10 17:01:06 +02:00
Dmitriy Zaporozhets
d46d6fc17b
Improve UI for phones
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-08 16:54:39 +02:00
Dmitriy Zaporozhets
8641cda4a5
Dont use fixed pixel size if form controls - its bad for mobile devices
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-08 16:34:58 +02:00
Dmitriy Zaporozhets
9b77a4baf9
Dont truncate issue/mr title
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-08 16:33:33 +02:00
Dmitriy Zaporozhets
87f9c475db
Merge branch 'refactor-web-editor' into 'master'
...
Refactor web editor
* fix problem with editing non-master branch
* before commit make sure branch exists
* dont allow user change file in one branch and commit to another existing branch
* remove a lot of code duplication
* remove outdated statellite errors
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Fixes #1761
See merge request !773
2015-06-05 16:14:34 +00:00
Dmitriy Zaporozhets
5a026152b7
Merge branch 'warn-about-referenced-users' into 'master'
...
Show warning when a comment will add 10 or more people to the discussion.
Addresses internal issue https://dev.gitlab.org/gitlab/gitlabhq/issues/2054
New issue:

New comment:

See merge request !754
2015-06-05 13:37:08 +00:00
Dmitriy Zaporozhets
dfccb06dda
Refactor web editor
...
* fix problem with editing non-master branch
* before commit make sure branch exists
* dont allow user change file in one branch and commit to another existing branch
* remove a lot of code duplication
* remove outdated statellite errors
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-05 15:01:38 +02:00
Douwe Maan
bdfd163aa1
Add info about WIP merge requests to docs.
2015-06-05 13:12:55 +02:00
Douwe Maan
5256b5cc06
Prefer jQuery on to bind, and don't use .js class.
2015-06-05 12:13:02 +02:00
Douwe Maan
4ae67fcaef
Show warning when a comment will add 10 or more people to the discussion.
2015-06-05 12:07:13 +02:00
Dmitriy Zaporozhets
ef3e0931b9
Merge branch 'fix-no-labels-page' into 'master'
...
Omit link to generate labels if user does not have access to create them
On a project that has no labels, a user was provided a link to create labels on the "Labels" tab, resulting in a 404. This MR changes the next to "No labels created" if the user lands on this page but does not have permission to add a label.
Screenshot:

Closes https://github.com/gitlabhq/gitlabhq/issues/8353
See merge request !752
2015-06-04 15:56:13 +00:00