summaryrefslogtreecommitdiff
path: root/app/controllers
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add support for destroying project milestonesStan Hu2015-07-171-1/+6
|/ | | | Closes https://github.com/gitlabhq/gitlabhq/issues/1504
* Allow user to specify content he wants to see on project pageproject-default-viewDmitriy Zaporozhets2015-07-131-0/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Merge branch 'rs-disable-2fa-by-admin' into 'master'Dmitriy Zaporozhets2015-07-131-0/+6
|\ | | | | | | | | | | | | | | | | | | Allow admins to disable 2FA for a user > ![Screen_Shot_2015-07-10_at_5.19.13_PM](https://gitlab.com/gitlab-org/gitlab-ce/uploads/3f9bb7c783110d2689c282879cb4b061/Screen_Shot_2015-07-10_at_5.19.13_PM.png) Depends on !961 See merge request !962
| * Add disable_two_factor route for Admin::UsersRobert Speicher2015-07-101-0/+6
| |
* | Merge branch 'rs-disable-2fa' into 'master'Dmitriy Zaporozhets2015-07-131-7/+1
|\ \ | |/ | | | | | | | | | | | | | | Add User#disable_two_factor! This method encapsulates all the logic for disabling 2FA on a specific User model. See merge request !961
| * Add User#disable_two_factor!rs-disable-2faRobert Speicher2015-07-101-7/+1
| | | | | | | | | | This method encapsulates all the logic for disabling 2FA on a specific User model.
* | Merge branch 'fix-api-project-transfer' into 'master'Dmitriy Zaporozhets2015-07-132-5/+7
|\ \ | | | | | | | | | | | | | | | | | | | | | Fix transferring of project to another group using the API. Addresses internal issue https://dev.gitlab.org/gitlab/gitlabhq/issues/2397. See merge request !926
| * | Fix transferring of project to another group using the API.Douwe Maan2015-07-112-5/+7
| | |
* | | Merge branch 'hsts-check-port-443' into 'master'Marin Jankovski2015-07-131-1/+4
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only enable HSTS header for HTTPS and port 443 ### What does this MR do? This MR adds a check that the port used is 443, in addition to HTTPS being enabled, when activating the HSTS header. ### Why was this MR needed? If a user is using a non-standard port for SSL, enabling this header would send clients to port 443 when that port is invalid. ### What are the relevant issue numbers? Closes https://github.com/gitlabhq/gitlabhq/issues/9449 See merge request !966
| * | Only enable HSTS header for HTTPS and port 443Stan Hu2015-07-121-1/+4
| | | | | | | | | | | | Closes https://github.com/gitlabhq/gitlabhq/issues/9449
* | | Better handle unknown projects and groups for autocompleteStan Hu2015-07-111-14/+23
|/ /
* | Fix user autocomplete for unauthenticated users accessing public projectsStan Hu2015-07-101-1/+5
|/ | | | Closes #1955
* Merge branch 'project-home-page'Dmitriy Zaporozhets2015-07-091-1/+0
|\
| * Show last push widget on several project pagesDmitriy Zaporozhets2015-07-081-1/+0
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Merge branch 'rs-issue-1750' into 'master'Dmitriy Zaporozhets2015-07-091-0/+1
|\ \ | |/ |/| | | | | | | | | | | Ensure `@sort` is set by set_filters_params Closes #1750 See merge request !943
| * Ensure `@sort` is set by set_filters_paramsrs-issue-1750Robert Speicher2015-07-081-0/+1
| | | | | | | | Closes #1750
* | Refactor star and fork buttonsDmitriy Zaporozhets2015-07-081-3/+4
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Move project activity to separate tab. Add more features to project home pageDmitriy Zaporozhets2015-07-071-7/+12
|/ | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Return 40x error codes if branch could not be deleted in UIStan Hu2015-07-061-2/+2
|
* Merge branch 'graphs-branch-switching' into 'master'Stan Hu2015-07-062-13/+20
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Add ref switching support for graphs It is now possible to view contributor and commit statistics for refs beyond the default branch. While the Git ref already was part of the path it has not been used before. Additionally, the code in RefsController#switch has been slighliy refactored since it would have become confusing with additional if-else branches added. See merge request !932
| * Add ref switching support for graphsDaniel Gerhardt2015-07-062-13/+20
| | | | | | | | | | | | | | | | It is now possible to view contributor and commit statistics for refs beyond the default branch. Additionally, conditions in RefsController#switch have been refactored in order that a `case` block is used now.
* | Merge branch 'audit_log' into 'master'Dmitriy Zaporozhets2015-07-063-2/+20
|\ \ | | | | | | | | | | | | | | | | | | | | | Audit log for user authentication https://dev.gitlab.org/gitlab/gitlabhq/issues/2318 See merge request !931
| * | Audit log for user authenticationValery Sizov2015-07-063-2/+20
| | |
* | | Merge branch 'add-irker-options' into 'master'Dmitriy Zaporozhets2015-07-061-1/+2
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Irker service configuration options ### What does this MR do? This MR makes a number of hard-coded Irker parameters configurable in the service settings: Irker server host, port, and default IRC URI. It also removes the "max recipient" limit since the recipient list is configurable only by the project owner, and it makes no sense to update the limit when it is implied in the recipient list already. ### Why was this MR needed? The existing service assumed that gitlab.com was running an Irker daemon on `localhost` when it was not. Using Irker on gitlab.com thus did not work at all. This MR allows users to provide their own Irker daemons. ### Are there points in the code the reviewer needs to double check? My main concern is whether allowing a user to specify the server/port combination would have security implications for a host. Given that HipChat and Slack allow users to do this, I didn't think this was doing anything novel. ### What are the relevant issue numbers? * Closes #1713 * Closes #1714 * Closes gitlab-com/support-forum#139 ### Screenshots ### Before ![image](https://gitlab.com/stanhu/gitlab-ce/uploads/2eb3eb815e249e9fb669fc97ecd4f3c8/image.png) ### After ![image](https://gitlab.com/gitlab-org/gitlab-ce/uploads/cceaba951c05bd3df2c842cc68046b87/image.png) See merge request !930
| * | Add Irker service configuration optionsStan Hu2015-07-051-1/+2
| |/ | | | | | | | | | | Closes #1713 Closes #1714 Closes gitlab-com/support-forum#139
* | Fix redirection to home page URL for unauthorized usersDaniel Gerhardt2015-07-031-1/+1
| | | | | | | | | | | | | | | | | | Redirection to the home page URL was broken by changing the target for `root_url` from `DashboardController` to `RootController` in 94d3c1433df9380ca83f1f35a540074ff0690410. This regression was introduced in the 7.12.0 release. Fixes #1916.
* | Merge branch 'add-unlock-access' into 'master'Dmitriy Zaporozhets2015-07-021-0/+8
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for unlocking users in admin settings ### What does this MR do? This MR gives the ability to unlock a user from the Admin panel. ### Why was this MR needed? If a user fails to login a certain number of times, Devise locks the user out for a certain amount of time (e.g. 10 minutes). There is no way for an admin to unlock a user if this happens (aside from editing the `locked_at` field entirely). ### Screenshots #### Admin index page ![image](https://gitlab.com/gitlab-org/gitlab-ce/uploads/14c661d1d1f026770997b19af714c514/image.png) #### Admin edit user page ![image](https://gitlab.com/gitlab-org/gitlab-ce/uploads/0c6f795757e5f03eeb923d818b7d6a96/image.png) ### What are the relevant issue numbers? This replaces !288. Closes https://github.com/gitlabhq/gitlabhq/issues/9381 See merge request !922
| * | Add support for unlocking users in admin settingsStan Hu2015-07-021-0/+8
| |/ | | | | | | Closes https://github.com/gitlabhq/gitlabhq/issues/9381
* | Correctly show anonymous authorized applications under Profile > Applications.Douwe Maan2015-07-022-2/+8
|/
* Merge branch 'group_settings_nav' into 'master'Douwe Maan2015-07-011-0/+2
|\ | | | | | | | | | | | | | | | | | | Fix consistency issue in sidebars of Project and Group Settings. Fixes #2277 ![before_after_group_settings_nav](https://dev.gitlab.org/gitlab/gitlabhq/uploads/370c701d0eff8f1f8e44cf954c75f2bf/before_after_group_settings_nav.png) See merge request !1871
| * Fix consistency issue in sidebars of Project and Group Settings.Nicolas2015-06-241-0/+2
| | | | | | | | Fixes #2277.
* | Update controller filtersDmitriy Zaporozhets2015-06-266-13/+13
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Rename abilities to correspond contoller/model action namesrename-abilitiesDmitriy Zaporozhets2015-06-265-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Improve performance for merge_request#show pageDmitriy Zaporozhets2015-06-241-0/+2
| | | | | | | | | | | | | | | | | | | | * 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>
* | Improve performance for issue#show pageDmitriy Zaporozhets2015-06-241-0/+1
|/ | | | | | | | | * 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>
* Merge branch 'admin-edit-identities' into 'master'Dmitriy Zaporozhets2015-06-232-1/+51
|\ | | | | | | | | | | | | | | | | | | Admin can see, edit and remove user identities Related to #1415 and https://dev.gitlab.org/gitlab/gitlabhq/issues/2224 Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> See merge request !843
| * Fix admin identities codeDmitriy Zaporozhets2015-06-231-1/+1
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Address review commentsDmitriy Zaporozhets2015-06-221-7/+5
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Merge branch 'master' into admin-edit-identitiesDmitriy Zaporozhets2015-06-225-7/+10
| |\ | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: app/views/admin/users/show.html.haml
| * | Refactor admin user pageDmitriy Zaporozhets2015-06-221-1/+10
| | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | Move identities list to own controller actionDmitriy Zaporozhets2015-06-191-4/+8
| | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | Add ability for admin to edit user identityDmitriy Zaporozhets2015-06-191-4/+22
| | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | Admin can see and remove user identitiesDmitriy Zaporozhets2015-06-191-0/+21
| | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | Fix error when deleting a user who has projectsStan Hu2015-06-232-2/+2
| |/ |/| | | | | | | Closes #1856 Closes https://github.com/gitlabhq/gitlabhq/issues/9394
* | Merge branch 'remove_unused_except' into 'master'Dmitriy Zaporozhets2015-06-221-2/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | projects doesn't seem to be a valid action in this controller Hi, This is just a tiny change. Let me know if I'm doing it wrong... Eaden See merge request !696
| * | projects doesn't seem to be a valid action in this controllerEaden2015-05-161-2/+2
| | |
* | | Merge branch 'rs-dev-issue-2355' into 'master'Dmitriy Zaporozhets2015-06-221-1/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | Load the Merge Request > Commits tab lazilyRobert Speicher2015-06-171-1/+4
| | | |
* | | | Use User#two_factor_enabled instead of otp_required_for_loginrs-dev-issue-2415Robert Speicher2015-06-193-4/+4
| |_|/ |/| |
* | | Merge branch 'fix-labels-permisssion-check' into 'master'Douwe Maan2015-06-182-7/+2
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | Fix 403 Access Denied error messages when accessing Labels section in a project This would occur if the project's issues or merge requests features were disabled. The change in 9bcd36396b9 caused `can?(current_user, :read_merge_request, project)` to be false if the merge request feature were disabled, so `authorize_labels!` needs to be changed accordingly. Closes #1813 See merge request !836