papriwalprateek / kuesuto

Dq Entitize
0 stars 0 forks source link

Uncached articles and unupdated p_list #18

Open vinayrajchoudhary opened 10 years ago

vinayrajchoudhary commented 10 years ago

There are articles and may be other source nodes in the database which are not cached!!!

you can see such articles by doing Entity.where("addr"=>/article/i).where("cache"=>nil).pluck[:addr]

these are not showing up on the website as well .. can be seen on http://fathomless-dusk-9169.herokuapp.com/repo/dq/algorithms/sequence%20sorting/Timsort/i:article

other such nodes should also be scanned

also p_list of timsort is not updated properly like it shows 1 pseudocode while it has none!

vinayrajchoudhary commented 10 years ago

The one code that you wrote yesterday to correct some db problem and this one that checks for problems in db like

-->Timsort has two algorithms which are same-- checking and removing duplicity

-->p_list updated or not -- running p_list updater and make it throw error wherever it could not update, because there can be such cases where it encounter error while updating p_list

-->caches updated or not-- cache in case of articles

-->youtube video --not that important So the codes for these must be kept properly for future also so that we can catch such errors in future or you may also write tests for such conditions

vinayrajchoudhary commented 10 years ago

you can also remove property_list attribute from all of algorithms, if it is not used --- because i see 19 algorithms have property_list=="hi"!!! that confuses me sometimes in thinking that it might be an error

papriwalprateek commented 10 years ago

20 pull request solves the issue. Uncached articles have been either removed or cached depending on the respective site status. p_list has been updated. Nil source entities have been removed from the system.

@sumit7 One more change - a bit of dq-readability presentation technique has been changed in database. Though i think it should not affect other things.

papriwalprateek commented 10 years ago

removed attribute property_list from the corpus

papriwalprateek commented 10 years ago

corrected sources of description i.e nist and wolfram.