Skip to content

Commit

Permalink
Task order is governed by nested_set instead of acts_as_list, so next…
Browse files Browse the repository at this point in the history
…_higher becomes right_sibling
  • Loading branch information
Emiliano Heyns authored and Emiliano Heyns committed Aug 25, 2010
1 parent 43b3f65 commit c088f1c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
Empty file modified app/views/tasks/_impediment.html.erb 100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions app/views/tasks/_task.html.erb
Expand Up @@ -11,12 +11,12 @@
<div class="meta">
<div class="story_id"><%= task.parent_id %></div>
<div class="status_id"><%= task.status_id %></div>
<div class="previous"><%= task.higher_item.nil? ? '' : task.higher_item.id %></div>
<div class="previous"><%= task.right_sibling.nil? ? '' : task.right_sibling.id %></div>
<div class="errors">
<%- task.errors.each_error do |a, err| %>
<div><%= "#{l(a)} #{l(err.type)}" %></div>
<%- end %>
</div>
</div>
<%- end %>
</div>
</div>
Empty file modified features/step_definitions/common_steps.rb 100644 → 100755
Empty file.
Empty file modified features/team_member.feature 100644 → 100755
Empty file.
Empty file modified features/team_member_steps.rb 100644 → 100755
Empty file.
4 changes: 4 additions & 0 deletions lib/backlogs_query_patch.rb
Expand Up @@ -21,6 +21,10 @@ def self.included(base) # :nodoc:
# sprint name, in case start dates are the same
"(select name from versions where versions.id = issues.fixed_version_id)",

# make sure stories with NULL
# position sort-last
"(select case when root.position is null then 1 else 0 end from issues root where issues.root_id = root.id)",

# story position
"(select root.position from issues root where issues.root_id = root.id)",

Expand Down

0 comments on commit c088f1c

Please sign in to comment.