aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site (follow)
Commit message (Collapse)AuthorAgeLines
* Merge branch 'master' into faviconsGravatar Leon Sandøy2019-10-12-50/+203
|\
| * Merge branch 'master' into fix-home-responsiveGravatar Leon Sandøy2019-10-11-24/+227
| |\
| | * Merge branch 'master' into tizzysaurus_landing_page_textGravatar Leon Sandøy2019-10-11-11/+216
| | |\
| | | * Deny manual `LogEntry` creation.Gravatar Johannes Christ2019-10-11-0/+4
| | | |
| | | * Resolve migration merge conflicts.Gravatar Johannes Christ2019-10-11-1/+1
| | | |
| | | * Improve formatting for `has_delete_permission`, typespec.Gravatar Johannes Christ2019-10-11-1/+8
| | | |
| | | * Merge branch 'master' into simple-admin-log-entry-viewGravatar Johannes Christ2019-10-11-0/+131
| | | |\
| | | | * Merge pull request #269 from ↵Gravatar Johannes Christ2019-10-11-5/+100
| | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | python-discord/migrate-nominations-to-nominations-models Migrate nominations to the new Nomination model
| | | | | * Migrate nominations to new Nomination modelGravatar Sebastiaan Zeeff2019-09-30-5/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before the migration to Django, we stored meta data on a nomination, such as the `reason` and `end_reason`, in the infraction table using "note" infractions, using a special prefix for the `reason`. We have since decided to move nominations out of the infraction context by creating a special `Nomination` model. However, given the complexity of the data migration, we did not yet migrate the old nomination data to this new model. This commit migrates that data by performing a data migration. The data migration works as follows: - Query all nomination data in chronological order; - Replay all nominations and add them to the `Nomination` model; - Delete the now obsolete `Infraction` entry. In addition, this commit also adds a useful string representation for `Nomination` objects.
| | | * | | Deny `LogEntry` deletion.Gravatar Johannes Christ2019-10-11-0/+5
| | | | | |
| | | * | | Allow filtering through metadata, and searching by message.Gravatar Johannes Christ2019-10-11-0/+2
| | | | | |
| | | * | | Remove old import.Gravatar Johannes Christ2019-10-11-2/+0
| | | | | |
| | | * | | Group fieldsets.Gravatar Johannes Christ2019-10-11-0/+5
| | | | | |
| | | * | | Use multi-column output from Django.Gravatar Johannes Christ2019-10-11-32/+1
| | | | | |
| | | * | | Pluralize properly.Gravatar Johannes Christ2019-10-11-0/+22
| | | | | |
| | | * | | Allow viewing log entries in the Django Admin.Gravatar Johannes Christ2019-10-11-11/+73
| | | | | |
| | * | | | Make the homepage paragraphier.Gravatar Leon Sandøy2019-10-05-6/+4
| | | | | |
| | * | | | Address code review from Scragly and Mark.Gravatar Leon Sandøy2019-10-05-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Makes various minor changes to commas and formulations.
| | * | | | Update the landing page text.Gravatar Leon Sandøy2019-10-01-7/+7
| | |/ / / | | | | | | | | | | | | | | | | | | | | The new text was written by Tizzysaurus in his website cleanup project, and lifted from his google doc.
| * / / / Improve homepage flex responsivenessGravatar ByteCommander2019-10-09-26/+18
| |/ / /
* | / / Update favicons (rounded corners, other improvements)Gravatar ByteCommander2019-10-11-7/+7
| |/ / |/| |
* | | Add favicons; workaround for gitattributesGravatar ByteCommander2019-10-08-0/+42
|/ /
* | Add link to Contributing landing page to our website's navbar (#270)Gravatar scragly2019-10-01-0/+3
|\ \ | | | | | | Add link to Contributing landing page to our website's navbar
| * | Add link to Contributing landing page to navbarGravatar Sebastiaan Zeeff2019-09-30-0/+3
| |/ | | | | | | | | This commit adds a link to the Contributing landing page to the navbar on our website.
* / Monkeypatch in new HEADER_ID_PREFIX.Gravatar Leon Sandøy2019-09-30-0/+4
|/ | | | | | | | | Currently, all toc-links will have a wiki-toc prefix. This commit removes this prefix, so that we can header link with just something like #environment instead of #wiki-toc-environment. This addresses #276. https://github.com/python-discord/site/issues/267
* Merge branch 'master' into decoupling-warnings-and-notesGravatar Leon Sandøy2019-09-30-6/+13
|\
| * Merge branch 'master' into new-managepyGravatar Leon Sandøy2019-09-29-0/+0
| |\
| | * Remove rogue image fileGravatar kosayoda2019-09-29-0/+0
| | |
| | * Add static images for wiki contributing guidesGravatar kosayoda2019-09-28-0/+0
| | |
| * | Support internal docker network DNS resolution & dev ALLOWED_HOSTS env var.Gravatar scragly2019-09-28-6/+13
| |/
* | Reject unhidden note or hidden warning infractionGravatar Sebastiaan Zeeff2019-09-26-15/+38
| | | | | | | | | | | | | | | | | | | | | | | | https://github.com/python-discord/site/issues/260 This commit adds validation steps to the InfractionSerializer to make sure that `"warning"` infractions can never be set with `hidden=True` and note infractions can never be set with `hidden=False` usng the API. This is the final step in decoupling "note" infractions and "warning" infractions. This commit implements the final part of and closes #260
* | Migrate hidden warnings to notesGravatar Sebastiaan Zeeff2019-09-26-0/+23
|/ | | | | | | | | | | | | https://github.com/python-discord/site/issues/260 We have added a new "note" type to the Infraction model, meaning that we can now decouple notes and warnings completely. However, notes made prior to this change are still registered as "hidden warnings". This commit adds a data migration that sets the type field of "hidden warning" infractions to "note". This commit implements the first part of #260
* Merge branch 'master' into update-lintingGravatar S. Co12019-09-24-9/+36
|\
| * Remove redundant off-topic names list testGravatar MarkKoz2019-09-21-7/+0
| |
| * Add test for certain unicode characters in ot namesGravatar MarkKoz2019-09-21-3/+14
| |
| * Make API return infraction list with newest firstGravatar Sebastiaan Zeeff2019-09-17-2/+25
| | | | | | | | | | | | | | | | | | | | The most recent infraction a user has is usually the most relevant to us. This PR aims to make our life easier by sorting the infractions by their `inserted_at` date, with the most recent insertion date first. Note: The `id` is not entirely in chronological order, because we did not import historical infractions in chronological order. That's why the `inserted_at` field is specified instead of the `id` field.
* | Apply suggestions from code reviewGravatar S. Co12019-09-24-3/+3
| | | | | | Co-Authored-By: Mark <[email protected]>
* | Apply suggestions from code reviewGravatar S. Co12019-09-22-1/+1
| | | | | | | | Co-Authored-By: Mark <[email protected]> Co-Authored-By: Sebastiaan Zeeff <[email protected]>
* | Lint remaining filesGravatar sco12019-09-18-15/+19
| |
* | Update linting rules & partially relintGravatar sco12019-09-18-44/+50
|/
* Add test cases for `TypeError` fallbacks.Gravatar Johannes Christ2019-09-16-0/+33
|
* Fix a bug where GitHub API rate limit could crash Home.Gravatar Leon Sandøy2019-09-15-17/+34
| | | | | | | | | | | The bug was caused by a naive approach to caching and retrieving the data. This commit rectifies this by making the following changes: - We will now cache for 1 hour instead of 10 minutes - If the data is stale but API is rate limited, return cache, not crash. - If the cache doesn't exist and API is rate limited, return dummy data, and try again in 10 minutes. This will prevent all crashes, and should still have more or less the same user experience.
* PARENT_HOST is now pythondiscord.comGravatar Leon Sandøy2019-09-15-1/+1
|
* Remove wiki, add pydis.Gravatar Leon Sandøy2019-09-15-2/+4
|
* Darcula theme, and vanilla hosts.Gravatar Leon Sandøy2019-09-15-2/+93
|
* Changing the ALLOWED_HOSTS to allow for migration.Gravatar Leon Sandøy2019-09-15-2/+2
| | | | | | Adding django.pythondiscord.com and django.api.pythondiscord.com to ALLOWED_HOSTS to allow us to run Djangoify and migrate the infraction data.
* Update `ALLOWED_HOSTS` for the new home.Gravatar Johannes Christ2019-09-15-3/+2
|
* Drop args to reduce line size under 100.Gravatar scragly2019-09-15-1/+3
|
* Adding a pygments CSS for syntax highlighting.Gravatar Leon Sandøy2019-09-15-1/+75
| | | | | | | | This adds the Monokai, Friendly, and Darcula themes to this repo. It leaves Darcula as the active theme. This can very easily be changed later on by altering wiki/base.html Resolves #243.
* Adding the UpdateModelMixin to the ReminderViewSet.Gravatar Leon Sandøy2019-09-14-2/+3
| | | | | | This will allow us to edit durations using the PATCH method, which the bot implements already but which was overlooked when this viewset was written.