IRC log of #schooltool for Tuesday, 2014-05-27

th1ahi replaceafill.00:08
*** khildin has quit IRC00:10
replaceafillhey th1a00:11
replaceafilli sent you an email00:11
replaceafillabout the book00:11
th1aAh, yes.  I just got home.00:12
replaceafilli was wondering if we could show a diff in the book00:12
replaceafill(not now, in the future)00:12
replaceafillexplaining changes to 5 config files seems overwhelming :)00:12
th1aSeems fine.  I can try it tomorrow.00:16
*** menesis has quit IRC00:43
*** replaceafill has quit IRC00:43
*** replaceafill has joined #schooltool01:04
*** replaceafill has quit IRC02:09
*** th1a has quit IRC02:38
*** menesis has joined #schooltool10:31
*** th1a has joined #schooltool11:58
*** menesis has quit IRC13:26
*** menesis has joined #schooltool14:15
*** replaceafill has joined #schooltool15:54
th1ahi replaceafill.16:01
replaceafillhey th1a16:01
th1aHow are we doing?16:01
replaceafillok, yesterday i checked the two options we discussed for sync'ing16:01
replaceafill1. create a duplicate instance16:02
replaceafill2. sync using zeo from the dashboard16:02
replaceafillimho 2. is the way to go16:02
replaceafilli created the connection directly from the dashboard using the right config file16:03
replaceafilland started the instance as local16:03
th1aBy "dashboard" do you mean the application or the interface?16:03
replaceafillnow, i just need a way to show the waiting/errors in the interface16:05
replaceafilli didn't like option 1 because:16:05
replaceafillit requires the user setting up an extra instance16:06
th1aWait, I'm not sure what you mean by a duplicate instance.16:06
replaceafillyesterday we talked about setting an extra instance16:07
replaceafillthat mirrors the "secondary"16:07
replaceafillbut in a local way16:07
replaceafillbut that way requires extra configuration16:07
replaceafillof a new zeo16:08
replaceafillit's possible, but it relies heavily on the user to set it up right16:08
replaceafillso you have the instance in the school, right? the primary16:08
replaceafillyou have an instance in the warehouse, the secondary16:08
replaceafilland you'd have a third instance a local replica of the secondary16:09
replaceafillark admins would connect to the local replica16:09
th1aOK, so the three database trick is out.16:09
th1aI'm not sure what "sync using zeo" means then.16:09
replaceafillplain python is the way to g16:09
th1aTo generate reports.16:10
replaceafillby "sync using zeo" i mean connecting directly to the school instance, with no schooltool instance involved16:10
th1aExcept if you want to view the school directly?16:11
replaceafillin a ST instance we have the zeo server (zeo.conf) + zeo client (schooltool.conf)16:11
replaceafillwhat i'm proposing is using just the zeo server part of the ST instance16:12
replaceafillwhich is what copies the data from the primary16:12
replaceafilli need to wave my hands :D16:13
th1aWell... what happens when someone at the central server wants to browse a specific schooltool?16:13
replaceafillthey'll have a local instance per school16:13
replaceafillsame idea as before16:14
th1aIsn't this more or less what we were thinking all along?16:15
replaceafillyes, but with no schooltool involved16:15
replaceafilli mean16:15
replaceafillwith no schooltool instance acting as the client16:15
th1aPython scripts importing SchoolTool objects.16:15
replaceafillso, the sync process should:16:17
replaceafillstop the local instance16:17
replaceafilltry to connect to the zeo in the school16:18
replaceafillif the connection is successful, wait for the replicate16:18
replaceafillstart the local instance again16:18
replaceafillthis process is what i want to show in the dashboard UI16:18
replaceafilli mean, as states16:19
th1aWell, I was thinking the opposite.16:19
th1aThey're all secondaries until the rare occurance that someone wants to dig around in one.16:19
replaceafillthen you switch it?16:19
th1aYes... this isn't actually a very useful feature.16:20
th1aI mean, replicating the data is.16:20
th1aGenerating reports on it is.16:20
replaceafilli just wanted to avoid modifying config files16:20
th1aActually digging into the instances probably is more something you'd like to know you can do if you need to.16:20
th1aGiven that the connection may be slow/unreliable, and backup is important, I'd rather have zrs running by default.16:21
th1aI'm not sure we're talking about the same issue, because I don't think one would be more difficult than the other, config-wise.16:22
replaceafillthe other issue i found with this approach was that they may stop zrs completely16:22
replaceafillsuppose they switch the instance to browse locally16:23
replaceafillthen forget to switch it back16:23
th1aWell, yes, that's the only thing I've been worried about.16:23
replaceafilli was thinking we could set a warning dialog16:24
th1aCan we schedule it to switch back using celery?16:24
replaceafilllike in the gradebook16:24
replaceafillat least16:24
th1aWe have to switch it back automatically.16:24
th1aThere is no question in my mind about that.16:24
th1aAgain... viewing these directly have very limited usefulness.16:24
th1aIf people are doing it regularly, we need to find out what they're looking for and write a new report.16:25
th1aI guess at this point it could be manual.16:25
th1aFor proof-of-concept.16:25
replaceafillso in your opinion, reports are *the* feature for the dashboard?16:25
replaceafillnot sync'ing16:26
replaceafillgood to know :D16:26
replaceafillfor me it was the other way16:26
th1aFor that matter, we should probably set a cron job to flip them back to secondaries at midnight.16:26
th1aThink about how difficult it would be for you to browse to any useful information in another school's SchoolTool, as an administrator.16:27
th1aI don't even know what you'd be looking for.16:27
replaceafillgot it16:27
th1aOTOH, nice to know you can.16:28
th1aStill reassuring.16:28
replaceafillok, so warehouse sets one instance per school16:30
replaceafillconfigs zrs to replicate properly16:30
replaceafillwhile instances are running16:31
replaceafillthey can use the dashboard to create reports16:31
replaceafillwhich doesn't need to change anything16:31
replaceafillBUT if they want to browse an instance16:31
replaceafillthey use the "Switch" (or whatever button), we display a warning16:32
replaceafillstop the instance, change config files accordingly, start back16:32
replaceafillgive the user a link to the local instance16:32
replaceafillor we don't need the switch button?16:33
replaceafilli just think it's explicit16:33
replaceafillwe could use just have a "Browse locally" button16:34
th1aWe could have it open in another window.16:34
th1aThe link could say "View and pause data sync" and the "Resume data sync"16:35
th1a(depending on the mode)16:35
replaceafillok, i'll start on this16:36
replaceafilli feel bad that i was going in a different direction :(16:37
th1aI don't think you went very far.16:37
th1aThe three database system was worth looking into.16:37
replaceafillsomeone is testing the /ark branches!16:38
th1aYeah, I saw that!16:38
replaceafilland he found the same bug16:38
replaceafillusing the sample data16:38
th1aWell, that would be what you'd try.16:38
replaceafilli'll warn him it's WIP16:39
th1aYeah, just do that.16:39
replaceafillbut if he's using sample data i guess he's just trying it16:39
replaceafillok, will do16:39
replaceafilli liked the youtube videos :D16:39
replaceafillah th1a16:40
replaceafillthanks for checking the book update16:40
replaceafilli'll start writing the zrs instructions too16:41
* replaceafill done16:41
th1aOK, thanks replaceafill.  What instructions do they need?16:42
th1aI'm not sure what is going to be hard wired at this point.16:42
th1aJust filling in IP addresses?16:43
replaceafillthis is what the sample file has currently:16:43
replaceafillreplicate-from <SCHOOL_HOST_IP>:708216:44
th1aOK, cool.16:44
replaceafillthanks th1a16:44
replaceafillsee you later16:44
th1aJust making sure you weren't writing a zrs thesis.16:44
replaceafillth1a, Pedro Peña Pérez is the one reviewing the branches! :D18:03
th1aI told him to put bugs in Launchpad.18:13
th1aI just didn't think it would be in Spanish.18:13
*** menesis has quit IRC20:18
*** menesis has joined #schooltool21:17
*** Lumiere has quit IRC21:31
*** Lumiere has joined #schooltool21:33
*** menesis has quit IRC23:22
*** menesis has joined #schooltool23:55

Generated by 2.15.1 by Marius Gedminas - find it at!