aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Merge branch 'master' into feat/deps/344/django-3.0Gravatar MarkKoz2020-07-14-364/+515
|\
| * Catch ConnectionError when trying to get updated repository dataGravatar Dennis Pham2020-06-22-1/+1
| | | | | | This will prevent a 500 server error on our homepage when GitHub's API is down, allowing us to use the cached data we have instead.
| * Fix trailing whitespace in GitHub Action fileGravatar Joseph Banks2020-06-11-1/+1
| |
| * Create codeql-analysis.ymlGravatar Joseph Banks2020-06-11-0/+32
| |
| * Fix broken github api test dataGravatar Leon Sandøy2020-06-07-1/+1
| |
| * Replace django-crispy-bulma -> flake8-annotationsGravatar Leon Sandøy2020-06-07-1/+1
| |
| * Add Summer Code Jam image on landing page.Gravatar Leon Sandøy2020-06-07-2/+2
| |
| * Merge pull request #361 from python-discord/dependabot/pip/django-2.2.13Gravatar Joseph Banks2020-06-06-94/+91
| |\ | | | | | | Bump django from 2.2.11 to 2.2.13
| | * Bump django from 2.2.11 to 2.2.13Gravatar dependabot[bot]2020-06-06-94/+91
| |/ | | | | | | | | | | | | Bumps [django](https://github.com/django/django) from 2.2.11 to 2.2.13. - [Release notes](https://github.com/django/django/releases) - [Commits](https://github.com/django/django/compare/2.2.11...2.2.13) Signed-off-by: dependabot[bot] <[email protected]>
| * Merge pull request #357 from ↵Gravatar Joseph Banks2020-06-05-25/+89
| |\ | | | | | | | | | | | | python-discord/joseph/change-roles-field-to-postgres-array Change roles field on user model to Postgres array
| | * Remove very generous newline in role validatorGravatar Joseph Banks2020-06-05-3/+1
| | | | | | | | | Co-authored-by: Sebastiaan Zeeff <[email protected]>
| | * Merge branch 'master' into joseph/change-roles-field-to-postgres-arrayGravatar Sebastiaan Zeeff2020-06-05-2/+2
| | |\ | | |/ | |/|
| * | Update navbar for Code Jam 7Gravatar Dennis Pham2020-06-04-2/+2
| | | | | | | | | Changed `Most Recent: Game Jam 2020` to `Upcoming: Code Jam 7`
| | * Alter import order in user modelGravatar Joseph Banks2020-06-02-1/+1
| | |
| | * Alter signal tests to make use of new user roles syntaxGravatar Joseph Banks2020-06-02-5/+5
| | |
| | * Alter staff tests to make use of new user roles syntaxGravatar Joseph Banks2020-06-02-1/+1
| | |
| | * Alter account utils test to use new user roles formatGravatar Joseph Banks2020-06-02-4/+6
| | |
| | * Alter API tests to use new user roles formatGravatar Joseph Banks2020-06-02-2/+2
| | |
| | * Alter account utilities to check list length instead of queryset lengthGravatar Joseph Banks2020-06-02-1/+1
| | |
| | * Alter signals to handle OAuth2 with groups and role mappingsGravatar Joseph Banks2020-06-02-5/+5
| | |
| | * Remove primary key from user serializerGravatar Joseph Banks2020-06-02-2/+0
| | |
| | * Add validator to ensure roles passed to user model existGravatar Joseph Banks2020-06-02-0/+21
| | |
| | * Add migrations to switch user field to arrayGravatar Joseph Banks2020-06-02-0/+24
| | |
| | * Convert the roles field on the user model from a many-to-many field to a ↵Gravatar Joseph Banks2020-06-02-5/+26
| |/ | | | | | | postgres array with roles
| * Merge pull request #356 from python-discord/remove_avatar_hashGravatar Sebastiaan Zeeff2020-06-02-62/+52
| |\ | | | | | | No longer accept or track `avatar_hash`
| | * No longer accept or track avatar_hash.Gravatar Leon Sandøy2020-05-27-62/+52
| |/ | | | | | | | | | | This should completely remove avatar_hash from the site - both in our tests, in the model itself, and from the database (as a result of the migration).
| * Merge pull request #353 from python-discord/post-game-jamGravatar Leon Sandøy2020-05-12-1/+1
| |\ | | | | | | Update Game Jam from upcoming to most recent
| | * Update Game Jam from upcoming to most recentGravatar Den42002020-05-12-1/+1
| |/
| * Merge pull request #352 from ks129/news-bot-settingGravatar Joseph Banks2020-04-30-0/+26
| |\
| | * Fixed migration nr 51 `down` function object gettingGravatar ks1292020-04-21-1/+1
| | |
| | * Fixed migration 51 file end (`create_news_setting`)Gravatar ks1292020-04-21-1/+0
| | |
| | * Merge branch 'master' into news-bot-settingGravatar ks1292020-04-21-1/+1
| | |\ | | |/ | |/|
| * | Merge pull request #350 from python-discord/fix-linkGravatar Sebastiaan Zeeff2020-04-02-1/+1
| |\ \ | | | | | | | | Fix broken link to Game Jam 2020 banner
| | * | Fix broken link to Game Jam bannerGravatar kwzrd2020-04-02-1/+1
| |/ / | | | | | | | | | The asset was recently moved to a new directory.
| | * Created migration fo Python News feature on botGravatar ks1292020-04-20-0/+26
| | |
| | * Added `news` to allowed bot setting names.Gravatar ks1292020-04-20-0/+1
| |/
| * Add Game Jam banner to landing pageGravatar Sebastiaan Zeeff2020-03-27-8/+4
| | | | | | I've added the Game Jam banner to the home page and made it link the Game Jam info page.
| * Add events section to menu dropdownGravatar Sebastiaan Zeeff2020-03-27-2/+8
| | | | | | To draw attention to upcoming events, I've changed the events section of the "more" dropdown menu. It now has an events header, followed by the upcoming event, and a link to the general events page.
| * Merge pull request #343 from python-discord/update-contribGravatar kwzrd2020-03-23-23/+38
| |\ | | | | | | Update contributor doc
| | * Update contributor docGravatar S. Co12020-03-20-23/+38
| |/
| * Merge pull request #339 from python-discord/feat/deps/o138/pre-commit-hooksGravatar Mark2020-03-10-139/+155
| |\ | | | | | | Add more pre-commit hooks
* | | Allow empty list for message embedsGravatar MarkKoz2020-03-21-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default, blank=False for ArrayFields but allow_empty=True for ListField. Before DRF 3.10 there was a bug that ListField didn't respect the default value of blank=False and thus created a ListField in the serialiser with the default of allow_empty=True. We were relying on the behaviour of that bug. See encode/django-rest-framework#6597.
* | | Use basename instead of base_name with DRF routerGravatar MarkKoz2020-03-21-1/+1
| | | | | | | | | | | | base_name was deprecated in 3.9 and finally removed in 3.11.
* | | Update to Django 3.0Gravatar MarkKoz2020-03-21-120/+116
| |/ |/|
* | CI: run pre-commit hooks in CIGravatar MarkKoz2020-03-04-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also means flake8 will output to stdout in CI now. It didn't before because it output to an XML format for publishing. Pre-commit creates its own environment in which it installs hooks. To speed up runs, the pipeline will cache this for use with future jobs. The cache will update if .pre-commit-config.yaml changes. The flake8 pre-commit hook invokes flake8 via `pipenv run flake8`. It's normally useful to use pipenv here cause it ensures flake8 is invoked within the context of the venv. However, in CI, there is no venv - dependencies are installed directly to the system site-packages. `pipenv run` does not work in such case because it tries to create a new venv if one doesn't exist (it doesn't consider the system interpreter to be a venv). This workaround (okay, it's a hack) creates an executable shell script which replaces the original pipenv binary. The shell script simply ignores the first argument (i.e. ignores `run` in `pipenv run`) and executes the rest of the arguments as a command. It essentially makes `pipenv run flake8` equivalent to just having ran `flake8`. When pre-commit executes pipenv, the aforementioned script is what will run.
* | Add more pre-commit hooksGravatar MarkKoz2020-03-04-35/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hooks added: * check-merge-conflict - checks for files with merge conflict strings * check-toml - attempts to load all toml files to verify syntax * check-yaml - attempts to load all yaml files to verify syntax * end-of-file-fixer - ensures files end in a newline and only a newline * mixed-line-ending - replaces mixed line endings with LF * trailing-whitespace - trims trailing whitespace * python-check-blanket-noqa - enforces that noqa annotations always occur with specific codes Changes made to comply with new hooks: * Remove trailing whitespaces * Remove some useless noqa annotations * Specify errors for noqa annotations * Add missing newlines at end of files See: python-discord/organisation#138
* | Update dev dependenciesGravatar MarkKoz2020-03-04-102/+87
|/
* Merge pull request #304 from ↵Gravatar Eivind Teig2020-03-01-10/+53
|\ | | | | | | | | python-discord/deleted-messages-visible-line-endings Make newlines visible in deleted messages
| * Merge branch 'master' into deleted-messages-visible-line-endingsGravatar Sebastiaan Zeeff2020-03-01-193/+537
| |\ | |/ |/|
* | Merge pull request #337 from python-discord/feat/deps/s335/wiki-pypiGravatar Leon Sandøy2020-03-01-19/+26
|\ \ | | | | | | Install wiki from PyPI