aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/views/api/bot/user.py (follow)
Commit message (Collapse)AuthorAgeLines
* Initial project layout for djangoGravatar Gareth Coles2018-08-07-166/+0
|
* Fix unit testGravatar Gareth Coles2018-07-27-1/+1
|
* Fix a couple dumb mistakesGravatar Gareth Coles2018-07-27-1/+3
|
* Don't remove basic user objects, add API for querying themGravatar Gareth Coles2018-07-27-5/+30
| | | | Also update privacy policy in accordance with this
* [API] Implement chunk-based user update mechanismGravatar Gareth Coles2018-06-24-90/+7
|
* [API] Check for DB-nuking empty data in users POSTGravatar Gareth Coles2018-06-23-1/+4
|
* Backend for team assignmentGravatar Gareth Coles2018-06-17-0/+24
|
* Grab user avatars in bot API callGravatar Gareth Coles2018-06-07-5/+8
|
* Privacy/Usability updates (#75)Gravatar Gareth Coles2018-05-20-5/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use less intrusive oauth scopes, add login redirect method * Remove debugging prints, add missing __init__ * Work towards new privacy policy * Fix judging state icons on code jam management page * Jammer profile retraction and punishments based on jam status * Linting * [Jams] Deny profile saving for users < 13 years, and finish removal page * Fix tests * Clean up and address Volcyy's review * Add proper login redirection to require_roles decorator * Fix template is_staff() and add staff link to navigation * Address lemon's review * Linting * Privacy page formatting * Privacy page formatting
* Merge remote-tracking branch 'origin/master'Gravatar Gareth Coles2018-05-19-2/+2
|\
| * Snake cog (#71)Gravatar Leon Sandøy2018-05-19-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Tables that are initialized with JSON files in the table_init folder will now sync properly if the JSON file is changed after initialization. Any lines that are either added or removed will be updated whenever site is rebooted. * Initial API endpoint for snake_quiz * reverting database.py * I WILL KILL YOU * Added the snake_fact API endpoint * Moving snake tables to the new migrations system * Set up initial data for all new tables, added table objects, wrote endpoints, and wrote tests for the new endpoints. * Removing the snake_movies endpoint. That idea didn't pan out. * Added an endpoint for getting special snake cases * broken json * Fixing the initial data slightly, better picture of bob. * Changing JSON indentation to be 4 spaces consistently in all initial_data, to address Aperture's review. Also changing all the endpoints to have correct namespacing, addressing gdude's review. * Fixing tests to point to new API endpoints
* | GDPR compliance for jammer profilesGravatar Gareth Coles2018-05-19-0/+13
|/
* Add snowflake index on oauth_data and use it for deletionsGravatar Gareth Coles2018-05-15-2/+2
| | | | We were using id previously, but that was no longer the correct key
* [GDPR] Also remove OAuth dataGravatar Gareth Coles2018-05-15-1/+21
|
* [GDPR] Small fixesGravatar Gareth Coles2018-05-15-2/+2
|
* [GDPR] Users are now updated and removed correctlyGravatar Gareth Coles2018-05-15-1/+49
|
* Declaring the encoding to be utf-8 is not necessary in Python3 projects, as ↵Gravatar Leon Sandøy2018-04-27-1/+0
| | | | this is the default encoding. Encoding declarations are only useful in py3 if you want to declare it to be something _other_ than utf-8. This was, however, a very useful convention in py2. (#56)
* Initial data for tables and refactoring the dev-mode database handling to be ↵Gravatar Leon Sandøy2018-04-15-1/+0
| | | | | | | | | | similar to prod-mode. (#53) * Changed the dev-mode logic to be the same as prod for creating new tables if they don't exist. Also added a new feature where a table can be initialized with data if you create a JSON file in the pysite/database/table_init/ folder and fill it with a list of dicts where each dict represents a row in your table. Included a hiphoppers json so that I can actually test if it works in production. It will only init the table if the table is empty. * Not sure if this will solve it, but I think so. * Renamed the tables and primary keys, and alphabetized the dict. Now complies with the gdudes holy wishes.
* Snowflakes should be handled as stringsGravatar Gareth Coles2018-04-10-2/+2
|
* Accept username/discriminator from the bot and remove it from oauthGravatar Gareth Coles2018-03-30-6/+3
|
* Collect all roles from users instead of just a single oneGravatar Gareth Coles2018-03-30-3/+5
|
* Fix up route namesGravatar Gareth Coles2018-03-29-1/+1
|
* Add error messages (#30)Gravatar Joseph2018-02-28-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add error messages Signed-off-by: JoeBanks13 <[email protected]> * Remove un-used keyword arg from 404 * Assert for status code instead of full content * PEP8 * test lint * please coverage * oh * Exclude websockets.py from coverage * Move code output into terminal * Switch typewriter href protocol * Add tests for websockets.py * Abort previous commit, coveralls did not let coverage go down * Add more pauses and request => response * move css and js out, add typewriter JS to our own repo & add method for appending text in bulk. * Enable REPL on 4XX and change error descriptions * commas * /error path
* brings coverage to 90% (#24)Gravatar Christopher Baklid2018-02-26-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * brings coverage to 75% * satisfy flake8 * missing docstring added * one more test * artificially inflate coverage because python acts strange * testing decorators * fixed instantiation of test route * straggling newlines from debugging code * remove debug comments * restructure tests into logical class separations. more exlusions. more tests * testing websocket echo tests * added missing comment * convert single quotes to double quotes to satisfy docstrings
* Integrate websockets into the Flask webappGravatar Gareth Coles2018-02-17-3/+3
|
* Simplify user API route and return changesGravatar Gareth Coles2018-02-16-9/+5
|
* API schema validation decorator #yzuf (#15)Gravatar Gareth Coles2018-02-16-19/+17
| | | | | | | | | | * API schema validation decorator * Remove stray comma * Remove unnecessary conditional * Only cast to list when needed to
* API view for syncing users from the bot #yumr (#14)Gravatar Gareth Coles2018-02-15-0/+45
* API view for syncing users from the bot * Fix view class name