| Commit message (Collapse) | Author | Age | Lines |
| ... | |
| |/ / |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |/
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |\
| |
| | |
Update linting dependencies & relint
|
| | |\
| |/
|/| |
|
| | | |
|
| | | |
|
| |\ \
| | |
| | | |
Readdressing Docker Refinement
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| |\ \ \
| |/ /
|/| | |
Add support for certain unicode characters in ot names
|
| | | | |
|
| |/ / |
|
| |\ \
| | |
| | |
| | |
| | | |
CI Job Merge
Co-authored-by: null <[email protected]>
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | | |
* Remove --branch option since it's already specified in .coveragerc
|
| | | |
| | |
| | |
| | | |
* Show missing line numbers in report
|
| | | |
| | |
| | |
| | |
| | |
| | | |
* Rename some tasks
* Simplify python commands by removing python3 -m
* Break up some long lines
|
| | | | |
|
| | | | |
|
| |/ / |
|
| |\ \
| | |
| | | |
Revert uwsgi back to pip install.
|
| | |\ \
| |/ /
|/| | |
|
| |\ \ \
| | | |
| | | | |
Use explicit buildContext in CI Docker stage.
|
| |/ / / |
|
| |/ / |
|
| |\ \
| | |
| | | |
Make API return infraction list with newest first
|
| | |\ \
| |/ /
|/| | |
|
| |\ \ \
| | | |
| | | | |
Refine Dockerfiles
|
| | |\ \ \
| |/ / /
|/| | | |
|
| |\ \ \ \
| | | | |
| | | | | |
Line Ending Fix
|
| |/ / / /
| | | |
| | | |
| | | |
| | | |
| | | | |
Added .gitattributes to prevent Windows users from accidentally cloning the repo and getting incorrect line endings
Also adjusting the shebang for the migrate_and_serve.sh to prevent another Windows related bug
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
| | |
| | | |
Co-Authored-By: Mark <[email protected]>
|
| | | |
| | |
| | |
| | | |
Co-Authored-By: Mark <[email protected]>
Co-Authored-By: Sebastiaan Zeeff <[email protected]>
|
| | | |
| | |
| | |
| | | |
Synchronize output of `pipenv run lint` and `python -m flake8` for the current project structure
|
| | | | |
|
| | | | |
|
| | |/
|/| |
|
| |/ |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|