35 Commits

Author SHA1 Message Date
Adarnof
ff5055f151 Prevent simultaneous execution of multiple group update tasks.
Prevents multiple group creation on services using group caching.
2016-11-05 16:58:23 -04:00
Adarnof
1daf77709d Abort API refresh when API servers unreachable.
Sorry aboot today.
2016-10-21 20:39:00 -04:00
Adarnof
1b4f5e4e88 Adarnof's Little Things (#547)
* Port to Django 1.10
Initial migrations for current states of all models. Requires faking to retain data.
Removed all references to render_to_response, replacing with render shortcut.
Same for HttpResponseRedirect to render shortcut.
Corrected notification signal import to wait for app registry to finish loading.

* Correct typos from render conversion

* Modify models to suppress Django field warnings

* Script for automatic database conversion
 - fakes initial migrations to preserve data
Include LOGIN_URL setting

* Correct context processor import typo

* Removed pathfinder support.
Current pathfinder versions require SSO, not APIs added to database.
Conditionally load additional database definitions only if services are enabled.
Prevents errors when running auth without creating all possible databases.

* Condense context processors

* Include Django 1.10 installation in migrate script
Remove syncdb/evolve, replace with migrate for update script

* Replaced member/blue perms with user state system
Removed sigtracker
Initial migrations for default perms and groups
Removed perm bootstrapping on first run

* Clean up services list

* Remove fleet fittings page

* Provide action feedback via django messaging
Display unread notification count
Correct left navbar alignment

* Stop storing service passwords.
Provide them one time upon activation or reset.
Closes #177

* Add group sync buttons to admin site
Allow searcing of AuthServicesInfo models
Display user main character

* Correct button CSS to remove underlines on hover

* Added bulk actions to notifications
Altered notification default ordering

* Centralize API key validation.
Remove unused error count on API key model.
Restructure API key refresh task to queue all keys per user and await completion.
Closes #350

* Example configuration files for supervisor.
Copy to /etc/supervisor/conf.d and restart to take effect.
Closes #521
Closes #266

* Pre-save receiver for member/blue state switching
Removed is_blue field
Added link to admin site

* Remove all hardcoded URLs from views and templates
Correct missing render arguments
Closes #540

* Correct celeryd process directory

* Migration to automatically set user states.
Runs instead of waiting for next API refresh cycle. Should make the transition much easier.

* Verify service accounts accessible to member state

* Restructure project to remove unnecessary apps.
(celerytask, util, portal, registraion apps)
Added workarounds for python 3 compatibility.

* Correct python2 compatibility

* Check services against state being changed to

* Python3 compatibility fixes

* Relocate x2bool py3 fix

* SSO integration for logging in to existing accounts.

* Add missing url names for fleetup reverse

* Sanitize groupnames before syncing.

* Correct trailing slash preventing url resolution

* Alter group name sanitization to allow periods and hyphens

* Correct state check on pre_save model for corp/alliance group assignment

* Remove sigtracker table from old dbs to allow user deletion

* Include missing celery configuration

* Teamspeak error handling

* Prevent celery worker deadlock on async group result wait

* Correct active navbar links for translated urls.
Correct corp status url resolution for some links.
Remove DiscordAuthToken model.
2016-10-16 18:01:14 -04:00
Adarnof
4dbf014b31 reduce loglevel of absent corp api key 2016-04-29 01:38:56 -04:00
Adarnof
d461e6af79 Move error handling to api calls
- allows interpretation of diffferent evelink codes
2016-03-17 22:18:02 +00:00
Adarnof
b6446f255e lowered loglevel of ApiError on invalid char ID 2016-03-05 18:04:45 -05:00
Adarnof
bfef9c3123 Lowered loglevel for evelink.APIError
Prevents unnecessary notifications when getting info for a corp with a bad corp ID
2016-02-17 17:08:22 -05:00
Adarnof
8682df56f0 Merge pull request #263 from Adarnof/fixcorp
New corp update function
2016-02-12 17:41:58 -05:00
Adarnof
a75391f270 Modified logical operators to prevent #262 2016-02-12 22:35:07 +00:00
Adarnof
4d0aa92809 Initial rework of corp/alliance model update
Corrected exception when determining id type
2016-02-12 17:30:52 +00:00
Trent Bartlem
7e760d4a56 log api key invalidation at INFO level
Deletion of characters associated with an API key is logged at INFO.

However, the reason that an API key is marked invalid in the first place is only logged at DEBUG, so if you have debug logging disabled, you won't know why.
2016-02-03 21:14:17 +10:00
Adarnof
2db7a71e9d Removed exc_info kwarg from logger.exception statements 2016-01-31 19:42:01 +00:00
Adarnof
45e1adf3b3 Merge pull request #200 from Ydmir/corputils
Corputils
2016-01-31 13:58:26 -05:00
Adarnof
c50595303b Corrected key validation 2016-01-31 18:02:20 +00:00
Ydmir
25b89fdecb Expanded functionality to full alliance support. The design may leave some things to wish for... 2016-01-24 00:13:58 +01:00
Ydmir
786e573a0a Added initial corputils functionality, for auditing members in corporation mode. 2016-01-15 09:23:40 +01:00
Adarnof
d4b9186c61 API form validates by member and characters
Functions to determine membership level of user and eve characters
2015-12-11 12:50:30 +00:00
Adarnof
d486f979bb Tolerate random 221 errors from API servers
Implements #185
2015-12-10 07:50:56 +00:00
Adarnof
08cd2c1f1a Corrections for typos in logging.
Rephrased EveManager exceptions to reflect determination id is not of type rather than failure of function.
2016-01-03 20:08:44 +00:00
Adarnof
017b6bc7ce Lowered log level of api results to declutter logs. 2016-01-02 21:43:51 +00:00
Adarnof
b9125c3d5c Finished adding logging to service views and managers. 2015-12-30 15:29:27 +00:00
Adarnof
8b2b253c58 Adding missing brackets. 2015-12-29 23:00:06 +00:00
Adarnof
3f359ecae1 Logging added to all service managers.
Unrelated, getting ImportError when trying to start shell. I broke something.
2015-12-29 22:44:17 +00:00
Adarnof
20362625ea Corrected access mask logic to ensure required endpoints are available. 2015-11-27 00:18:00 +00:00
Adarnof
35277b7f33 Manual conflict resoltuion for pull request #98 2015-11-25 02:59:13 +00:00
Adarnof
f3d2a9cca5 Added logic to check if corp or alliance exists
Prevents errors in celery task from prevention execution
Addresses issues #68 and #93
2015-11-24 02:45:36 +00:00
Adarnof
e98bc36a9c Removed all dependency on alliance membership
Renamed permission 'alliance_member' 'member'
Renamed multiple variables in settings.py and associated handlers in util

Maybe it still works?
2015-09-17 04:42:36 +00:00
Raynaldo Rivera
48373c285a Added blue support to the auth 2014-11-02 21:53:26 -07:00
Raynaldo Rivera
19e19d89e4 Reformatted code for easy reading. 2014-10-26 16:47:21 -07:00
Raynaldo Rivera
0fa2ceec48 Added a check to insure that during the api refresh the server is online for every user minimizes chances of database wipe 2014-10-23 01:57:08 -07:00
Raynaldo Rivera
031fc2a3b5 Fixed full api key 2014-10-19 11:31:29 -07:00
Raynaldo Rivera
0ac78b25d8 Added requirement for full api key 2014-10-19 11:16:55 -07:00
Raynaldo Rivera
c4801c8b42 Added the auto removal of invalid keys and user api's deactivate services 2014-10-15 20:35:25 -07:00
Raynaldo Rivera
20b9152a1c Added api mask to html added check 2014-10-12 18:53:20 -07:00
Raynaldo Rivera
a8571dd1c0 Redone correctly , structure, its pretty 2014-10-08 19:15:17 -07:00