IRC Archive for channel #xwiki on 01 July 2015

Last modified by Vincent Massol on 2015/07/01 23:51

<abusenius_> has quit
01:45 <vmassol> has joined #xwiki
01:49 <vmassol> has quit
02:05 <OSIMasson> has quit
02:26 <[d__d]> has quit
02:37 <[d__d]> has joined #xwiki
02:57 <OSIMasson> has joined #xwiki
03:11 <xwikiorg_guest_2> has joined #xwiki
03:14 <xwikiorg_guest_2> Quick question. I deleteed the out of the box Navigation control and want to recreate it. I recreate the control i the panels and used the panel wizard to add it to the left sidebar. But it *only* seems to display contents while in the panel wizard administration page. When I save the changes and view the space normally, the new Nav panel is empty. Any idea what may be wrong?
03:14 <OSIMasson> has quit
03:16 <xwikiorg_guest_2> Example: http://puu.sh/iIV6x/f225e09e05.png (content viewable while administering the panel wizard)
03:16 <xwikiorg_guest_2> Example: http://puu.sh/iIV9N/fd4b2cbdf6.png (content not viewable while viewing the space)
03:17 <xwikiorg_guest_2> is now known as <ryanewtaylor>
03:42 <ryanewtaylor> New clues. When I use the FF debugger I see that http://localhost:8080/xwiki/bin/view/Main/tree-finder.js cannot be found when not administering a page. However, when administering a page this is found http://localhost:8080/xwiki/bin/admin/Main/tree-finder.js
03:54 <ryanewtaylor> has quit
06:50 <mflorea> has joined #xwiki
08:13 <cjd> has quit
08:13 <tmortagne> has joined #xwiki
08:42 <mflorea> has quit
08:45 <msmeria> has joined #xwiki
08:50 <woshilapin> has quit
09:03 <vmassol> has joined #xwiki
09:04 <Trefex> has joined #xwiki
09:07 <mflorea> has joined #xwiki
09:13 <mflorea> has quit
09:13 <mflorea1> has joined #xwiki
09:20 <KermitTheFragger> has joined #xwiki
09:25 <woshilapin> has joined #xwiki
09:28 <gdelhumeau> has joined #xwiki
09:39 <cjd> has joined #xwiki
10:06 <Slashman> has joined #xwiki
10:22 <lucaa> has joined #xwiki
10:43 <msmeria1> has joined #xwiki
10:44 <msmeria> has quit
11:47 <evalica> has joined #xwiki
11:57 <Enygma`> has joined #xwiki
12:07 <evalica> has quit
12:15 <evalica> has joined #xwiki
12:27 <cjd> has quit
12:58 <gsmeria> has joined #xwiki
13:19 <msmeria> has joined #xwiki
13:22 <msmeria1> has quit
13:25 <lucaa> has quit
13:46 <woshilapin> has quit
14:06 <OSIMasson> has joined #xwiki
14:21 <msmeria1> has joined #xwiki
14:22 <msmeria> has quit
14:37 <cjd> has joined #xwiki
14:38 <woshilapin> has joined #xwiki
14:42 <lucaa> has joined #xwiki
15:44 <tillo> has quit
15:44 <lynxt> has quit
16:10 <vmassol> ok I've done a POC so that typing http://localhost:8080/xwiki/bin/view/Main/Test2/ leads to Main.Test2.WebHome
16:11 <vmassol> one problem is that it's no longer possible to create Main.Test2 pages (ie terminal pages)
16:12 <vmassol> (since I do a forward to Main.Test2.WebHome and thus clicking edit creates Main.Test2.WebHome)
16:13 <vmassol> hmm no strike that
16:14 <vmassol> we're supposed to show the Add Page UI when clicking edit (if the user is advanced)
16:14 <vmassol> so it is still possible :)
16:14 <vmassol> (just forgot that momentarily)
16:14 <vmassol> hmmm
16:14 <vmassol> s/hmmm/
16:16 <vmassol> so in that Add Page UI we'll need to handle when the passed page name is "WebHome"
16:19 <vmassol> if you're interested this is my POC: https://gist.githubusercontent.com/vmassol/3d1ae62c28f438eb5aa1/raw/b2558f102593ca989d4ebbc6468d5bab87ba5aa8/gistfile1.txt
16:22 <vmassol> we have a problem for /view/Test for example since that leads to view.Test (and thus view.Test.WebHome). I can change the parsing to lead to Main.Test (and thus to Main.Test.WebHome) but I don't see how to lead to Test.WebHome...
16:24 <gsmeria> has quit
16:24 <vmassol> tmortagne, Enygma`: any idea?
16:25 <vmassol> basically in the standard URL scheme I've implemented only NS and the ND part if in XWikiAction ATM
16:25 <vmassol> I guess this could mean that we need to implement ND in the URL module which means it would need DB access…. which I wanted to avoid...
16:26 <vmassol> s/if in XWikiAction/is in XWikiAction
16:27 <msmeria1> has quit
16:28 <vmassol> so I'm being tempted once more to introduce some different resource types for ND… (ie equivalent of "bin", "wiki" for ND shortcuts)
16:31 <KermitTheFragger> has quit
16:32 <vmassol> note that it would have some consequences: 1) each url scheme will need to implement that too (instead of only once in XWikiAction) and 2) it's more performant since there's no DB check, 3) users may find it a bit strange to see the various resource types in URLs
16:33 <OSIMasson> has quit
16:36 <Trefex1> has joined #xwiki
16:38 <evalica1> has joined #xwiki
16:46 <evalica> has quit
16:46 <Trefex> has quit
16:55 <vmassol> actually the new resource type would not work with Short URLs. And BTW I think that short URL don't work with path-based multiwiki right now
16:55 <vmassol> strike that last part, it does
16:55 <vmassol> (you just have a long url for path-based)
16:55 <vmassol> (you cannot remove the /wiki/ type)
16:56 <vmassol> so only the main wiki can have short urls...
16:57 <vmassol> so with special resource types for ND short url would work but only for one type
16:58 <vmassol> which would be a problem
17:04 <tmortagne> has quit
17:05 <vmassol> ok I could do a special handling when we have just a single element after the action… and consider it's a space and not a page…
17:10 <Enygma`> I thought we agreed that if the user types a manual URL of /A/B he will be allowed to create the terminal document
17:10 <Enygma`> and from the UI we will ensure that he always lands on /A/B/
17:11 <Enygma`> so that underneath there is just NS
17:11 <Enygma`> and ND is only exposed by the UI
17:11 <Enygma`> otherwise, if we go beyond this, we can not really support terminal documents anymore, for the reasons you mentioned above
17:14 <mflorea1> has quit
17:14 <vmassol> this is ok Enygma`
17:14 <vmassol> "(just forgot that momentarily)"
17:14 <vmassol> it's the part after that causes problems
17:15 <vmassol> ie the part that starts with "we have a problem for /view/Test for example "
17:15 <vmassol> but I tihnk I'll just handle it as a special case in the url parser and we'll put that in the backward compat part of release notes
17:17 <Enygma`> yes, I mean the user should land on /view/Test/... however, /view/Test is a problem even right now IMO, since right now it resolves to view.Test which is plain wrong
17:17 <vmassol> Enygma`: I can fix that easily
17:17 <vmassol> (as I mentioned above)
17:17 <vmassol> but it would still be a problem
17:18 <Enygma`> so, IMO, that is a bug and we should fix it accordingly...
17:18 <Enygma`> Main.Test you mean?
17:18 <vmassol> you're mixing 2 things
17:18 <vmassol> yes normally view/Test should lead to Main.Test
17:18 <vmassol> but that wouldn't work with ND
17:18 <Enygma`> why?
17:18 <Enygma`> that would just be a terminal document
17:18 <Enygma`> and we`re fine with it
17:18 <vmassol> yes which is why it wouldn't work with ND
17:18 <vmassol> :)
17:19 <Enygma`> I don`t understand
17:19 <vmassol> when you type view/Test in ND you expect to go to Test.WebHome
17:19 <Enygma`> no, that`s the thing... you don`t *type* /view/Test :)
17:19 <vmassol> you do
17:19 <Enygma`> if you do, then you know what you are doing
17:19 <Enygma`> and understand that you are in NS
17:19 <vmassol> otherwise we woumdn't have this discussion at all
17:19 <vmassol> :)
17:19 <vmassol> and we can forget all that I'm doing
17:20 <vmassol> much simpler for sure!
17:20 <Enygma`> so you mean regular users manipulate the URL?
17:20 <vmassol> ofc
17:20 <vmassol> that's even part of the user stories
17:20 <Enygma`> I bet they can`t even guess the current URL, most of them :)
17:22 <vmassol> in any case we need some logic in the URL and it wouldn't be nice that all URL point to WebHome except when you're not in a nested space
17:22 <Enygma`> about the user stories... normally we should be perfectly fine with /A/, however, if you were to migrate from a previous system and you want to keep your URLs, then indeed /A is not the same as /A/
17:22 <Enygma`> so you would need the action to do the work :/
17:22 <vmassol> I would have loved for /A/ to be fine :)
17:22 <vmassol> (for the use'r)
17:23 <vmassol> *user
17:23 <vmassol> but we can't expect that
17:24 <vmassol> btw the same exists for /Test (without "view" in front)
17:25 <vmassol> (right now that goes to the default space)
17:25 <vmassol> these 2 are edge cases so I don't think they'd be any major issue
17:30 <vmassol> Enygma`: we have a story that says "As a wiki user, I can move my document from its current path such that it no longer has a parent document and has a top-level path, so that I can move sub aspects out from my team's document path."
17:30 <vmassol> so the user will expect that /view/MyDoc is going to display his doc
17:50 <Enygma`> I know
17:50 <Enygma`> I just was not aware that we really want /view/A instead of /view/A/
17:50 <Enygma`> now I get it
17:51 <vmassol> ok
18:30 <vmassol> Enygma`: I don't like to have some special condition in the url module for nested doc but I don't see a way out of this ATM
18:31 <vmassol> if you have a suggestion please let me know… we can brainstorm together too if you want
18:31 <vmassol> (skype call I mean)
18:45 <Bugen_do> has joined #xwiki
18:55 <vmassol> ok I have something working
18:55 <vmassol> I'm not very proud of the code though
18:56 <cjd> /topic 18:55:48         @vmassol | I'm not very proud of the code though
18:56 <cjd> oops
18:56 <vmassol> yeah we're simulating nested documents when what we have in the model is nested spaces
18:56 <vmassol> and we're offering simulated URLs too
18:57 <vmassol> so this can only lead to "hack"s in the code...
18:57 <cjd> C:\Sounds\\ Good\\ To\\ Me\\
18:57 <vmassol> :)
19:10 <Trefex1> has quit
19:23 <abusenius_> has joined #xwiki
19:28 <mflorea> has joined #xwiki
19:28 <woshilapin> has quit
19:29 <abusenius_> has quit
19:32 <mflorea> has quit
19:47 <abusenius_> has joined #xwiki
20:06 <cjd> has quit
20:35 <lucaa> has quit
20:37 <cjd> has joined #xwiki
20:43 <lynxt> has joined #xwiki
20:44 <tillo> has joined #xwiki
20:46 <cjd> has quit
20:47 <lucaa1> has joined #xwiki
21:13 <lucaa1> has quit
21:16 <gdelhumeau> has quit
21:21 <lynxt> has quit
21:22 <tillo> has quit
21:44 <lynxt> has joined #xwiki
21:44 <tillo> has joined #xwiki
22:06 <Bugen_do> has quit
22:21 <cjd> has joined #xwiki
22:35 <woshilapin> has joined #xwiki
22:46 <Slashman> has quit
22:48 <gsmeria> has joined #xwiki
23:32 <gsmeria> has quit
23:51 <gsmeria> has joined #xwiki
Tags:
   

Get Connected