aboutsummaryrefslogtreecommitdiffstats
path: root/pysite (follow)
Commit message (Collapse)AuthorAgeLines
* API for tags (#34)Gravatar Leon Sandøy2018-03-06-60/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Help page and misc improvements Committing so I can go home >:| * [WIP] - API improvements for the tag features. Not completed. * renaming tag.py to tags.py and refactoring the nomenclature of docs to tags * fixed error message in tags, cleaning up app_test.py * tests for the tags feature * ignoring jsonify returns cause coverall can't handle them * Catch-all error view for the API blueprint * cleaning up APIErrorView a little * bringing coverage for tags.py to 100% * how did this get in here? * how did this get in here? ROUND 2 * Removing the 503 database error handling. It's not in use and we should probably rethink that whole custom error handling system anyway. * Converting the tags file to use the @api_params decorator instead of validating manually. Tested with bot staging.
* Fixes for the API validation decoratorGravatar Gareth Coles2018-03-04-6/+10
|
* Info pages #13xan #13xak (#36)Gravatar Gareth Coles2018-03-04-36/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Info pages and templates * Info pages and templates * Info pages and templates * Update navigation and fix up HTML * Navigation HTML spacing for readability * Fix error views not using `self.render()` * `render()` method should accept Any for context values * Change header linking CSS to a dedicated class * Rules page * Basic resources page setup * Fix headers for new CSS class * Resource categories and initial resource data * Add link to JSON file on GH - won't work until the branch is merged * Remove info overview page and redirect info root url to resources * Flake8 * Add some tests * Line lengths
* Switch type from NotFound to HTTPException & add post support to 5XX and 4XXGravatar JoeBanks132018-03-01-2/+26
|
* Change 418 error descriptionGravatar JoeBanks132018-03-01-1/+1
|
* Fix spacing issuesGravatar JoeBanks132018-03-01-2/+2
|
* Instead of making flask error when rendering unsupported status codes just ↵Gravatar JoeBanks132018-03-01-1/+4
| | | | send 500
* Change link to enclose more textGravatar JoeBanks132018-03-01-7/+6
|
* Finish up #31 by adding linksGravatar JoeBanks132018-03-01-7/+6
|
* Add error messages (#30)Gravatar Joseph2018-02-28-25/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Move `/help` to `/info/help`Gravatar Gareth Coles2018-02-27-3/+4
|
* Help page #z62n (#25)Gravatar Gareth Coles2018-02-26-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | * Help page and misc improvements Committing so I can go home >:| * Changes for @lmn * Rephrase first paragraph * Rephrase questions so they aren't all about discord.py * Remove _every single header_ on the help page from the nav * Unit test the help route * Small styling fixes * Add page-specific classes to body element * Clean up section padding * IndexView -> HelpView * Remove unnecessary path in test
* brings coverage to 90% (#24)Gravatar Christopher Baklid2018-02-26-25/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Rearrange views and templatesGravatar Gareth Coles2018-02-21-4/+4
|
* Cleanup of base_route moduleGravatar Gareth Coles2018-02-18-15/+17
|
* Error handlers can now handle more than one HTTP status codeGravatar Gareth Coles2018-02-18-4/+32
|
* Register error routes on the app instead of specific blueprints #1rchtGravatar Gareth Coles2018-02-18-1/+1
|
* adding one line of logging to debug a problem with rethinkdbGravatar Leon Sandøy2018-02-18-0/+1
|
* typo in a comment was driving me nuts.Gravatar Leon Sandøy2018-02-18-1/+1
|
* Merge remote-tracking branch 'origin/master'Gravatar Gareth Coles2018-02-18-2/+2
| | | | | # Conflicts: # pysite/views/ws/echo.py
* Merge remote-tracking branch 'origin/master'Gravatar Gareth Coles2018-02-18-15/+41
|\ | | | | | | | | # Conflicts: # pysite/views/ws/echo.py
| * attempt to fix stacktrace when initialising logger (#17)Gravatar Christopher Baklid2018-02-18-2/+1
| |
| * Simple logging. (#16)Gravatar Leon Sandøy2018-02-18-15/+39
| | | | | | | | | | | | | | | | * Simple logging. I don't know if this will show up in the docker logs like inver wanted, so it probably needs testing in prod. * log level via hasattr/getattr, basicConfig instead of custom handlers * removing the empty string log call
* | Rename "Websocket" to "WS" to avoid confusion with the gevents-websocket ↵Gravatar Gareth Coles2018-02-18-11/+11
|/ | | | WebSocket class
* Integrate websockets into the Flask webappGravatar Gareth Coles2018-02-17-64/+212
|
* Merge remote-tracking branch 'origin/master'Gravatar Gareth Coles2018-02-16-40/+111
|\
| * API_KEY -> BOT_API_KEYGravatar Gareth Coles2018-02-16-1/+1
| |
| * Simplify user API route and return changesGravatar Gareth Coles2018-02-16-9/+5
| |
| * API schema validation decorator #yzuf (#15)Gravatar Gareth Coles2018-02-16-31/+106
| | | | | | | | | | | | | | | | | | | | * API schema validation decorator * Remove stray comma * Remove unnecessary conditional * Only cast to list when needed to
* | Fix slight error in database insertionGravatar Gareth Coles2018-02-16-1/+1
|/
* 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
* Hey, who turned out the lights?!Gravatar Gareth Coles2018-02-15-1/+1
|
* Add some constants for our rolesGravatar Gareth Coles2018-02-15-0/+6
| | | | These will be important later
* snekchekGravatar Gareth Coles2018-02-15-2/+3
|
* Fix up API key validation and database api locationGravatar Gareth Coles2018-02-15-11/+12
|
* Move API validation decorator to its own file #yxdkGravatar Gareth Coles2018-02-15-43/+49
|
* Fix odd typing errorGravatar Gareth Coles2018-02-14-1/+1
|
* Fix odd typing errorGravatar Gareth Coles2018-02-14-1/+1
|
* Database API Improvements #1qcra (#13)Gravatar Gareth Coles2018-02-14-44/+598
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * A large set of changes, including: * A mixin for views that need the DB * Many changes to the database class in order to make things more fluid * Provide the route manager in view setup() methods * Pushing up the progress so far * snekchek * Full (undocumented) database implementation * snekchek * Don't rely on exceptions for table deletion * Add RethinkDB data to gitignore * Documentation for DB class * Make Flake8 ignore P102 What even is that? What does "docstring does contain unindexed parameters" mean? * Document the base_routes module * Cleanup RE latest reviews * snekchek (bah)
* [API] You need to return the value of `self.error()`Gravatar Gareth Coles2018-02-14-3/+3
|
* SnekchekGravatar JoeBanks132018-02-13-1/+1
|
* @APIView.valid_api_key decoratorGravatar JoeBanks132018-02-13-2/+17
|
* RethinkDB API Views #yqhgGravatar lmn2018-02-13-56/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refactoring the database implementation into a class of its own. * Refactoring the database implementation into a class of its own. * healthcheck should belong to the API. * dynamic subdomain loading, setting up basic handling for staff.pythondiscord.com, and started on a TagView for a bot tag feature. * Oops, forgot to fix some merges. * Some quality of life updates - default values for env variables that aren't secret, and starting to get through the tag view. * Refactoring the database implementation into a class of its own. * healthcheck should belong to the API. * dynamic subdomain loading, setting up basic handling for staff.pythondiscord.com, and started on a TagView for a bot tag feature. * Oops, forgot to fix some merges. * Some quality of life updates - default values for env variables that aren't secret, and starting to get through the tag view. * API validation added to the APIView class, TagView should be finished as well. * super important commit you guys * fixed a bug with the RethinkDB class where host and port attributes were accessed before being created * Fixed my editor now you guys * Fixing up some of the problems brought up in gdude's review * Handling GET requests with param indata and POST with JSON. Fixed error handling to use the constants and the baseclass self.error(). * Get API-key from headers, context manage the db assignment, and default env var values * Changed API-KEY header to X_API_Key. Added a default for secret key. it should no longer be necessary with environment variables to run this system locally. * Changing back the nav to have relative paths * Why am I like this
* Websocket echo testGravatar Gareth Coles2018-02-13-0/+15
|
* Datadog redirect #yq3fGravatar JoeBanks132018-02-12-0/+12
|
* Drop Asana integration, we moved to ClickUpGravatar Gareth Coles2018-02-12-216/+0
|
* Fix invite redirectGravatar Gareth Coles2018-02-11-1/+1
|
* [Asana] Disable all non-functional debugging code for nowGravatar Gareth Coles2018-02-11-78/+79
|
* [Asana] Asana wraps everything in a "data" key for some reasonGravatar Gareth Coles2018-02-11-1/+1
|
* [Asana] Asana wraps everything in a "data" key for some reasonGravatar Gareth Coles2018-02-11-3/+3
|