Notice

This page show a previous version of the article

This is a general work log updated daily.

Today's TODO list:

  • check in the MEGA PATCH
  • keep working on fixing

This week's TODO list:

  • make sure code works, fix bugs, breakage
  • work some more on the api:
    • add oauth2 authentication
    • remove exposed text fields from the model resource
    • hook some post methods to expose the python api
    • disable exposed pagination
    • write and expose a saner pagination class

Work log

Week 1 19/5

Monday

  • compiled dependencies and tools (sage, git, etc..)
  • set up virtual env
  • set up pytoeba-dev repo/structure
  • setup pytoeba's project structure

Tuesday

  • added sentence and link models
  • threw out sage and compiled scipy/numpy
  • explored agpl for graph manipulation

Wednesday

  • added log model
  • added correction model
  • added tag models
  • added audio model
  • set up work log

Thursday

  • read py.test documentation
  • read django testing documentation
  • wrote a passing test for the sentence manager

Friday

  • read "Test Driven development with Python"

Saturday

  • Finished the sentence manager

Week 2 26/5

Monday/Tuesday

  • added scaffolding/structure for tests and fixtures using py.test
  • added database/form validation tests for:
    • sentence/link models
    • correction model
    • tag models
    • audio models
  • generated coverage reports

Wednesday

  • refactored tests and fixtures to be more modular
  • added more tests and expanded the manager some more

Thursday/Friday/Saturday

  • N/A

Week 3 2/6

Week 4

  • User, SocialAccount, Wall, Comment, Message models/managers
  • python-social-auth integration

Week 5

  • Haystack integration
  • mirroring haystack's searchqueryset api on models with indices
  • Added indices for sentences, comments, messages, wall posts, comments

Week 6

  • Exposed tastypie model resources (still needs work)
  • Added HTTPBasicAuth/SessionAuth to the api
  • Exposed haystack's auto_query through tastypie

Week 7

  • fixed various bugs
  • sql optimizations (bulk upsert, bulk update, etc...)
  • reading ng-book