aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| * Use a httpx.Client for netlify static buildsGravatar Chris Lovering2022-09-30-3/+8
|/ | | | | | This allows for setting the config in one place and reusing it. This also solves an issue where the requests to fetch the download URL would timeout after the (default) 5 seconds.
* Merge pull request #760 from python-discord/dependabot/pip/django-4.0.7Gravatar Hassan Abouelela2022-09-30-57/+232
|\ | | | | Bump django from 4.0.6 to 4.0.7
| * Bump django from 4.0.6 to 4.0.7Gravatar dependabot[bot]2022-09-30-57/+232
|/ | | | | | | | | | | | | Bumps [django](https://github.com/django/django) from 4.0.6 to 4.0.7. - [Release notes](https://github.com/django/django/releases) - [Commits](https://github.com/django/django/compare/4.0.6...4.0.7) --- updated-dependencies: - dependency-name: django dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
* Merge pull request #768 from python-discord/fix-warningsGravatar Johannes Christ2022-09-30-15/+24
|\ | | | | Fix Warnings & Enable In Tests
| * Merge branch 'main' into fix-warningsGravatar Hassan Abouelela2022-09-30-81/+41
| |\ | |/ |/|
* | Merge #770 - add a collection of keywords per ruleGravatar Mark2022-09-20-13/+30
|\ \
| * \ Merge branch 'main' into map-rules-to-keywordsGravatar Mark2022-09-20-68/+11
| |\ \ | |/ / |/| |
* | | Merge #772 - fix Poetry 1.2 support & lock Poetry versionGravatar Mark2022-09-19-68/+11
|\ \ \
| * | | Fix Poetry 1.2 SupportGravatar Hassan Abouelela2022-09-18-68/+11
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Poetry 1.2 introduced a regression which broke pip `--user` installs. These types of install where the main way we did installations in docker and CI, which made it much more convenient to control their location, availability, and caching. Poetry's team does not recognize this as a supported use case, so major changes were required to get everything working again. Most of the changes were consolidated into chrislovering/python-poetry-base for docker, and hassanabouelela/setup-python for CI. Signed-off-by: Hassan Abouelela <[email protected]>
| * | replace parenthesis with square brackets since tuples are serialized are listsGravatar Amrou Bellalouna2022-09-18-3/+3
| | |
| * | restrict the RulesView docstrings to just what it doesGravatar Amrou Bellalouna2022-09-18-3/+2
| | |
| * | replace sweet with "sweets" to refer more to candyGravatar Amrou Bellalouna2022-09-18-1/+1
| | |
| * | update the RulesView class' docstringsGravatar Amrou Bellalouna2022-09-18-4/+7
| | |
| * | Merge branch 'main' into map-rules-to-keywordsGravatar Amrou Bellalouna2022-09-18-6/+11
| |\ \ | |/ / |/| |
| * | make docstring more explicit about the returned contentGravatar Amrou Bellalouna2022-09-18-1/+6
| | |
| * | add suggested keywordsGravatar Amrou Bellalouna2022-09-18-9/+9
| | |
| * | add docstrings explaining the values that the Rules view returnsGravatar Amrou Bellalouna2022-09-18-0/+1
| | |
| * | add collection of keywords per ruleGravatar Amrou Bellalouna2022-08-18-9/+18
| | | | | | | | | | | | | | | | | | In reference to issue #2108, this commit aims to add an initial set of keywords per rule. These keywords will be later in the "rule" bot command in order to make rule identification easier
| | * Ignore Whitenoise's Static Directory WarningGravatar Hassan Abouelela2022-09-17-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | Whitenoise raises a warning when the static content folder does not exist, which is the case during tests in CI. This is not an issue though, and static content does get used properly in tests. Thus, the warning is silenced. Signed-off-by: Hassan Abouelela <[email protected]>
| | * Enable Python Warnings In TestsGravatar Hassan Abouelela2022-09-04-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | There are currently no warnings emitted during our tests, so this is a low-cost method of ensuring we can better notice problems such as deprecation warnings earlier. Signed-off-by: Hassan Abouelela <[email protected]>
| | * Fix Unittest Deprecation WarningsGravatar Hassan Abouelela2022-09-04-12/+12
| | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| | * Fix Django Deprecation WarningsGravatar Hassan Abouelela2022-09-04-2/+0
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | Removes a few features which were deprecated in django 4.0. Running with warnings enabled shows no other errors. USE_L10N was deprecated, and is now enabled by default. In future versions of django, it'll be impossible to turn localization off. Explicitly defining the custom_app_config for the API app is no longer necessary as django can pick it up on its own. Signed-off-by: Hassan Abouelela <[email protected]>
* | Fix grammar in contributing guide (#771)Gravatar Rohan Shah2022-08-30-1/+1
| |
* | Merge pull request #764 from python-discord/fix-infraction-testsGravatar wookie1842022-08-18-5/+10
|\ \ | |/ |/| Explicitly Specify Infraction Time In Tests
| * Merge branch 'main' into fix-infraction-testsGravatar Hassan Abouelela2022-08-18-2/+2
| |\ | |/ |/|
* | Merge pull request #766 from Ibrahim2750mi/strike-passed-date-code-jamGravatar wookie1842022-08-16-2/+2
|\ \ | | | | | | Striked passed date for code jam 9
| * | striked passed dateGravatar Ibrahim2022-08-16-2/+2
|/ /
| * Explicitly Specify Infraction Time In TestsGravatar Hassan Abouelela2022-08-14-5/+10
|/ | | | | | | | | | | | | The infraction tests checked that the route returned infractions in the correct order, which is based on insertion time. This can be fragile however, since the insertion time can be very close (or identical) during the tests. That became especially more likely with PR #741 (commit 149e67b4) which improved database access speed. This is fixed by explicitly specifying the insertion time, and spacing them out properly. Signed-off-by: Hassan Abouelela <[email protected]>
* Merge pull request #762 from python-discord/raise-static-buildsGravatar Hassan Abouelela2022-08-12-10/+16
|\ | | | | Static Builds Small Improvements
| * Increase Timeout For Artifact DownloadGravatar Hassan Abouelela2022-08-12-1/+1
| | | | | | | | | | | | | | Sets the timeout of downloads to 3 minutes (from a default of 5 seconds) since some artifacts can be quite large. Signed-off-by: Hassan Abouelela <[email protected]>
| * Bump Deadline For GitHub Artifacts RouteGravatar Hassan Abouelela2022-08-12-1/+1
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * Raise Static Build After WaitingGravatar Hassan Abouelela2022-08-12-8/+14
|/ | | | | | | | Adds a missing raise in the static build for situations where everything was successful, but the build time passed the deadline specified by the site API. Signed-off-by: Hassan Abouelela <[email protected]>
* Merge pull request #742 from python-discord/github-artifactsGravatar Hassan Abouelela2022-08-12-107/+684
|\ | | | | Add GitHub Artifacts API Route
| * Rename GitHub App Environment VariablesGravatar Hassan Abouelela2022-08-12-8/+8
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * Merge branch 'main' into github-artifactsGravatar Hassan Abouelela2022-08-09-9/+53
| |\ | |/ |/|
* | Merge pull request #758 from python-discord/api-last_appliedGravatar Boris Muratov2022-08-06-0/+1
|\ \ | | | | | | Added `last_applied` to `serializers`
| * \ Merge branch 'main' into api-last_appliedGravatar Boris Muratov2022-08-06-9/+20
| |\ \ | |/ / |/| |
* | | Merge pull request #741 from python-discord/speedup-testsGravatar ChrisJL2022-08-04-9/+20
|\ \ \ | | | | | | | | Remove IP Specification From Compose Ports
| * \ \ Merge branch 'main' into speedup-testsGravatar ChrisJL2022-08-04-990/+354
| |\ \ \ | |/ / / |/| | |
| * | | Run Migrations For TestsGravatar Hassan Abouelela2022-07-12-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Call the migration handler in manage.py when running tests, before handing control back to django. Signed-off-by: Hassan Abouelela <[email protected]>
| * | | Remove IP From Compose PortsGravatar Hassan Abouelela2022-07-12-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specifying the port IP in compose seems to significantly slow down networking with postgres. This effect is epically noticeable in tests, which are 5-10x faster with the change. Signed-off-by: Hassan Abouelela <[email protected]>
| | * | Added `last_applied` to `serializers`Gravatar ionite342022-08-03-0/+1
| |/ / |/| |
* | | Merge pull request #751 from python-discord/add-infraction-last-appliedGravatar Xithrius2022-07-31-0/+32
|\ \ \
| * | | Backdate last_applied dates to use value of inserted_atGravatar Chris Lovering2022-07-27-1/+8
| | | |
| * | | Add a field to track the time an infraction was last appliedGravatar Chris Lovering2022-07-27-0/+25
|/ / / | | | | | | | | | A default is set for backwards compatibility with bot version that don't explicitly give a value.
| | * Use UTC Time For GitHub APIGravatar Hassan Abouelela2022-07-24-3/+3
| | | | | | | | | | | | | | | | | | | | | When reading the created_at time from the GitHub API, it'll be a naive date string with UTC time, so we use that instead of the system's time. Signed-off-by: Hassan Abouelela <[email protected]>
| | * Use Dataclass For Workflow RunGravatar Hassan Abouelela2022-07-24-29/+62
| | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| | * Merge branch 'main' into github-artifactsGravatar Hassan Abouelela2022-07-24-38/+54
| | |\ | |_|/ |/| |
* | | Merge pull request #750 from python-discord/relax-websocket-ruleGravatar wookie1842022-07-23-8/+6
|\ \ \ | | | | | | | | Relax rule about usage of non-WebSocket communication
| * | | Be explicit about example in rule being an allowed use-caseGravatar Bluenix2022-07-23-1/+1
| | | |