From: m...@miragroupware.org
Date: Tue, 22 Jun 2010 02:07:49 +0200
To: mira-development@lists.sourceforge.net
Subject: Re: [Mira-development] Notes Utility blueprint

Hi Shilpa,


Thank you for your comments. :) Please find mine inline.


Regards,

Max Bossino
Project Manager
http://miragroupware.org 

On 21 Jun 2010, at 21:31, Shilpa Sodani wrote:


Reading note View: 
 
   Buttons to go to previous or next note (like backward/forward arrows or 
-/+). So that to go to previous/next note we don't have to return to Default 
view and then select the note(will just reduce some clicks:)).



I agree - this would be very useful! Backward and forward arrows would probably 
be best. I suppose the notes would be sorted by title?
 
Yes.



Creating a Note:
 
   The Server assigns the note some metadata, which include 


A unique, random ID specifically for the note (which will be used as a 
reference in the future)

The time at which the Server received the note

The username of the user who created the note.

version number like 1.0(when created), 1.1, 1.2, etc. .. for the edited 
versions will be use to resolve conflicts.    

Ok, that makes a lot of sense. So, instead of the Client comparing the 
timestamp of its local copy of the note to that of the Server to check if it 
has changed, it could just compare the version number, which would be easier 
and more reliable.
 
Right. 

Version numbers could start from 1 and increment by one for every version.
 
Ok, makes easy to implement.



Deleting the Note:    
     Deleted notes are handled differently while resolving conflicts and when 
the user state is changed from offline to online. Consider while offline the 
user1 changes the note that is deleted from server. We may want to have an 
option where it can save this deleted note as a new note on server just like we 
do it while resolving conflict.



This is actually already in the blueprint - please see the first bullet point 
of Step 8 in the 'Editing a Note' section. You have suggested exactly what I 
proposed. :)


Is what is already in the blueprint sufficient?
 
Yes you have mentioned exactly this in step 8. May be I didn't say it right. 
Above, I was talking about Synchronization section point 3, second bullet. 
 
 
     3 .Client checks for deletions of existing notes:


         Server compares the note IDs from the list sent by the Client to the 
IDs of its stored notes; 

         Server sends a command to the Client to delete those notes with IDs 
which do not exist on the Server.
 

 

Editing the Note:
 
   Step 7.



'Discard Changes', which deletes the user's edited copy of the note and the 
back-up of the original, and stores the latest version of the note downloaded 
from the Server as the correct local version of the note with ID 'uuu123'. 
(END);

'Save Changes' and replaces the back-up with the latest version of note on the 
server, in which case continue to Step 8.(replacing the backup is important for 
resolving the another conflicts that may occur)
This is also already in the blueprint. The second bullet point of Step 8 in the 
'Editing a Note' section describes this situation. If this were to occur, it 
would loop back to Step 5 and treat the updated version of the note from the 
Server as another conflict.
 
Sorry I missed on this one.

To clarify:
 In Step 8, the "latest version" from the Server which was last downloaded by 
the Client  is compared to the actual latest version on the Server. If the 
actual latest version is newer, the Client renames the local "latest version" 
as the "back-up of the original note" and it then downloads the latest version 
from the Server and overwrites the local "latest version".
 So, in other words, the new "original note" is the previous local "latest 
note", and the new "latest note" is downloaded straight from the Server.
 This creates another conflict, due to this newer "latest version" of the note.


Do you agree with this?
 
Yes this is what I had in mind. 
 
Regards,
Shilpa Sodani.
 
 
 
                                          
_________________________________________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Mira-development mailing list
Mira-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mira-development

Reply via email to