IRC Archive for channel #xwiki on 16 June 2012

Last modified by Vincent Massol on 2012/10/18 19:22

00:14 <thebishop> has quit
00:44 <ries> has quit
00:48 <ssavi> has quit
01:18 <ssavi> has joined #xwiki
01:27 <jamie__wiki> has quit
02:01 <Shaddox> has joined #xwiki
02:01 <Rich_Morin> has joined #xwiki
02:02 <Rich_Morin> FYI, there is now an Enterprise Wikis mailing list:  https://groups.google.com/forum/#!forum/ent-wiki
02:11 <@cjd> Thanks, I looked around for an example of ajax in a wiki page and didn't find anything so it's on my (long) todo list heh
02:19 <tekzilla> has quit
02:21 <tekzilla> has joined #xwiki
02:41 <ries> has joined #xwiki
03:02 <Shaddox> has quit
03:02 <ssavi> has quit
03:50 <sdumitriu> has quit
06:19 <sasinda> has joined #xwiki
06:31 <sasinda> has quit
06:32 <sasinda> has joined #xwiki
07:03 <Denis1> has joined #xwiki
07:05 <Denis> has quit
07:15 <sasinda> Hi, Good day everybody!. This is regarding the xwiki anrdroid project. I need to post a blog object to a blog page.A blog object is composed of othe xobject classes. So to make the things general I intend to do a stripped down replication or make something similer to the java classes in com.xpn.xwiki.objects and its 2 sub packages .classes, .meta to the xwiki android platform. This is to make
07:15 <sasinda> the relevent blog post using pojos and convert to the xml string later to be posted.Then the things will be general not only for blog client app. Can someone explain why there are 3 classes for X<Type>Class, X<Type>Property and X<Type>Meta ? I don't have a good idea on it :-).
07:39 <jvelociter> has quit
08:03 <sasinda> has quit
08:05 <sasinda> has joined #xwiki
08:26 <sasinda> has quit
08:27 <sasinda> has joined #xwiki
09:10 <sasinda> has quit
10:18 <ssavi> has joined #xwiki
10:44 <ssavi_> has joined #xwiki
10:46 <ssavi> has quit
10:46 <ssavi_> is now known as <ssavi>
11:13 <ssavi> has quit
11:31 <ssavi> has joined #xwiki
11:36 <ssavi> has quit
12:06 <jvelociter> has joined #xwiki
12:43 <sasinda> has joined #xwiki
12:58 <vmassol> has joined #xwiki
13:17 <jvelo_> has joined #xwiki
13:20 <jvelo> has quit
13:20 <jvelo_> is now known as <jvelo>
13:21 <jvelociter> has quit
13:21 <jvelociter> has joined #xwiki
14:12 <sasinda> has quit
16:31 <vmassol> has quit
16:31 <sasinda> has joined #xwiki
16:44 <Denis1> is now known as <Denis>
16:52 <sdumitriu> has joined #xwiki
17:17 <jvelociter> has quit
17:31 <sasinda> has quit
17:32 <sasinda> has joined #xwiki
19:07 <sasinda> has left #xwiki
19:15 <ries_> has joined #xwiki
19:15 <ries> has quit
19:15 <ries_> is now known as <ries>
20:57 <ssavi> has joined #xwiki
21:38 <npm> may i ask a really dumb question associated w/ a really dumb move on my part? :-)
21:39 <npm> if I want to bulk-undelete documents from the recyclebin, all i have to do is delete the associated document entries from the recyclebin table  (in mysql)?
21:44 <@cjd> that won't bulk-undelete
21:44 <npm> yeah i was just rtfming
21:44 <@cjd> in general, doing things in mysql can only cause corruption
21:45 <@cjd> in some cases it "works", I think what would happen in this case is the recycled entries would vanish
21:46 <@cjd> If you want to bulk undelete, I would use a script to undelete all of the documents.
21:46 <npm> i've been looking but all i've found are scripts for bulk delete
21:47 <npm> e.g. WIP http://www.nielsmayer.com/bin/view/Sandbox/MwDelDocs?viewer=code
21:47 <npm> i think there needs to be a "are you really sure" for deleting WebHome in XWiki :-)
21:48 <npm> for the tired and used-to-click-away-dialogs
21:48 <@cjd> Actually something I was thinking would be nice at times is a universal rollback
21:48 <npm> or any document containing child documetns that automatically get deleted
21:48 <@cjd> so if you really stuff it up, you can revert to an hour ago
21:49 <npm> the subwiki was actually functional after that, just world writable :-/
21:49 <@cjd> but that's a huge undertaking which requires logging everything
21:49 <npm> actually the activity stream has what was done so if there was a way of rolling back to a point in the activity stream...
21:50 <@cjd> yeah, the AS logging is pretty good, we'd have to make sure it was perfect and then we could do something like that
21:52 <@cjd> as far as bulk-undelete, you could actually do it in javascript which would give faster feedback and it would be something where you can find what to post to using firebug
21:52 <npm> any suggestions on modifying XWiki.DeletedDocuments to point at a different database/wiki?
21:52 <npm> seems like a safe alternative for my f-up
21:53 <@cjd> I don't know that particular document but  $xcontext.getContext().setDatabase('other-wiki')  is how you switch wikis.
21:53 <@cjd> (you need PR to make that call)
21:54 <npm> yeah that's why i was playing w/ listing docs from the subwiki's recyclebin
21:54 <npm> http://www.nielsmayer.com/bin/view/Sandbox/MwDelDocs?viewer=code
21:54 <npm> decided i'd already screwed up enough things for one evening and went to sleep
21:55 <@cjd> heh /nod
21:55 <ries> has quit
21:57 <npm> well maybe i'll play with a subwiki version of  XWiki.DeletedDocuments and see where that gets me.
21:58 <npm> the reason why i asked about direct db surgery is that i'm seeing all the deleted entries still in xwikidoc table
21:58 <npm> e.g. XWiki.XWikiUserNetworkSheet etc..
21:59 <npm> and that entry is of course also in recyclebin
21:59 <npm> and it appears attachments go to their recycle bin only on actual delete right?
21:59 <npm> so i was thinking it should be easy... what other tables get touched in the "undelete" process
22:00 <@cjd> all of them :)
22:00 <@cjd> having a deleted document in the recycle bin doesn't make the document be deleted.
22:01 <@cjd> The document registers as deleted when there is no xwikidoc entry and there is something in the recycle bin
22:01 <npm> i realize that. but removing it from the recycle bin makes it undeleted right?
22:01 <@cjd> removing the recycle bin entry makes it "never have existed"
22:02 <npm> but what about the existing entry, e.g.  XWiki.DeletedDocuments in xwikidoc
22:03 <@cjd> if there is a document and also an entry in xwikirecyclebin then you won't see the recycled entry unless you delete the document again.
22:03 <npm> i.e there is a xwikidoc entry, and an associated recyclebin entry
22:03 <@cjd> If you delete the document again then you see the list of all instances of that document in the recycle bin next to the date of deletion.
22:04 <@cjd> so if the same document existed 3 ties and was deleted twice, when you delete it the third time, you'll see all three of them in the recycling.
22:04 <npm> hmm.
22:05 <npm> thus your "use the API" warnings.
22:05 <npm> well thanks for preventing a disaster (one with a backup, and i seem to be willing to destroy in order to create :-) )
22:06 <@cjd> if you want to save space, you can permanently remove entries from the recycling but please back up your database first, manually removing xwikirecyclebin entries "should be ok" but I can't remember well enough.
22:06 <npm> speaking of saving space, and also the activity stream cleaner perhaps not working...
22:06 <@cjd> We don't treat a database as a normal relational store but more as a filesystem so in some cases there are "pointers" to things and when you remove them, the pointers are still kicking around.
22:06 <npm> what about manually deleting stuff in activitystream table ?
22:07 <@cjd> As far as I remember, that is ok, please back up your database first though.
22:09 <npm> which will eventually overflow  w/ warning "InnoDB free: 5120 kB"
22:10 <npm> i figure i could just do a delete command that deletes activitystream_event entries earlier than a certain date

Get Connected