Difference between revisions of "RationalizeArticleCapitalization"

(Discussion)
Line 30: Line 30:
 
==Discussion==
 
==Discussion==
 
: Could there be a way to seperate collisions?  For example, I would like to know the group of [[redirect]]s as opposed to the full [[wiki]] page collisions. [[MarkDilley]]
 
: Could there be a way to seperate collisions?  For example, I would like to know the group of [[redirect]]s as opposed to the full [[wiki]] page collisions. [[MarkDilley]]
: Mark, I was planning on excluding redirects from the page.  Instead, we would simply delete every redirect that has a CaseSpace conflict after all the "real" pages have been consolidated.
+
: Mark, I was planning on excluding redirects from the page.  Instead, we would simply delete every redirect that has a CaseSpace conflict after all the "real" pages have been consolidated. [[User:Stephen Judkins]]

Revision as of 00:08, 24 April 2007

This is the plan to bring case insensitivity to AboutUs. Things that content people will be interested in are in bold, everything else are implementation details. This is basically the plan I described to you on Friday. Please leave any comments or feedback on this page!

To get the "CaseSpace" title of a given article, we will do the following:

  1. Convert to lowercase. CamelCase becomes camelcase
  2. Strip spaces, underscores, question marks, and parentheses. "knock knock? whos_there" becomes "knockknockwhosthere"

Note that the users should never see these CaseSpace titles. They should only be used in the system for disambiguation.

Step 1

  • Create au_page_lookup_scratch table, populate with pages
  • Add hooks to block new page creation with casespace conflicts
  • Add hooks to add new pages to au_page_lookup_scratch table
  • Block creation of new pages that differ from existing pages only by capitalization.

Step 2

  • Create page with all pages with casespace conflicts, exluding redirects.
  • Have content do their thing and resolve all casespace conflicts, excluding redirects.

Step 3

  • Create au_page_lookup table, with primary unique key for casespace name.
  • Move hooks from #1 to point to au_page_lookup
  • Populate using same method as #1
  • Add hooks so all index.php?title=... queries are checked from au_page_lookup, 302'd to their real homes if necessary
  • Redirect all URLs to their proper capitalization, ie http://www.aboutus.org/cASEsPACE redirects to http://www.aboutus.org/CaseSpace.

Step 4

  • Figure out what to do with red/blue links in the parser.


Discussion

Could there be a way to seperate collisions? For example, I would like to know the group of redirects as opposed to the full wiki page collisions. MarkDilley
Mark, I was planning on excluding redirects from the page. Instead, we would simply delete every redirect that has a CaseSpace conflict after all the "real" pages have been consolidated. User:Stephen Judkins


Retrieved from "http://aboutus.com/index.php?title=RationalizeArticleCapitalization&oldid=6300660"