[jira] [Updated] (SOLR-10595) Redirect Confluence pages to new HTML Guide
[ https://issues.apache.org/jira/browse/SOLR-10595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hoss Man updated SOLR-10595: Attachment: solr_name_to_new.map.txt solr_id_to_new.map.txt solr_redirects.conf bq. An elegant approach would be that ... I'm not really sure that understand what you're suggesting, or how it would be beneficial in the long run -- but it definitely seems to be off topic for this particular jira given the concensus so far... Did you mean to post that in the LUCENE-7924 issue i spun off? Ugh ... it's been far too long since i had to do non-trivial stuff with mod_rewrite. My RewriteMap+RewriteCond-fu was weak and took far longer then i expected to get these working... I've tested the attached solr_redirects.conf as best I could using a mock-server, with the attached *.map.txt files generated using the following perl scripts... {noformat} perl -nle 'chomp; @x = split /\s+/, $_, 3; print "$x[0] /$x[1].html"' < ../new-page-urls.txt > solr_id_to_new.map.txt perl -nle 'chomp; @x = split /\s+/, $_, 3; $x[2] =~ s/\s+/\+/g; print "$x[2] /$x[1].html"' < ../new-page-urls.txt > solr_name_to_new.map.txt {noformat} ...and then manually tweaking the entry for "/" and adding the header comments. I'll open an INFRA ticket with a summary of what we want and link back here. > Redirect Confluence pages to new HTML Guide > --- > > Key: SOLR-10595 > URL: https://issues.apache.org/jira/browse/SOLR-10595 > Project: Solr > Issue Type: Sub-task > Security Level: Public(Default Security Level. Issues are Public) > Components: documentation >Reporter: Cassandra Targett >Assignee: Hoss Man > Attachments: new-page-urls.txt, page-tree.xml, > solr_id_to_new.map.txt, solr_name_to_new.map.txt, solr_redirects.conf > > > Once the new Ref Guide is live, we may want to redirect pages from Confluence > to the new HTML version. > I'm undecided if this is the best idea, I can see pros and cons to it. On the > pro side, I think it helps firmly establish the move away from Confluence and > helps users adjust to the new location. But I could see the argument that > redirecting is overly invasive or unnecessary and we should just add a big > warning to the page instead. > At any rate, if we do decide to do it, I found some Javascript we could tell > Confluence to add to the HEAD of each page to auto-redirect. With some > probably simple modifications to it, we could get people to the right page in > the HTML site: > https://community.atlassian.com/t5/Confluence-questions/How-to-apply-redirection-on-all-pages-on-a-space/qaq-p/229949 > -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-10595) Redirect Confluence pages to new HTML Guide
[ https://issues.apache.org/jira/browse/SOLR-10595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hoss Man updated SOLR-10595: Attachment: new-page-urls.txt bq. ask infra to modify the cwiki configs so any {{https://cwiki.apache.org/confluence/display/solr/.*}} URLs get rewritten ... Hmmm... the only hitch to that plan is that for pages with "special" characters in their names, cwiki doesn's use URLs with the space ({{/solr/}} in them, and just uses the pageId as the URL... * Cross Data Center Replication (CDCR) ** https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=62687462 * Collections / Core Admin ** https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=32604191 * Plugins & Stats Screen ** https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=32604180 ...i think there are handul more like that (with "/" in their title) In any case, i'm attaching a tab delimited file based on the page-tree.xml that cassandra provided with the {{pageId,new-short-name,Original Title}} of every cwiki page -- we can ultimately use this to create whatever type of redirect mapping we need (mod_rewrite {{RewriteMap}} dbm file, javascript, whatever...) File created via with the following perl one liner, followed by a little manual cleanup... {code} perl -nle 'if (/ new-page-urls.txt {code} > Redirect Confluence pages to new HTML Guide > --- > > Key: SOLR-10595 > URL: https://issues.apache.org/jira/browse/SOLR-10595 > Project: Solr > Issue Type: Sub-task > Security Level: Public(Default Security Level. Issues are Public) > Components: documentation >Reporter: Cassandra Targett > Attachments: new-page-urls.txt, page-tree.xml > > > Once the new Ref Guide is live, we may want to redirect pages from Confluence > to the new HTML version. > I'm undecided if this is the best idea, I can see pros and cons to it. On the > pro side, I think it helps firmly establish the move away from Confluence and > helps users adjust to the new location. But I could see the argument that > redirecting is overly invasive or unnecessary and we should just add a big > warning to the page instead. > At any rate, if we do decide to do it, I found some Javascript we could tell > Confluence to add to the HEAD of each page to auto-redirect. With some > probably simple modifications to it, we could get people to the right page in > the HTML site: > https://community.atlassian.com/t5/Confluence-questions/How-to-apply-redirection-on-all-pages-on-a-space/qaq-p/229949 > -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-10595) Redirect Confluence pages to new HTML Guide
[ https://issues.apache.org/jira/browse/SOLR-10595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Cassandra Targett updated SOLR-10595: - Attachment: page-tree.xml Adding page-tree.xml from Confluence conversion. > Redirect Confluence pages to new HTML Guide > --- > > Key: SOLR-10595 > URL: https://issues.apache.org/jira/browse/SOLR-10595 > Project: Solr > Issue Type: Sub-task > Security Level: Public(Default Security Level. Issues are Public) > Components: documentation >Reporter: Cassandra Targett > Attachments: page-tree.xml > > > Once the new Ref Guide is live, we may want to redirect pages from Confluence > to the new HTML version. > I'm undecided if this is the best idea, I can see pros and cons to it. On the > pro side, I think it helps firmly establish the move away from Confluence and > helps users adjust to the new location. But I could see the argument that > redirecting is overly invasive or unnecessary and we should just add a big > warning to the page instead. > At any rate, if we do decide to do it, I found some Javascript we could tell > Confluence to add to the HEAD of each page to auto-redirect. With some > probably simple modifications to it, we could get people to the right page in > the HTML site: > https://community.atlassian.com/t5/Confluence-questions/How-to-apply-redirection-on-all-pages-on-a-space/qaq-p/229949 > -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org