Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

bug 642873 Feature/status #7

Merged
merged 40 commits into from

3 participants

@rafrombrc
Owner

this is a fairly sizeable overhaul of the linkoauth setup, w/ some code reorganization and the introduction of a "Services" infrastructure that knows how to check a service status database before deciding whether or not to actually make a request of a 3rd party service.

billrest and others added some commits
@billrest billrest initial commit of the services status DB 1baec6d
@billrest billrest added plugin-based registries 2ed3ce4
@billrest billrest started to work on the succ/fail callback 7e603f5
@billrest billrest added an errors module and removed the assert calls in base in favor …
…of a real exception class
c27cd8e
@billrest billrest now uses the BadVersionError 22880ef
@billrest billrest Facebook now uses the base requester app eef98c1
@billrest billrest moving more api classes to BaseRequester db3ba71
@billrest billrest simplified the model: one Services class that does all the job. Backe…
…nds can raise BackendErrors, which will be used to increment the failure status
27c99ce
@billrest billrest protecting all pylibmc calls e9bf1b3
@billrest billrest added ttl support d466aaf
@billrest billrest make sure the middleware catch read errors e9dcae2
@billrest billrest removed deprecated apis 7e3f48f
@billrest billrest added a DomainNotRegisteredError that gets raised if a call is made o…
…n Services
43f798d
@billrest billrest removed remaining assert calls 3ead428
@billrest billrest moved the status error classes to errors 8a94cc1
@billrest billrest base module cleanup b25f121
@billrest billrest fixed the ugly 5 spaces indentation 69562e1
@billrest billrest cleaned up the facebook_ module e2cfe81
@billrest billrest more flake8 fixes 0f5ba5d
@billrest billrest more cleanup dc1751c
@billrest billrest added missing headers fa10d30
@billrest billrest reorganized the backends in their own subdir 702010f
@billrest billrest added an option to disable the membase feedback 42cc0d8
@billrest billrest X-Target-Service => X-Target-Domain f1a1f92
@billrest billrest added a simple cli c40a253
@rafrombrc rafrombrc Merge branch 'master' into feature/status
Conflicts:
	linkoauth/backends/twitter_.py
	linkoauth/facebook_.py
	linkoauth/tests/test_base.py
c49b216
@rafrombrc rafrombrc import OAuthKeysException from the right location 5ed63e0
@rafrombrc rafrombrc add ``get_name`` classmethod to the TwitterRequester to fulfill the A…
…PI and add

domain as an instance attribute for parity w/ the other requesters
fccb04f
@rafrombrc rafrombrc just test the Requesters directly, get_provider is no more. f7a4844
@rafrombrc rafrombrc mock the memcache client and use it to get the tests passing again b20bb4c
@mixedpuppy mixedpuppy add oauth verify call a978b0d
@rafrombrc rafrombrc Merge branch 'feature/status' of github.com:mozilla/server-share-core…
… into feature/status
efabcbc
@rafrombrc rafrombrc wrap the memcache object in our own thin wrapper so we can do some sl…
…ightly

kludgey connection initialization stuff to prevent doing too much work at module
scope (import side effect == bad).  there's a very slight run-time performance
impact, which I've tried to minimize; hopefully we can get rid of this stuff when we
purge pylons...
eb35f49
@rafrombrc rafrombrc convert TypeError to OAuthKeysException when fetching the requester s…
…o the error

is correctly represented to the calling client code.
fc67853
@rafrombrc rafrombrc BaseException.message is deprecated. 255e648
@rafrombrc rafrombrc whitespace 3fe4949
@rafrombrc rafrombrc don't do status updates for the responder API 2696240
@rafrombrc rafrombrc Merge branch 'master' into feature/status
Conflicts:
	linkoauth/backends/linkedin_.py
	linkoauth/backends/twitter_.py
	linkoauth/backends/yahoo_.py
	linkoauth/facebook_.py
	linkoauth/protocap.py
9b29883
@rafrombrc rafrombrc adjust the Services.getcontacts implementation to match the new page-…
…aware API
0522ef8
@rafrombrc rafrombrc never use {} as a default argument, since any changes made to the val…
…ue will persist

through to the next function call; converted all of these to Nones.
98501f2
@rafrombrc rafrombrc merged commit 98501f2 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 30, 2011
  1. @billrest
Commits on Mar 31, 2011
  1. @billrest

    added plugin-based registries

    billrest authored
Commits on Apr 1, 2011
  1. @billrest
Commits on Apr 11, 2011
  1. @billrest
  2. @billrest

    now uses the BadVersionError

    billrest authored
  3. @billrest
  4. @billrest
Commits on Apr 12, 2011
  1. @billrest

    simplified the model: one Services class that does all the job. Backe…

    billrest authored
    …nds can raise BackendErrors, which will be used to increment the failure status
  2. @billrest

    protecting all pylibmc calls

    billrest authored
  3. @billrest

    added ttl support

    billrest authored
  4. @billrest
Commits on Apr 13, 2011
  1. @billrest

    removed deprecated apis

    billrest authored
  2. @billrest
  3. @billrest
  4. @billrest
  5. @billrest

    base module cleanup

    billrest authored
  6. @billrest
  7. @billrest
  8. @billrest

    more flake8 fixes

    billrest authored
  9. @billrest

    more cleanup

    billrest authored
  10. @billrest

    added missing headers

    billrest authored
  11. @billrest
Commits on Apr 14, 2011
  1. @billrest
  2. @billrest
Commits on Apr 15, 2011
  1. @billrest

    added a simple cli

    billrest authored
Commits on Apr 18, 2011
  1. @rafrombrc

    Merge branch 'master' into feature/status

    rafrombrc authored
    Conflicts:
    	linkoauth/backends/twitter_.py
    	linkoauth/facebook_.py
    	linkoauth/tests/test_base.py
  2. @rafrombrc
  3. @rafrombrc

    add ``get_name`` classmethod to the TwitterRequester to fulfill the A…

    rafrombrc authored
    …PI and add
    
    domain as an instance attribute for parity w/ the other requesters
  4. @rafrombrc
Commits on Apr 19, 2011
  1. @rafrombrc
  2. @mixedpuppy

    add oauth verify call

    mixedpuppy authored
  3. @rafrombrc
Commits on Apr 21, 2011
  1. @rafrombrc

    wrap the memcache object in our own thin wrapper so we can do some sl…

    rafrombrc authored
    …ightly
    
    kludgey connection initialization stuff to prevent doing too much work at module
    scope (import side effect == bad).  there's a very slight run-time performance
    impact, which I've tried to minimize; hopefully we can get rid of this stuff when we
    purge pylons...
  2. @rafrombrc

    convert TypeError to OAuthKeysException when fetching the requester s…

    rafrombrc authored
    …o the error
    
    is correctly represented to the calling client code.
  3. @rafrombrc
  4. @rafrombrc

    whitespace

    rafrombrc authored
  5. @rafrombrc
  6. @rafrombrc

    Merge branch 'master' into feature/status

    rafrombrc authored
    Conflicts:
    	linkoauth/backends/linkedin_.py
    	linkoauth/backends/twitter_.py
    	linkoauth/backends/yahoo_.py
    	linkoauth/facebook_.py
    	linkoauth/protocap.py
Commits on Apr 22, 2011
  1. @rafrombrc
  2. @rafrombrc

    never use {} as a default argument, since any changes made to the val…

    rafrombrc authored
    …ue will persist
    
    through to the next function call; converted all of these to Nones.
Something went wrong with that request. Please try again.