Difference between revisions of "ClaimsCasespace"

(Steps to get to DoneDone)
Line 15: Line 15:
  
 
== Steps to get to [[DoneDone]] ==
 
== Steps to get to [[DoneDone]] ==
* Make claims respect casespace.
+
* <s>Make claims respect casespace.</s> Only two places where title was being used to fetch a page record. Used our casespace method instead of the existing find_from_prefixed method.
 
* <s>Handle casespace for namespace names.</s>
 
* <s>Handle casespace for namespace names.</s>
 
* <s>Write an efficient model method to cater for casespace and namespace issues.</s> Found another variant of this functionality but it used expensive join operation between page and au_page_lookup table. Came up with an ''efficient'' solution that does not require joins and uses sql with attributes in where clause that have index defined on them.  
 
* <s>Write an efficient model method to cater for casespace and namespace issues.</s> Found another variant of this functionality but it used expensive join operation between page and au_page_lookup table. Came up with an ''efficient'' solution that does not require joins and uses sql with attributes in where clause that have index defined on them.  

Revision as of 13:34, 11 February 2008

OurWork Edit-chalk-10bo12.png

What (summary)

Make claims work with casespace

Why this is important

Claims is shaping up to be very important for us, and we need to get it working with our existing infrastructure

DoneDone

  • Page.find_by_casespace(casename) works efficiently in compost (this is an ActiveRecord model level function)
  • claim.pages honors casespace
  • parsing claims that contain pages that DON'T yet exist creates claims_pages for them anyway, so that
    • once a missing page is created (some casespace match), everything works without requiring a reparse
  • All of this is well tested

Steps to get to DoneDone

  • Make claims respect casespace. Only two places where title was being used to fetch a page record. Used our casespace method instead of the existing find_from_prefixed method.
  • Handle casespace for namespace names.
  • Write an efficient model method to cater for casespace and namespace issues. Found another variant of this functionality but it used expensive join operation between page and au_page_lookup table. Came up with an efficient solution that does not require joins and uses sql with attributes in where clause that have index defined on them.
  • Bootstrapping.


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