Commit Graph

44 Commits

Author SHA1 Message Date
Matthew Jones
84c2e71907 Merge pull request #541 from matburt/database_config_source
Database config source
2016-01-12 11:20:43 -05:00
Matthew Jones
910f9bd4a3 Fixing up some flake8 issues 2015-12-17 10:48:15 -05:00
Matthew Jones
9db80bd9fc Support tower license within the database
With backwards support for the file-based license
2015-12-16 11:21:52 -05:00
Matthew Jones
dfd1ca4ae9 Relocate AUTH_TOKEN_* settings reference 2015-12-15 15:37:26 -05:00
Chris Meyers
fe9f502e91 flake8 fix 2015-12-04 10:49:04 -05:00
Matthew Jones
7ffbb2dac6 Don't save the instance in set_actor if the user is invalid 2015-11-18 07:27:52 -05:00
Matthew Jones
98965d4792 Fix typo in AnonymousUser 2015-11-17 12:46:50 -05:00
Matthew Jones
564f9e2c58 Fix an issue reauthing as a social auth user
If a social auth user is deleted and then attemnpts to relogin after the
old user object has been removed then it can cause an error.  So here
we'll add an extra lookup for the user just to verify
2015-11-17 12:42:33 -05:00
Chris Meyers
eb8219fd9f add Auth-Token-Timeout to http headers 2015-09-23 10:30:19 -04:00
John Mitchell
32d1c0e4db fixed copyright date 2015-06-11 16:10:23 -04:00
Matthew Jones
31d0342d41 More copyright headers for api side stuff 2015-05-29 12:10:40 -04:00
Matthew Jones
b3da3b34a3 Changing some legal headers for python source files 2015-05-29 12:10:39 -04:00
Matthew Jones
bb3732b2c1 Cleaning up some flake8 errors, pyflakes in this case 2015-02-10 17:00:23 -05:00
Chris Meyers
da63fc64d0 redirect to primary host with the original requesting path preserved 2015-01-21 13:53:46 -05:00
Luke Sneeringer
c02647cf04 Always allow the /ping/ endpoint, even on secondaries.
Also, if content is None, it does not have the keys we are checking for
in the ./configure script.
2014-12-17 13:09:58 -06:00
Luke Sneeringer
9dfa26fa58 Do not use ip_address on instances anymore. 2014-12-02 13:17:38 -06:00
Luke Sneeringer
bc763eab57 Know how to spot an HA environment. 2014-10-20 08:04:17 -05:00
Luke Sneeringer
1ae333ca1d HA redirection. 2014-10-20 08:04:16 -05:00
Luke Sneeringer
0e623f2337 Start of HA middleware. 2014-10-20 08:04:16 -05:00
Matthew Jones
99f2f65be2 Fix issue AC-1047, don't use pk when verifying that the user exists and isn't anonymous 2014-04-15 11:46:16 -04:00
Matthew Jones
a6a1a6504a Check for anonymous user in the activity stream middleware and don't
attempt to attach user information to the event
2014-02-21 11:09:03 -05:00
Chris Church
27fb54b2a7 AC-984 Prevent signal handlers from being run unnecessarily when deleting inventory, remove unnecessary extra queries, use update_fields when possible. 2014-01-27 18:37:51 -05:00
Chris Church
2b7af0a2ec Happy new year!!! 2014-01-02 11:51:43 -05:00
Matthew Jones
61059fa1a4 Work to complete AC-673, mass refactoring of the activity stream. Some work towards AC-664/662 but will complete on those issues. This also fixes issue AC-743 (Adding help text for OPTIONS requests) and AC-675 (updates where active changes to False will now be treated as deletes) 2013-12-10 16:08:35 -05:00
Matthew Jones
ca87fa714f Fix issue AC-761, issue with the activity stream middleware could throw exception during authentication 2013-12-10 10:55:12 -05:00
Matthew Jones
485b113ae6 Fix AC-660, race condition was frequently causing us to not be able to populate the user. This removes some unnecessary checks that were vestigal from an old implementation. Also adds a unit test for verifying user association with an activity stream object 2013-12-03 13:34:58 -05:00
Matthew Jones
9038784bb6 Fix issue AC=731, make sure we initialize some of the Activity Stream information in the middleware __init__ since process_request may not be called during the request phase 2013-11-25 09:36:47 -05:00
Matthew Jones
c039fc4a1f Remove JobHostSummary and JobEvent actions from the activity stream registry 2013-11-20 21:19:26 -05:00
Matthew Jones
83950be7ea Don't try to preserve an instance between pre- and post- middleware processing and fail sanely if we lose the activity stream instance 2013-11-20 14:02:03 -05:00
Matthew Jones
6f652d801a We need to check for AnonymousUser here sine that's what Django Request Framework will return when no authentication is provided 2013-11-20 01:29:52 -05:00
Matthew Jones
4bc15a4392 More for AC-694, use the new rest framework materialized user 2013-11-20 00:43:27 -05:00
Matthew Jones
d564d73622 Fix for AC-694, we weren't saving the instance if using the cached user 2013-11-20 00:27:05 -05:00
Chris Church
b73e792b23 Example code for capturing current user from rest framework. 2013-11-20 00:25:09 -05:00
Matthew Jones
059047ab77 Fix AC-660, resolve auth token authentication properly. Implement user instance caching so we don't constantly attempt to look up the user for multiple model operations yielding activity stream events 2013-11-19 21:39:10 -05:00
Chris Church
b8edfab481 Fixed unit test error caused by extra definition of ActivityStream model. Rearranged imports of signal handlers. 2013-11-18 22:54:52 -05:00
Matthew Jones
adf9f40c2e Make sure we check the instance list in the activity stream middleware so we aren't causing a storm of update events trying to attach the request user 2013-11-18 11:02:23 -05:00
Matthew Jones
9e8459b96a Improve loading time for some module calls by reducing the number of queries against the activity stream table 2013-11-14 13:28:49 -05:00
Matthew Jones
bd942e540a Add job to the list of models that are filtered if a user didn't directly interface with it 2013-11-13 14:43:16 -05:00
Matthew Jones
78bdc7ae8b Make sure we are handling multiple activitystream instances from the middleware 2013-11-13 13:35:57 -05:00
Matthew Jones
e1e70b37a5 Use process_response to attach user information later in the middleware request processing 2013-11-12 17:01:15 -05:00
Matthew Jones
a1edfe0dc2 Move ActivityStream to it's own model file 2013-11-12 17:01:15 -05:00
Matthew Jones
710b01c333 Fix an issue with the Activity Stream where we weren't performing the right type conversion to track object types 2013-11-12 17:01:15 -05:00
Matthew Jones
b7b22fa7f8 Catch some errors that pop up during ActivityStream testing 2013-11-12 17:01:15 -05:00
Matthew Jones
3a02c17d2a Initial backend implementation for AC-25, activity stream/audit love 2013-11-12 17:01:15 -05:00