tag:mentalfaculty.tenderapp.com,2010-10-19:/discussions/suggestions/10424-sync-bugThe Mental Faculty: Discussion 2018-10-19T02:24:20Ztag:mentalfaculty.tenderapp.com,2010-10-19:Comment/410599452016-10-24T06:52:08Z2016-10-24T06:52:08Zsync bug<div><p>When you add a new device to the sync, such as when it stops
syncing for a few days with the switch off, the due status is not
really determined. The apps have two different due states, and have
to make a choice. They can only do this properly if the notes have
been syncing, and tracking their changes for sync. If sync was off,
that sync data is not available, and they just choose between the
two options.</p>
<p>You study history should be preserved. So if you study on the
iPhone when sync is turned off, and then turn on sync, you should
still see the iPhone's study event.</p>
<p>Something to try is using Note > Update Status of All Notes.
It may resolve any issues that have arisen if there are any.</p>
<p>Note that it may also not be a bug as such. Imagine you study
165 notes with facet A before facet B. Then you sync. After the
sync, you may see 160 odd notes with facet B before facet A.
Studies considers these independent for scheduling. So it doesn't
necessarily have to be a problem.</p>
<p>In general, if you want the scheduling to work consistently, you
are best to try to keep the sync switch on. This means the app will
be storing extra sync data, that allows it to merge with data on
other devices. Turning it off for a number of days means it has to
merge very old data with newer, deciding what to keep. This is
actually not a completely tractable problem, so it has to 'guess'
at things. With sync on, even if the device is offline, at least it
is storing details that will help order events when merging.</p>
<p>Kind regards,<br>
Drew</p></div>drewmccormacktag:mentalfaculty.tenderapp.com,2010-10-19:Comment/410599452016-10-24T12:06:25Z2016-10-24T16:48:56Zsync bug<div><p>To me, the bug is that it shouldn't have to randomly "choose"
which scheduling to keep. It should choose the one that with the
least overdue notes. Seems like this would be simple to achieve,
but I don't program apps, so what do I know.</p>
<p>This has happened enough that I know this is not a case of
swapping which facet has scheduled as a prompt. I had studied all
my due notes (of 51 scheduled for the day) on the iphone before I
switched back on the icloud. My mistake, after having this happen a
number of times before and knowing how the opening the imac app
before I switched back on the iphone sync. It has happened enough
that I know that I need to switch the iphone sync back on before i
ever open the imac app again, or else the sync will screw up and
keep the older imac data and move it to the iphone (even though it
is more up to date with no overdue notes). That is the work around
(keep mac app closed until turning back on iphone sync). But
occassionally I forget, and it seems to me the work around should
be unnecessary if you would just program it to keep the data on the
device with the fewest overdue notes-- EDIT- actually, I didn't
think that through, it wouldn't be the fewest overdue notes, but
the oldest overdue notes.</p></div>zeppotag:mentalfaculty.tenderapp.com,2010-10-19:Comment/410599452016-11-16T00:59:45Z2016-11-16T00:59:45Zsync bug<div><p>The sync problem is back again. I believe it has been three days
since I last opened the mac app. After studying today's due notes
on the iphone, the cloud sync took a rather long time to complete.
Then a couple of minutes after the sync oompleted, I get a pop up
saying:</p>
<pre>
<code> "A cloud data reset must be performed on all devices. To avoid data corruption, a reset should be performed on each device. It is also advisable to wait 30 minutes after resetting all devices before enabling sync again."</code>
</pre>
<p>Then it gives the options "Don't Reset" or "Reset Cloud".</p>
<p>I have yet to open the mac app to reset the cloud, nor have I
yet selected from the above options.</p>
<p>Is there a certain order in which I need to do this to ensure
that the iphone study history data is kept instead of the mac
data?</p></div>zeppotag:mentalfaculty.tenderapp.com,2010-10-19:Comment/410599452016-11-16T08:15:23Z2016-11-16T08:15:23Zsync bug<div><p>In theory, the whole study history should be merged together.
Unfortunately, you may find some differences in due count after the
merge.<br>
There is no way to force an order of merging.</p>
<p>Thanks for reporting it. It seems we get much less reports of
this, so hopefully it is not more rare.</p>
<p>We just released a fix for the Mac a few days back which may
help this problem a bit too.</p>
<p>Kind regards,<br>
Drew</p></div>drewmccormacktag:mentalfaculty.tenderapp.com,2010-10-19:Comment/410599452016-11-17T02:42:31Z2016-11-17T02:42:31Zsync bug<div><p>How about if I delete the mac app, then reinstall it 30 minutes
after I turn the sync back on with the iphone app?</p></div>zeppotag:mentalfaculty.tenderapp.com,2010-10-19:Comment/410599452016-11-17T07:14:24Z2016-11-17T07:14:24Zsync bug<div><p>No, the sync doesn’t work like that. Because the data on
each device is ‘timeless’, ie it has not known time
that it was made, it is considered to have always been there. So
both devices have data that has always been there, and the way it
is merged is arbitrary. For most things, there is no conflict, but
for due status there could be.</p>
<p>Drew</p></div>drewmccormacktag:mentalfaculty.tenderapp.com,2010-10-19:Comment/410599452016-11-17T07:18:12Z2016-11-17T07:18:12Zsync bug<div><p>The one way you could probably ensure that you get only the
iPhone data is to completely remove the Mac data.</p>
<p>You would have to:</p>
<ol>
<li>Reset the cloud data<br></li>
<li>Delete or Move aside the Mac data. You can use the Go to Folder
in Finder with ~/Library/Containers to find the data folder. It is
called com.mentalfaculty.studies.mac. Drag that to the desktop and
restart your mac.<br></li>
<li>Wait 20 minutes<br></li>
<li>Turn on iPhone sync, and wait for upload (2 full sync
cycles)<br></li>
<li>Turn on Mac app. Should be empty. (Don’t import Mental
Case data)<br></li>
<li>Turn on sync in Mac app<br></li>
<li>Wait for it to download</li>
</ol>
<p>This should just give you the data from the iPhone.</p>
<p>If anything goes wrong, you can put the Mac data back where you
found it in (2), and restart your Mac.</p>
<p>Drew</p></div>drewmccormacktag:mentalfaculty.tenderapp.com,2010-10-19:Comment/410599452016-11-18T04:32:59Z2016-11-18T04:32:59Zsync bug<div><p>This appears to have worked.</p></div>zeppo