Ticket #179 (new 1)

Opened 2 years ago

Last modified 1 year ago

[PATCH] add re-sorting and reparenting to radiant

Reported by: Erik Ordway <eriko@jumpsuit.org> Assigned to: somebody
Priority: 1 Milestone:
Component: 1 Keywords:
Cc:

Description

This addes five movements to pages: Sorts #1 Sort up in container #2 Sort down in container Reparenting #3 Become a child of one of my parents siblings #4 Become a child of one of my siblings #5 Become a sibling of my parent

Sorting is via a sort attribute. On creation each page is assigned a sort_id from a bottomless pool. Changes in the sort are via swaping sort_id's with the next page in the proper direction.

Reparenting is constrained to those movements that make sense. The root node can not be preparented. moves that there is no where to move to are also blocked at the UI level

Steps needed to use this: # run migrate to add column and add sort table # set sort id's for existing pages " update pages set sort_id = id;" wroks on postgresql and maintains the orginal sorting order # set the sequence used by the sort table to the id after the last assigned one in the pages table. OR for other DB file the sort table to the same point as pages table # put the icons inplace.

I icons I used are ugly

Attachments

sorting_and_reparenting.diff (18.7 kB) - added by Erik Ordway <eriko@jumpsuit.org> on 07/31/06 12:19:53.
sorting and reparenting diff
noop.png (0.7 kB) - added by Erik Ordway <eriko@jumpsuit.org> on 07/31/06 12:20:43.
noop image
small-down14.png (366 bytes) - added by Erik Ordway <eriko@jumpsuit.org> on 07/31/06 12:21:01.
down image
small-next14.png (355 bytes) - added by Erik Ordway <eriko@jumpsuit.org> on 07/31/06 12:21:19.
reparent image
small-up14.png (361 bytes) - added by Erik Ordway <eriko@jumpsuit.org> on 07/31/06 12:21:39.
down image
sorting_and_reparenting.2.diff (18.2 kB) - added by Erik Ordway <eriko@jumpsuit.org> on 07/31/06 16:18:13.
fixes a few bugs and WARNING removes to sort processing of the sort order attribute in the radius specified tag
sorting_and_reparenting.3.diff (17.8 kB) - added by Erik Ordway <eriko@jumpsuit.org> on 07/31/06 16:31:03.
remove chagne that needed warning
default_to_sort_id.diff (451 bytes) - added by Erik Ordway <eriko@jumpsuit.org> on 07/31/06 17:17:28.
changes page_context.rb to use sort_id as the default attribute to sort on
sorting_and_reparenting.4.diff (16.5 kB) - added by Erik Ordway <eriko@jumpsuit.org> on 08/03/06 13:45:38.
all of above plus adds migration laogic to assign and create sort_id s

Change History

07/31/06 12:19:53 changed by Erik Ordway <eriko@jumpsuit.org>

  • attachment sorting_and_reparenting.diff added.

sorting and reparenting diff

07/31/06 12:20:43 changed by Erik Ordway <eriko@jumpsuit.org>

  • attachment noop.png added.

noop image

07/31/06 12:21:01 changed by Erik Ordway <eriko@jumpsuit.org>

  • attachment small-down14.png added.

down image

07/31/06 12:21:19 changed by Erik Ordway <eriko@jumpsuit.org>

  • attachment small-next14.png added.

reparent image

07/31/06 12:21:39 changed by Erik Ordway <eriko@jumpsuit.org>

  • attachment small-up14.png added.

down image

07/31/06 16:18:13 changed by Erik Ordway <eriko@jumpsuit.org>

  • attachment sorting_and_reparenting.2.diff added.

fixes a few bugs and WARNING removes to sort processing of the sort order attribute in the radius specified tag

07/31/06 16:31:03 changed by Erik Ordway <eriko@jumpsuit.org>

  • attachment sorting_and_reparenting.3.diff added.

remove chagne that needed warning

07/31/06 17:17:28 changed by Erik Ordway <eriko@jumpsuit.org>

  • attachment default_to_sort_id.diff added.

changes page_context.rb to use sort_id as the default attribute to sort on

08/01/06 10:30:40 changed by anonymous

  • summary changed from add re-sorting and reparenting to radiant to [PATCH]add re-sorting and reparenting to radiant.

Note that this is a patch

08/03/06 13:45:38 changed by Erik Ordway <eriko@jumpsuit.org>

  • attachment sorting_and_reparenting.4.diff added.

all of above plus adds migration laogic to assign and create sort_id s

08/23/06 09:56:07 changed by Viagra

  • cc set to <Default>.
  • priority changed from major to critical.
  • type changed from enhancement to task.
  • component changed from component1 to component2.
  • milestone set to 0.6-Lapidary.

spam

08/23/06 14:42:00 changed by Viagra

  • version set to 1.0.
  • type changed from task to defect.

spam

08/23/06 14:45:52 changed by Viagra

  • priority changed from critical to major.
  • type changed from defect to enhancement.
  • version deleted.
  • component changed from component2 to component1.
  • milestone deleted.

spam

08/23/06 14:54:20 changed by Viagra

  • priority changed from major to blocker.
  • type changed from enhancement to defect.
  • component changed from component1 to component2.
  • milestone set to 0.5-Grindstone.

spam

08/23/06 14:57:35 changed by Viagra

  • version set to 1.0.
  • type changed from defect to task.
  • milestone deleted.

spam

08/23/06 15:05:34 changed by Viagra

  • priority changed from blocker to trivial.
  • type changed from task to enhancement.
  • component changed from component2 to component1.
  • milestone set to 0.5-Grindstone.

spam

08/23/06 15:13:36 changed by Viagra

  • priority changed from trivial to minor.
  • type changed from enhancement to task.
  • version changed from 1.0 to 2.0.
  • component changed from component1 to component2.
  • milestone deleted.

spam

08/23/06 15:14:20 changed by Viagra

  • priority changed from minor to trivial.
  • version deleted.
  • type changed from task to enhancement.

spam

08/23/06 15:15:26 changed by Viagra

  • priority changed from trivial to critical.
  • version set to 2.0.
  • type changed from enhancement to task.
  • milestone set to 0.6-Lapidary.

spam

08/23/06 17:19:42 changed by Quentin

  • cc changed from <Default> to Quentin.
  • component changed from component2 to 1.
  • summary changed from [PATCH]add re-sorting and reparenting to radiant to Quentin.
  • priority changed from critical to 1.
  • version changed from 2.0 to 1.
  • milestone changed from 0.6-Lapidary to 1.
  • keywords changed from sort reparent to Quentin.
  • type changed from task to 1.

spam

08/23/06 18:23:26 changed by Viagra

  • priority changed from 1 to minor.
  • type changed from 1 to task.
  • component changed from 1 to component2.
  • milestone changed from 1 to 0.5-Grindstone.

spam

08/23/06 18:23:36 changed by Viagra

  • priority changed from minor to blocker.
  • version deleted.
  • milestone changed from 0.5-Grindstone to 0.6-Lapidary.

spam

08/24/06 02:01:19 changed by bodhi

  • cc deleted.
  • component changed from component2 to component1.
  • summary changed from Quentin to [SPAM] [PATCH] add re-sorting and reparenting to radiant..
  • priority changed from blocker to minor.
  • keywords changed from Quentin to sort reparent.
  • type changed from task to enhancement.

08/24/06 05:42:15 changed by Viagra

  • cc set to <Default>.
  • priority changed from minor to trivial.
  • version set to 2.0.
  • milestone changed from 0.6-Lapidary to 0.5-Grindstone.

spam

08/24/06 05:44:35 changed by Viagra

  • priority changed from trivial to blocker.
  • version deleted.
  • type changed from enhancement to defect.
  • milestone changed from 0.5-Grindstone to 0.6-Lapidary.

spam

08/24/06 09:29:46 changed by Viagra

  • priority changed from blocker to critical.
  • version set to 1.0.

spam

08/24/06 11:35:38 changed by Viagra

  • priority changed from critical to minor.
  • type changed from defect to task.
  • milestone deleted.

spam

08/24/06 14:58:21 changed by Viagra

  • version changed from 1.0 to 2.0.
  • type changed from task to defect.

spam

08/24/06 15:01:33 changed by Viagra

  • type changed from defect to enhancement.
  • version deleted.
  • component changed from component1 to component2.

spam

08/24/06 15:02:01 changed by Viagra

  • priority changed from minor to blocker.
  • type changed from enhancement to task.
  • version set to 1.0.
  • component changed from component2 to component1.

spam

08/24/06 15:26:58 changed by Viagra

  • priority changed from blocker to major.
  • milestone set to 0.5-Grindstone.

spam

08/24/06 15:39:22 changed by Viagra

  • priority changed from major to blocker.
  • version changed from 1.0 to 2.0.
  • component changed from component1 to component2.
  • milestone changed from 0.5-Grindstone to 0.6-Lapidary.

spam

08/24/06 15:40:30 changed by Viagra

  • priority changed from blocker to critical.
  • version changed from 2.0 to 1.0.
  • milestone changed from 0.6-Lapidary to 0.5-Grindstone.

spam

08/24/06 15:40:36 changed by Viagra

  • priority changed from critical to major.
  • type changed from task to defect.
  • version changed from 1.0 to 2.0.
  • component changed from component2 to component1.
  • milestone changed from 0.5-Grindstone to 0.6-Lapidary.

spam

08/24/06 15:42:53 changed by Viagra

  • priority changed from major to blocker.
  • type changed from defect to enhancement.
  • component changed from component1 to component2.

spam

08/25/06 01:33:51 changed by Cialis

  • priority changed from blocker to major.
  • type changed from enhancement to defect.
  • version deleted.
  • component changed from component2 to component1.
  • milestone deleted.

spam

08/25/06 06:07:03 changed by Viagra

  • priority changed from major to minor.
  • version set to 1.0.
  • type changed from defect to task.
  • milestone set to 0.5-Grindstone.

spam

08/25/06 07:45:37 changed by Cialis

  • priority changed from minor to trivial.
  • version deleted.
  • component changed from component1 to component2.
  • milestone deleted.

spam

08/25/06 12:25:03 changed by viagra online

  • version set to 2.0.
  • type changed from task to defect.

spam

08/26/06 03:40:44 changed by cialis online

  • priority changed from trivial to major.
  • version deleted.
  • milestone set to 0.6-Lapidary.

spam

08/26/06 07:35:04 changed by Viagra

  • priority changed from major to minor.
  • version set to 1.0.
  • component changed from component2 to component1.

spam

08/26/06 07:35:53 changed by Viagra

  • priority changed from minor to critical.
  • version deleted.
  • component changed from component1 to component2.
  • milestone deleted.

spam

08/26/06 08:05:50 changed by Viagra

  • priority changed from critical to minor.
  • type changed from defect to task.
  • component changed from component2 to component1.
  • milestone set to 0.5-Grindstone.

spam

08/26/06 08:18:28 changed by Viagra

  • priority changed from minor to major.
  • version set to 2.0.
  • type changed from task to enhancement.
  • milestone deleted.

spam

08/26/06 09:13:08 changed by Viagra

  • priority changed from major to minor.
  • type changed from enhancement to task.
  • milestone set to 0.5-Grindstone.

spam

08/26/06 09:28:33 changed by Viagra

  • priority changed from minor to critical.
  • type changed from task to enhancement.
  • version deleted.
  • component changed from component1 to component2.
  • milestone deleted.

spam

08/26/06 12:13:46 changed by Viagra

  • milestone set to 0.5-Grindstone.

spam

08/26/06 19:17:12 changed by Viagra

  • priority changed from critical to minor.
  • type changed from enhancement to task.
  • component changed from component2 to component1.

spam

08/26/06 19:19:58 changed by Viagra

  • version set to 1.0.
  • component changed from component1 to component2.
  • milestone deleted.

spam

08/26/06 20:06:28 changed by Viagra

  • priority changed from minor to critical.
  • version deleted.
  • milestone set to 0.5-Grindstone.

spam

08/26/06 21:18:18 changed by Viagra

  • version set to 2.0.
  • component changed from component2 to component1.

spam

08/26/06 21:23:42 changed by Viagra

  • priority changed from critical to trivial.
  • version changed from 2.0 to 1.0.
  • type changed from task to enhancement.
  • milestone changed from 0.5-Grindstone to 0.6-Lapidary.

spam

08/26/06 21:32:29 changed by Viagra

  • priority changed from trivial to blocker.
  • version changed from 1.0 to 2.0.
  • component changed from component1 to component2.

spam

08/26/06 21:44:08 changed by Viagra

  • priority changed from blocker to trivial.
  • version changed from 2.0 to 1.0.
  • milestone deleted.

spam

08/26/06 22:30:20 changed by Viagra

  • priority changed from trivial to major.
  • type changed from enhancement to task.
  • milestone set to 0.6-Lapidary.

spam

08/26/06 23:44:58 changed by Cialis

  • priority changed from major to minor.
  • type changed from task to enhancement.
  • version changed from 1.0 to 2.0.
  • component changed from component2 to component1.
  • milestone deleted.

spam

08/27/06 05:28:27 changed by Viagra

  • priority changed from minor to blocker.
  • version changed from 2.0 to 1.0.
  • type changed from enhancement to defect.
  • milestone set to 0.6-Lapidary.

spam

08/27/06 06:12:52 changed by Viagra

  • priority changed from blocker to minor.
  • type changed from defect to task.
  • version changed from 1.0 to 2.0.
  • component changed from component1 to component2.
  • milestone changed from 0.6-Lapidary to 0.5-Grindstone.

spam

08/27/06 06:35:45 changed by Viagra

  • priority changed from minor to blocker.
  • type changed from task to enhancement.
  • milestone deleted.

spam

08/27/06 22:17:26 changed by viagra

  • priority changed from blocker to trivial.
  • version changed from 2.0 to 1.0.
  • type changed from enhancement to task.
  • milestone set to 0.5-Grindstone.

spam

08/27/06 22:37:30 changed by Viagra

  • priority changed from trivial to major.
  • version changed from 1.0 to 2.0.
  • type changed from task to defect.
  • milestone changed from 0.5-Grindstone to 0.6-Lapidary.

spam

08/28/06 04:37:46 changed by Cialis

  • priority changed from major to trivial.
  • type changed from defect to task.
  • milestone changed from 0.6-Lapidary to 0.5-Grindstone.

spam

08/28/06 04:44:53 changed by Cialis

  • version deleted.
  • type changed from task to enhancement.

spam

08/28/06 19:21:47 changed by Viagra

  • priority changed from trivial to minor.
  • type changed from enhancement to task.
  • version set to 2.0.
  • component changed from component2 to component1.

spam

08/29/06 00:50:00 changed by Viagra

  • priority changed from minor to blocker.
  • version deleted.
  • component changed from component1 to component2.

spam

08/29/06 06:57:18 changed by Viagra

  • version set to 2.0.
  • milestone deleted.

spam

08/29/06 08:52:56 changed by Viagra

  • priority changed from blocker to critical.
  • version changed from 2.0 to 1.0.
  • type changed from task to defect.
  • milestone set to 0.6-Lapidary.

spam

08/29/06 18:51:19 changed by viagra

  • priority changed from critical to minor.
  • type changed from defect to task.

spam

08/30/06 01:50:34 changed by Viagra

  • priority changed from minor to blocker.
  • type changed from task to enhancement.
  • version changed from 1.0 to 2.0.
  • component changed from component2 to component1.
  • milestone deleted.

spam

08/30/06 04:24:56 changed by Cialis

  • priority changed from blocker to trivial.
  • type changed from enhancement to defect.
  • milestone set to 0.6-Lapidary.

spam

08/30/06 07:38:27 changed by Cialis

  • priority changed from trivial to minor.
  • type changed from defect to enhancement.
  • version deleted.
  • component changed from component1 to component2.

spam

08/30/06 08:48:14 changed by cialis

  • priority changed from minor to trivial.
  • type changed from enhancement to defect.
  • version set to 2.0.
  • component changed from component2 to component1.

spam

08/30/06 09:09:33 changed by viagra

  • priority changed from trivial to minor.
  • version deleted.
  • component changed from component1 to component2.
  • milestone deleted.

spam

08/30/06 09:13:45 changed by Viagra

  • priority changed from minor to critical.
  • type changed from defect to task.

spam

08/30/06 22:04:21 changed by Cialis

  • priority changed from critical to major.
  • type changed from task to defect.
  • component changed from component2 to component1.
  • milestone set to 0.6-Lapidary.

<Text>

08/30/06 22:09:55 changed by Viagra

  • priority changed from major to critical.
  • type changed from defect to enhancement.

<Text>

08/31/06 00:48:04 changed by Viagra

  • type changed from enhancement to task.
  • component changed from component1 to component2.
  • milestone changed from 0.6-Lapidary to 0.5-Grindstone.

spam

08/31/06 01:21:49 changed by Cialis

  • priority changed from critical to trivial.
  • type changed from task to defect.
  • version set to 1.0.
  • component changed from component2 to component1.
  • milestone deleted.

spam

08/31/06 18:02:10 changed by free porn

  • version changed from 1.0 to 2.0.
  • milestone set to 0.5-Grindstone.

spam

08/31/06 18:14:05 changed by Cialis

  • priority changed from trivial to minor.
  • type changed from defect to enhancement.
  • version deleted.
  • component changed from component1 to component2.
  • milestone deleted.

spam

09/01/06 00:00:27 changed by Viagra

  • type changed from enhancement to defect.
  • version set to 1.0.
  • component changed from component2 to component1.
  • milestone set to 0.6-Lapidary.

spam

09/02/06 10:39:07 changed by Phillip

  • cc changed from <Default> to Phillip.
  • component changed from component1 to 1.
  • summary changed from [SPAM] [PATCH] add re-sorting and reparenting to radiant. to Phillip.
  • priority changed from minor to 1.
  • version changed from 1.0 to 1.
  • milestone changed from 0.6-Lapidary to 1.
  • keywords changed from sort reparent to Phillip.
  • type changed from defect to 1.

spam

09/02/06 20:02:43 changed by free ringtone

  • priority changed from 1 to blocker.
  • type changed from 1 to task.
  • component changed from 1 to component2.

spam

09/04/06 04:49:47 changed by bodhi

  • cc deleted.
  • summary changed from Phillip to [SPAM] [PATCH] add re-sorting and reparenting to radiant..
  • priority changed from blocker to minor.
  • version deleted.
  • milestone deleted.
  • keywords deleted.
  • type changed from task to enhancement.

09/06/06 17:30:02 changed by Colin

  • cc set to Colin.
  • component changed from component2 to 1.
  • summary changed from [SPAM] [PATCH] add re-sorting and reparenting to radiant. to Colin.
  • priority changed from minor to 1.
  • version set to 1.
  • milestone set to 1.
  • keywords set to Colin.
  • type changed from enhancement to 1.

spam

09/21/06 12:31:34 changed by jlong

  • cc deleted.
  • keywords deleted.
  • summary changed from Colin to [PATCH] add re-sorting and reparenting to radiant.
  • version deleted.
  • milestone deleted.

06/17/07 00:22:53 changed by fdas

spam

07/20/07 09:03:48 changed by robiknode

spam