Re: [xwiki-users] D3js not working on XWiki 5.4
Woot! I finally have a working example! I have updated the D3 Example http://extensions.xwiki.org/xwiki/bin/view/Extension/D3+Example with the the changes I have made to make the example work. Basicly I wrapped the whole existing script in a function which reacts on the d3:loaded event, and I added the on demand use of the d3js extension (instead of using the online d3js). There are still some bugs (for example using the WYSIWYG editor), but that's for another day :-) -- View this message in context: http://xwiki.475771.n2.nabble.com/D3js-not-working-on-XWiki-5-4-tp7589145p7590043.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Statistics
Hello Are there a way to exclude all WebHome pages from MostviewedPages statistics table? Add a cron to delete all lines containing *.WebHome in xwikistatsdoc table of my postgres database? Thxs Pascal B ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] How do you reset sandbox?
Hello, How do you reinit sandbox? With snippet and scheduler or bash + cron to launch a SQL code on database? Thxs; ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How do you reset sandbox?
Hi, If you’re referring to the sandbox wiki, we do this once to save the mysql data: mysqldump -uxwiki -ppass here --add-drop-database playground /root/playground/playground.sql And then every day with a os-level cron job: /usr/bin/mysql playground /root/playground/playground.sql Thanks -Vincent On 9 Apr 2014 at 11:01:45, Pascal BASTIEN (pbasnews-xw...@yahoo.fr(mailto:pbasnews-xw...@yahoo.fr)) wrote: Hello, How do you reinit sandbox? With snippet and scheduler or bash + cron to launch a SQL code on database? Thxs; ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How do you reset sandbox?
Ok but I wanted reset only my space Sandbox everyday. So I suppose I must use an update SQL request then (and delete xx/data_xwiki/storage/xwiki/Sandbox/) . PS: But I think your idea to create a full playground wiki is a goord one (search engine is not polluted by sandbox space) thank you De : vinc...@massol.net vinc...@massol.net À : XWiki Users users@xwiki.org Envoyé le : Mercredi 9 avril 2014 11h17 Objet : Re: [xwiki-users] How do you reset sandbox? Hi, If you’re referring to the sandbox wiki, we do this once to save the mysql data: mysqldump -uxwiki -ppass here --add-drop-database playground /root/playground/playground.sql And then every day with a os-level cron job: /usr/bin/mysql playground /root/playground/playground.sql Thanks -Vincent On 9 Apr 2014 at 11:01:45, Pascal BASTIEN (pbasnews-xw...@yahoo.fr(mailto:pbasnews-xw...@yahoo.fr)) wrote: Hello, How do you reinit sandbox? With snippet and scheduler or bash + cron to launch a SQL code on database? Thxs; ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How do you reset sandbox?
On 9 Apr 2014 at 11:45:01, Pascal BASTIEN (pbasnews-xw...@yahoo.fr(mailto:pbasnews-xw...@yahoo.fr)) wrote: Ok but I wanted reset only my space Sandbox everyday. So I suppose I must use an update SQL request then (and delete xx/data_xwiki/storage/xwiki/Sandbox/) . You can easily do that with an XWiki Scheduler job and use scripting to copy “template” pages. Thanks -Vincent PS: But I think your idea to create a full playground wiki is a goord one (search engine is not polluted by sandbox space) thank you De : vinc...@massol.net À : XWiki Users Envoyé le : Mercredi 9 avril 2014 11h17 Objet : Re: [xwiki-users] How do you reset sandbox? Hi, If you’re referring to the sandbox wiki, we do this once to save the mysql data: mysqldump -uxwiki -p --add-drop-database playground /root/playground/playground.sql And then every day with a os-level cron job: /usr/bin/mysql playground /root/playground/playground.sql Thanks -Vincent On 9 Apr 2014 at 11:01:45, Pascal BASTIEN (pbasnews-xw...@yahoo.fr(mailto:pbasnews-xw...@yahoo.fr)) wrote: Hello, How do you reinit sandbox? With snippet and scheduler or bash + cron to launch a SQL code on database? Thxs; ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How do you reset sandbox?
Yes but in this case I must use groovy code. I will work on this solution. Are they a way to launch a jobs scheduled with cron ? (my server center prefer that than use quartz AND my xwiki scheduler don't work) De : vinc...@massol.net vinc...@massol.net À : XWiki Users users@xwiki.org Envoyé le : Mercredi 9 avril 2014 11h53 Objet : Re: [xwiki-users] How do you reset sandbox? On 9 Apr 2014 at 11:45:01, Pascal BASTIEN (pbasnews-xw...@yahoo.fr(mailto:pbasnews-xw...@yahoo.fr)) wrote: Ok but I wanted reset only my space Sandbox everyday. So I suppose I must use an update SQL request then (and delete xx/data_xwiki/storage/xwiki/Sandbox/) . You can easily do that with an XWiki Scheduler job and use scripting to copy “template” pages. Thanks -Vincent PS: But I think your idea to create a full playground wiki is a goord one (search engine is not polluted by sandbox space) thank you De : vinc...@massol.net À : XWiki Users Envoyé le : Mercredi 9 avril 2014 11h17 Objet : Re: [xwiki-users] How do you reset sandbox? Hi, If you’re referring to the sandbox wiki, we do this once to save the mysql data: mysqldump -uxwiki -p --add-drop-database playground /root/playground/playground.sql And then every day with a os-level cron job: /usr/bin/mysql playground /root/playground/playground.sql Thanks -Vincent On 9 Apr 2014 at 11:01:45, Pascal BASTIEN (pbasnews-xw...@yahoo.fr(mailto:pbasnews-xw...@yahoo.fr)) wrote: Hello, How do you reinit sandbox? With snippet and scheduler or bash + cron to launch a SQL code on database? Thxs; ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Few problems upgrading from 4.X to 5.4
Thanks for the effort, but no. Clearing browser cache does not help. Checked logs for some more errors: On the tree error: And i get similar errors of deprecated use of ... on every page -- View this message in context: http://xwiki.475771.n2.nabble.com/Few-problems-upgrading-from-4-X-to-5-4-tp7590020p7590051.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Few problems upgrading from 4.X to 5.4
On Tue, Apr 8, 2014 at 9:41 AM, gjordis harri.hietara...@dicode.fi wrote: I recently upgraded our wiki to 5.4 from 4.X installation. I used the same database and ran the migration process. All the pages work fine, but i was left with some issues I was hoping to get some help with. 1. Document tree no longer works. I get a 404 while getting /spaces?r=somenumber and wiki shows error : Server returned TRANSPORT_ERROR with no error message. Where did you get this URL (/spaces?r=somenumber) from? The URL is actually /xwiki/rest/wikis/xwiki/spaces?r=610837 and it's a REST URL. Does /xwiki/rest/wikis/xwiki/spaces work when you open it in a separate browser tab? If not then you have a problem with REST. There should be something related to this in the sever logs. Hope this helps, Marius 2. I cannot modify panels correctly with panel wizard: If I add a new widget to the panel, others may disappear. Or when I add a new widget, 3 widgets may appear, the same 3 every time. 3. Cannot update/uninstall extensions All the extensions I had in the old wiki are shown as installed, but when I try to uninstall them, I get an error saying that they are not installed. So if anyone has come accross any of these issues and has found a fix/workaround for it, I would be grateful to hear of it. -- View this message in context: http://xwiki.475771.n2.nabble.com/Few-problems-upgrading-from-4-X-to-5-4-tp7590020.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Statistics
You can always query the stats tables yourself. See http://extensions.xwiki.org/xwiki/bin/view/Extension/Most+Viewed+Articles . Hope this helps, Marius On Wed, Apr 9, 2014 at 11:03 AM, Pascal BASTIEN pbasnews-xw...@yahoo.fr wrote: Hello Are there a way to exclude all WebHome pages from MostviewedPages statistics table? Add a cron to delete all lines containing *.WebHome in xwikistatsdoc table of my postgres database? Thxs Pascal B ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Statistics
Thxs i will try that. De : Marius Dumitru Florea mariusdumitru.flo...@xwiki.com À : Pascal BASTIEN pbasnews-xw...@yahoo.fr; XWiki Users users@xwiki.org Envoyé le : Mercredi 9 avril 2014 15h10 Objet : Re: [xwiki-users] Statistics You can always query the stats tables yourself. See http://extensions.xwiki.org/xwiki/bin/view/Extension/Most+Viewed+Articles . Hope this helps, Marius On Wed, Apr 9, 2014 at 11:03 AM, Pascal BASTIEN pbasnews-xw...@yahoo.fr wrote: Hello Are there a way to exclude all WebHome pages from MostviewedPages statistics table? Add a cron to delete all lines containing *.WebHome in xwikistatsdoc table of my postgres database? Thxs Pascal B ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to clean-up page history in one click
On 04/08/2014 11:35 AM, Marius Dumitru Florea wrote: On Tue, Apr 8, 2014 at 6:21 PM, coldserenity rmunt...@softserveinc.com wrote: Hi, We are keeping record of daily team progress in XWiki which is basically a plain document with table listing all active tasks and their changing statuses. Each day we copy notes from previous day by copy XWiki document action. This has one major drawback: current version of the document is 2500 which means each day we create new document with 2.5K history versions. Is there a simple (without scripting) way to delete history? a) for single document /xwiki/bin/deleteversions/Sandbox/Foo?rev1=1.1rev2=3.1 In one click on a link :) (you can of course generate the link with a script that fills in the right version range, which I hard-coded). There's also /xwiki/bin/reset/Sandbox/Foo, but by default it will require two clicks, one for opening the confirmation page and one for confirming the action. You can generate a link that also includes the confirmation: [[Reset historypath:$doc.getURL(reset, confirm=1form_token=$!{services.csrf.getToken()})]] The problem with both these links is that they they don't reset the version to 1.1, the document will still have version 2500.1, just that there won't be any 1.1 to 2499.1 versions in the history. You can write a Groovy script or a Java component that can clean up the history on a bunch of documents, including resetting the version to 1.1, but that's a bit harder and requires working with the internal XWikiDocument and XWikiDocumentArchive. Hope this helps, Marius b) for set of documents with common parent Regards, Roman PS: this is the reason for opening http://jira.xwiki.org/browse/XWIKI-10126 -- Sergiu Dumitriu http://purl.org/net/sergiu ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users