Robert Speicher
e65b081062
Dynamically check :admin_* ability in issuable context
...
Closes #2001
2015-07-19 16:48:33 -04:00
Daniel Gerhardt
69417d36b2
Fix label read access for unauthenticated users
...
The label page was added to navigation for unauthorized users because
the previously used milestone read permission was still checked. This
has been fixed and read access to labels is now granted (again) for
public projects.
This regression has been introduced in
07efb17e10 (7.12).
See also 9bcd36396b .
Refs !836 , !842 .
2015-07-19 21:33:21 +02:00
Valery Sizov
e8aaf56803
Merge branch 'fix-mixed-color-preview' into 'master'
...
Fix bug where notes were being rendered with wrong color preferences due to caching
### What does this MR do?
This MR adds the user's color preferences as part of the caching key for notes.
### Why was this MR needed?
This should fix a bug introduced via 4d80360b where notes were being loaded from the cache without regard to the current user's color scheme.
### What are the relevant issue numbers?
Closes #2008
See merge request !994
2015-07-19 09:19:30 +00:00
Robert Speicher
f92bbd2f28
Show the first tab automatically on MergeRequests#new
...
Closes #2013
2015-07-18 18:05:07 -04:00
Robert Speicher
a364d4260d
Make username parameter for Users#show case-insensitive
...
Closes #2012
2015-07-18 17:54:56 -04:00
Stan Hu
682c0deffe
Remove redundant last push event if activity feed is set to main page
...
Closes #2009
2015-07-18 08:02:38 -07:00
Stan Hu
875d8e7f31
Fix bug where notes were being rendered with wrong color preferences due to caching
...
Closes #2008
2015-07-18 07:32:18 -07:00
Stan Hu
895d988d55
Merge branch 'fix-note-edit-upload-link' into 'master'
...
Fix file upload dialog for comment editing
This fixes the file upload dialog which currently works for new comments
but not for comment editing. The cause for this is a missing DOM class
which causes traversal to the dropzone to fail.
This is fixed by adding the expected `gfm-form` class to the edit form.
It has to be added dynamically since adding it to the form template
would break the form's layout and comment saving.
The following screenshot illustrates the issue:

See merge request !956
2015-07-18 06:06:59 +00:00
Stan Hu
f33fe50f0d
Disable internal issue tracker if external tracker in use
...
Closes #2006
2015-07-17 22:59:31 -07:00
Robert Speicher
4998f7a0b5
Merge branch 'fix-line-highlighter-link-click' into 'master'
...
Fix bug where clicking on the link icon on a file would result in "#Lundefined" in the URL
Closes #2002
See merge request !988
2015-07-18 00:39:08 +00:00
Daniel Gerhardt
7825001586
Fix file upload dialog for comment editing
...
This fixes the file upload dialog which currently works for new comments
but not for comment editing. The cause for this is a missing DOM class
which causes traversal to the dropzone to fail.
This is fixed by adding the expected `gfm-form` class to the edit form.
It has to be added dynamically since adding it to the form template
would break the form's layout and comment saving.
2015-07-17 21:15:52 +02:00
Stan Hu
a84ed6eb23
Merge branch 'add-support-remove-milestone' into 'master'
...
Add support for destroying project milestones
### What does this MR do?
This MR adds a "Remove" button to the project milestones page and the milestone page itself.
### Why was this MR needed?
Because lots of people talked about needing to clean their toilets. :)
### What are the relevant issue numbers?
Closes https://github.com/gitlabhq/gitlabhq/issues/1504
### Screenshots


See merge request !980
2015-07-17 17:15:27 +00:00
Dmitriy Zaporozhets
c413a5507d
Merge branch 'validate_token_and_url_format_for_gitlab_ci' into 'master'
...
Validate format of project_url and token for GitLab CI service.
If `project_url` and `token` for are invalid, [service_hook creation](https://gitlab.com/gitlab-org/gitlab-ce/blob/7-13-stable/app/models/project_services/gitlab_ci_service.rb#L30-34 ) will silently fail due to validation of URL in `WebHook`.
Given that token is a sequence of numbers and letters for GitLab CI making sure that there are no unexpected characters should be enough to prevent service_hook being nil.
Fixes #1997
See merge request !987
2015-07-17 16:25:03 +00:00
Dmitriy Zaporozhets
67fb9ef266
Merge branch 'even-faster-search' into 'master'
...
Avoid copy of strings in memory for parsing git grep result
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
See merge request !967
2015-07-17 16:22:45 +00:00
Stan Hu
5bac64552d
Fix bug where clicking on the link icon on a file would result in "L#undefined" in the URL
...
Closes #2002
2015-07-17 07:32:17 -07:00
Dmitriy Zaporozhets
67654a44d1
Avoid cache building for super-weird case when repository root_ref is nil
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-07-17 16:03:38 +02:00
Stan Hu
df2bb60f90
Add support for destroying project milestones
...
Closes https://github.com/gitlabhq/gitlabhq/issues/1504
2015-07-17 06:54:32 -07:00
Marin Jankovski
c3e35917fb
Validate format of project_url and token for GitLab CI service.
2015-07-17 15:26:09 +02:00
Dmitriy Zaporozhets
f0116f1335
Store commit count in project table
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-07-17 15:22:56 +02:00
Dmitriy Zaporozhets
67ca5a53f6
Build missing cache items in background job after each push
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-07-17 14:50:03 +02:00
Dmitriy Zaporozhets
989329c9d9
Fix refresh service
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-07-16 16:34:58 +02:00
Dmitriy Zaporozhets
971e47520f
Increase COMMITS_SAFE_SIZE to reasonable size in compare to diff limits. Fix reload with full diff link
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-07-16 16:32:43 +02:00
Dmitriy Zaporozhets
a7fded9b95
Huge refactoring for accepting merge requests
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-07-16 16:03:07 +02:00
Dmitriy Zaporozhets
26f5d6047d
Refactor compare and fetch logic
2015-07-15 17:28:09 +02:00
Dmitriy Zaporozhets
cb6f34e367
Implement update of ref when merge request code is reloaded
2015-07-15 16:52:50 +02:00
Dmitriy Zaporozhets
2a6f522cac
Implement merge from forks without satellites
2015-07-15 16:45:50 +02:00
Valery Sizov
d2479a25c7
Time ago fix for compare page
2015-07-15 16:59:31 +03:00
Dmitriy Zaporozhets
a87989fb7d
Remove satellites
2015-07-15 15:45:57 +02:00
Dmitriy Zaporozhets
277f311f20
Fetch reference from fork repo when create merge request
2015-07-15 15:27:14 +02:00
Dmitriy Zaporozhets
2280cb23d4
Merge branch 'nice-scroll-sidebar' into 'master'
...
Add nice scroll for sidebar
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
See merge request !978
2015-07-14 10:48:21 +00:00
Dmitriy Zaporozhets
98cb6256fa
Add nice scroll for sidebar
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-07-14 12:29:57 +02:00
Kamil Trzcinski
2def2cc60a
Hide scrollbar from sidebar when external mouse is connected to OSX
2015-07-14 12:02:42 +02:00
Dmitriy Zaporozhets
90e47dd949
Merge branch 'rs-issue-1773' into 'master'
...
Fix mentions not being created upon issue/merge request update
New cross-references weren't being added when they were made in an issue or merge request update.
This happened because the relevant `UpdateService`s were making the `notice_added_references` call
after the model had already been updated and saved, so the `changes` attribute was empty and no
cross-references were made at all.
This fixes the bug and adds a bit of testing and a bit of refactoring.
Closes #1773
See merge request !974
2015-07-14 08:40:08 +00:00
Dmitriy Zaporozhets
5c53dc5a1e
Merge branch 'project-default-view' into 'master'
...
Allow user to specify content he wants to see on project page
Improvement to !938 . Since a lot of people complain on fact they don't like to see README.
Especially since we already have a switcher for dashboard - it kind of acceptable to select behaviour.
User can specify which content he/she wants to see:


cc @JobV @jacobvosmaer @marin @sytses
See merge request !970
2015-07-14 08:30:46 +00:00
Robert Speicher
f3d4767d0c
Rename notice_added_references to create_new_cross_references!
2015-07-13 21:31:16 -04:00
Robert Speicher
e4c698fd5c
Refactor Mentionable#notice_added_references
...
It now accounts for models that have changed but have already been
persisted, such as when called from an UpdateService.
Closes #1773
2015-07-13 21:31:00 -04:00
Dmitriy Zaporozhets
fd84567545
Improve project new item dropdown
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-07-13 23:36:21 +02:00
Dmitriy Zaporozhets
59d7f4c97f
Merge branch 'use_password_field_defaults_for_services' into 'master'
...
Use password field defaults for services
Previously we masked the password field manually. After the refactor that services page received we can use `password_field` default masking.
Fixes internal https://dev.gitlab.org/gitlab/gitlab-ee/issues/314
See merge request !969
2015-07-13 18:10:08 +00:00
Dmitriy Zaporozhets
13e987a6de
Merge branch 'project-dropdown' into 'master'
...
Add dropdown to quickly create issue or branch from project page
because just 'new issue' link is not valid for all users. A lot of people use external issue tracker. So I grouped several links under one button


cc @JobV @marin @jacobvosmaer @sytses
See merge request !971
2015-07-13 17:53:27 +00:00
Dmitriy Zaporozhets
24ecc9049f
Increase padding between menu items a bit
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-07-13 19:24:41 +02:00
Dmitriy Zaporozhets
a839b2afc4
Make sidebar scrollable. It prevents content overflow for small screens
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-07-13 19:23:15 +02:00
Dmitriy Zaporozhets
67c17df221
Better wording for project dropdown
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-07-13 19:04:48 +02:00
Dmitriy Zaporozhets
78a94027ea
Add dropdown to quickly create issue or branch from project page
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-07-13 18:42:07 +02:00
Dmitriy Zaporozhets
5f34759ecb
Allow user to specify content he wants to see on project page
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-07-13 18:24:15 +02:00
Marin Jankovski
057d45fb23
Use password field default password masking.
2015-07-13 13:32:14 +02:00
Dmitriy Zaporozhets
62da53af33
Hide icon for bact-to-location menu in sidebar
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-07-13 11:56:08 +02:00
Dmitriy Zaporozhets
00053c805c
Merge branch 'ssh-key-linebreaks' into 'master'
...
Add error message for SSH key linebreaks
Solves this [request](http://feedback.gitlab.com/forums/176466-general/suggestions/5653544-check-for-linebreaks-in-ssh-key ).
See merge request !672
2015-07-13 09:33:55 +00:00
Dmitriy Zaporozhets
bbd3d2c39d
Avoid copy of strings in memory for parsing git grep result
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-07-13 11:27:25 +02:00
Dmitriy Zaporozhets
98291295a7
Merge branch 'rs-issue-1908' into 'master'
...
Add Safari/iOS and Windows 8 logo information
Now that we've got our 🔥 new logo, let's spread it around a bit more!
Closes #1908
See merge request !944
2015-07-13 08:54:56 +00:00
Dmitriy Zaporozhets
f194fd848b
Merge branch 'vis_btn_color_change' into 'master'
...
Changed the color of admin/application_settings buttons
Now they look like this: 
gray when selected, white when not.
See merge request !887
2015-07-13 08:53:38 +00:00