Skip to content
Snippets Groups Projects
Commit 63f38217 authored by Marin Jankovski's avatar Marin Jankovski
Browse files

Merge branch 'master' into reference_relative_links

Conflicts:
	spec/models/project_spec.rb

Former-commit-id: 54bcb6cc
parents 1302138b d1d13856
No related branches found
No related tags found
No related merge requests found
Showing
with 31 additions and 40 deletions
v 6.5.1
- Fix branch selectbox when create merge request from fork
v 6.5.0
- Dropdown menus on issue#show page for assignee and milestone (Jason Blanchard)
- Add color custimization and previewing to broadcast messages
Loading
Loading
Loading
Loading
@@ -14,7 +14,6 @@ gem "protected_attributes"
gem 'rails-observers'
gem 'actionpack-page_caching'
gem 'actionpack-action_caching'
gem 'activerecord-deprecated_finders'
 
# Supported DBs
gem "mysql2", group: :mysql
Loading
Loading
Loading
Loading
@@ -551,7 +551,6 @@ PLATFORMS
DEPENDENCIES
actionpack-action_caching
actionpack-page_caching
activerecord-deprecated_finders
acts-as-taggable-on
annotate (~> 2.6.0.beta2)
asciidoctor
Loading
Loading
Loading
Loading
@@ -73,7 +73,7 @@ Thanks for the issue report. Please reformat your issue to conform to the issue
 
### Feature requests
 
Thanks for your interest in GitLab. We don't use the GitHub issue tracker for feature requests. Please use http://feedback.gitlab.com/ for this purpose or create a merge request implementing this feature. Have a look at the \[contribution guidelines\]\(https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md) for more information.
Thanks for your interest in GitLab. We don't use the issue tracker for feature requests. Please use http://feedback.gitlab.com/ for this purpose or create a merge request implementing this feature. Have a look at the \[contribution guidelines\]\(https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md) for more information.
 
### Issue report for old version
 
Loading
Loading
@@ -81,7 +81,7 @@ Thanks for the issue report but we only support issues for the latest stable ver
 
### Support requests and configuration questions
 
Thanks for your interest in GitLab. We don't use the GitHub issue tracker for support requests and configuration questions. Please use the \[support forum\]\(https://groups.google.com/forum/#!forum/gitlabhq), \[Stack Overflow\]\(http://stackoverflow.com/questions/tagged/gitlab), the unofficial #gitlab IRC channel on Freenode or the http://www.gitlab.com paid services for this purpose. Have a look at the \[contribution guidelines\]\(https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md) for more information.
Thanks for your interest in GitLab. We don't use the issue tracker for support requests and configuration questions. Please use the \[support forum\]\(https://groups.google.com/forum/#!forum/gitlabhq), \[Stack Overflow\]\(http://stackoverflow.com/questions/tagged/gitlab), the unofficial #gitlab IRC channel on Freenode or the http://www.gitlab.com paid services for this purpose. Have a look at the \[contribution guidelines\]\(https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md) for more information.
 
### Code format
 
Loading
Loading
6.5.0
6.5.1
Loading
Loading
@@ -6,11 +6,10 @@
}
 
.login-box{
width: 304px;
max-width: 304px;
position: relative;
@include border-radius(5px);
margin: auto;
padding: 20px;
background: white;
}
 
Loading
Loading
@@ -23,7 +22,7 @@
background-color: #f1f1f1;
font-size: 16px;
padding: 14px 10px;
width: 280px;
width: 100%;
height: auto;
 
&.top {
Loading
Loading
Loading
Loading
@@ -89,16 +89,3 @@
.merge-request-form-info {
padding-top: 15px;
}
.merge-request-branches {
.commit-row-message {
font-weight: normal !important;
}
.select2-container .select2-single {
span {
font-weight: bold;
color: #555;
}
}
}
Loading
Loading
@@ -52,6 +52,6 @@ class Admin::GroupsController < Admin::ApplicationController
private
 
def group
@group = Group.find_by_path(params[:id])
@group = Group.find_by(path: params[:id])
end
end
Loading
Loading
@@ -5,7 +5,7 @@ class Admin::ProjectsController < Admin::ApplicationController
 
def index
owner_id = params[:owner_id]
user = User.find_by_id(owner_id)
user = User.find_by(id: owner_id)
 
@projects = user ? user.owned_projects : Project.all
@projects = @projects.where("visibility_level IN (?)", params[:visibility_levels]) if params[:visibility_levels].present?
Loading
Loading
Loading
Loading
@@ -100,6 +100,6 @@ class Admin::UsersController < Admin::ApplicationController
protected
 
def user
@user ||= User.find_by_username!(params[:id])
@user ||= User.find_by!(username: params[:id])
end
end
Loading
Loading
@@ -41,7 +41,7 @@ class DashboardController < ApplicationController
current_user.authorized_projects
end
 
@projects = @projects.where(namespace_id: Group.find_by_name(params[:group])) if params[:group].present?
@projects = @projects.where(namespace_id: Group.find_by(name: params[:group])) if params[:group].present?
@projects = @projects.where(visibility_level: params[:visibility_level]) if params[:visibility_level].present?
@projects = @projects.includes(:namespace)
@projects = @projects.tagged_with(params[:label]) if params[:label].present?
Loading
Loading
Loading
Loading
@@ -87,7 +87,7 @@ class GroupsController < ApplicationController
protected
 
def group
@group ||= Group.find_by_path(params[:id])
@group ||= Group.find_by(path: params[:id])
end
 
def projects
Loading
Loading
Loading
Loading
@@ -19,6 +19,6 @@ class Profiles::GroupsController < ApplicationController
private
 
def group
@group ||= Group.find_by_path(params[:id])
@group ||= Group.find_by(path: params[:id])
end
end
Loading
Loading
@@ -97,7 +97,7 @@ class Projects::IssuesController < Projects::ApplicationController
 
def issue
@issue ||= begin
@project.issues.find_by_iid!(params[:id])
@project.issues.find_by!(iid: params[:id])
rescue ActiveRecord::RecordNotFound
redirect_old
end
Loading
Loading
@@ -127,7 +127,7 @@ class Projects::IssuesController < Projects::ApplicationController
# To prevent 404 errors we provide a redirect to correct iids until 7.0 release
#
def redirect_old
issue = @project.issues.find_by_id(params[:id])
issue = @project.issues.find_by(id: params[:id])
 
if issue
redirect_to project_issue_path(@project, issue)
Loading
Loading
Loading
Loading
@@ -76,7 +76,6 @@ class Projects::MergeRequestsController < Projects::ApplicationController
@merge_request.author = current_user
@target_branches ||= []
if @merge_request.save
@merge_request.reload_code
redirect_to [@merge_request.target_project, @merge_request], notice: 'Merge request was successfully created.'
else
@source_project = @merge_request.source_project
Loading
Loading
@@ -152,6 +151,10 @@ class Projects::MergeRequestsController < Projects::ApplicationController
@target_project = selected_target_project
@target_branches = @target_project.repository.branch_names
@target_branches
respond_to do |format|
format.js
end
end
 
def ci_status
Loading
Loading
@@ -168,7 +171,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
end
 
def merge_request
@merge_request ||= @project.merge_requests.find_by_iid!(params[:id])
@merge_request ||= @project.merge_requests.find_by!(iid: params[:id])
end
 
def closes_issues
Loading
Loading
@@ -213,6 +216,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
# or from cache if already merged
@commits = @merge_request.commits
 
@merge_request_diff = @merge_request.merge_request_diff
@allowed_to_merge = allowed_to_merge?
@show_merge_controls = @merge_request.opened? && @commits.any? && @allowed_to_merge
end
Loading
Loading
Loading
Loading
@@ -76,7 +76,7 @@ class Projects::MilestonesController < Projects::ApplicationController
protected
 
def milestone
@milestone ||= @project.milestones.find_by_iid!(params[:id])
@milestone ||= @project.milestones.find_by!(iid: params[:id])
end
 
def authorize_admin_milestone!
Loading
Loading
Loading
Loading
@@ -26,7 +26,7 @@ class Projects::TeamMembersController < Projects::ApplicationController
end
 
def update
@user_project_relation = project.users_projects.find_by_user_id(member)
@user_project_relation = project.users_projects.find_by(user_id: member)
@user_project_relation.update_attributes(params[:team_member])
 
unless @user_project_relation.valid?
Loading
Loading
@@ -36,7 +36,7 @@ class Projects::TeamMembersController < Projects::ApplicationController
end
 
def destroy
@user_project_relation = project.users_projects.find_by_user_id(member)
@user_project_relation = project.users_projects.find_by(user_id: member)
@user_project_relation.destroy
 
respond_to do |format|
Loading
Loading
@@ -46,7 +46,7 @@ class Projects::TeamMembersController < Projects::ApplicationController
end
 
def leave
project.users_projects.find_by_user_id(current_user).destroy
project.users_projects.find_by(user_id: current_user).destroy
 
respond_to do |format|
format.html { redirect_to :back }
Loading
Loading
@@ -65,6 +65,6 @@ class Projects::TeamMembersController < Projects::ApplicationController
protected
 
def member
@member ||= User.find_by_username(params[:id])
@member ||= User.find_by(username: params[:id])
end
end
Loading
Loading
@@ -2,8 +2,8 @@ class SearchController < ApplicationController
include SearchHelper
 
def show
@project = Project.find_by_id(params[:project_id]) if params[:project_id].present?
@group = Group.find_by_id(params[:group_id]) if params[:group_id].present?
@project = Project.find_by(id: params[:project_id]) if params[:project_id].present?
@group = Group.find_by(id: params[:group_id]) if params[:group_id].present?
 
if @project
return access_denied! unless can?(current_user, :download_code, @project)
Loading
Loading
Loading
Loading
@@ -18,7 +18,7 @@ class SnippetsController < ApplicationController
end
 
def user_index
@user = User.find_by_username(params[:username])
@user = User.find_by(username: params[:username])
@snippets = @user.snippets.fresh.non_expired
 
if @user == current_user
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@ class UsersController < ApplicationController
layout 'navless'
 
def show
@user = User.find_by_username!(params[:username])
@user = User.find_by!(username: params[:username])
@projects = @user.authorized_projects.where(id: current_user.authorized_projects.pluck(:id)).includes(:namespace)
@events = @user.recent_events.where(project_id: @projects.map(&:id)).limit(20)
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment