Skip to content

Commit 8d9d7d2

Browse files
committed
updated notes
1 parent 4b300a4 commit 8d9d7d2

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

src/org/argmap/client/ArgMap.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
* the deleted nodes were left contentless. One simple way to address this would be to populate nodes
4848
* with their content at the time of deletion when they are added to the tree, based on their parent's delete
4949
* event.
50+
*
51+
* Make sure to also think about other info contained in delete events such as negation for props and pro/con for args?
5052
*/
5153
/*
5254
* when a root proposition is first added, program suggest using it instead (as a link) of itself!
@@ -73,12 +75,6 @@
7375
//TODO: do some basic testing of versioning of deleted top level nodes
7476
/*TODO: fix exceptions when opening circular links in versions mode and continue testings version mode's handling of circular linking*/
7577
/*TODO: track down exceptions in ModeVersion (unrelated to circular linking)*/
76-
/*TODO: a proposition tree begins at time A. At time C a pre-existing node is linked into the proposition tree.
77-
* The user browses to a time B between times A and C. At that time the linked node is not present.
78-
* However the linked node is open in the tree(as a deleted node, so its changes are displayed in the change list).
79-
* The result is that there are changes that the user can scroll past that have no apparent effect on the tree
80-
* very confusing... so only a the changes post dating the linked nodes linking should be added to the change list?
81-
*/
8278
/*TODO: versions mode: update link coloring depending on whether a proposition is currently a link?
8379
* to do this properly it seems like for each proposition, I need to included in the changes sent to the client
8480
* unlinks which lower the link count to less than or equal to one, and links which raise the link
@@ -94,11 +90,11 @@
9490

9591
//TODO: add 'real' example arguments for demonstration (for instance my argument about legalizing unauthorized access)
9692

93+
//TODO: implement reversions and batch reversions
9794
//TODO: implement email updates of changes
9895
//TODO: implement email invitations to participate in an particular argument
9996
//TODO: implement facebook integration? see [http://code.google.com/p/batchfb/] and the facebook API
10097
//TODO: implement scoring algorithm
101-
//TODO: implement reversions and batch reversions
10298
//TODO: compose more/edit help tips
10399

104100
//TODO: often times conflict dialog is not displayed and edits are silently overwritten...

src/org/argmap/client/ModeVersions.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -920,6 +920,19 @@ public ViewNodeVer createChildWithDummies(ViewNodeVer parentView,
920920
* current point in time), and when the node is opened, the client converts
921921
* the dummy nodes into real nodes with actual content which the user can
922922
* view.
923+
*
924+
* Why have the dummy nodes? The dummy nodes are manipulated as if they were
925+
* real nodes as the tree moves through time. So, for instance, they are
926+
* moved from the deleted list to the existing list, so when we load the
927+
* real nodes from the server we know which ones to create as deleted, and
928+
* which ones to create a existing.
929+
*
930+
* The dummy nodes will also keep track of other information that exists in
931+
* the parents change history but that is relevant to reconstructing the
932+
* children. For instance, when a node is deleted, the information needed to
933+
* reconstruct the initial version of it is in the deletion event which is
934+
* in the parents change history. Arg deletions have pro/con flag, and
935+
* content, and prop deletions have negation flag, and content.
923936
*/
924937
public void mergeLoadedNodes(ViewNodeVer viewNodeVer,
925938
Map<Long, NodeWithChanges> nodesWithChanges) {

0 commit comments

Comments
 (0)