Commit 6af8547a authored by Valery Sizov's avatar Valery Sizov

[Issue board sorting] Set position for unpositioning issues when view[ci skip]

Actually I think we could avoid doing it so because it does not look efficient.
But we can improve it later.
parent 34bf798e
Pipeline #6708473 skipped
......@@ -8,6 +8,7 @@ module Projects
def index
issues =, current_user, filter_params).execute
issues =[:page]).per(params[:per] || 20)
render json: {
issues: serialize_as_json(issues),
......@@ -38,6 +39,12 @@ module Projects
def make_sure_position_is_set(issues)
issues.each do |issue|
issue.move_to_end unless issue.relative_position
def issue
@issue ||=, project_id:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment