aboutsummaryrefslogtreecommitdiffstats
path: root/manage.py (unfollow)
Commit message (Collapse)AuthorLines
2022-09-18replace parenthesis with square brackets since tuples are serialized are listsGravatar Amrou Bellalouna-3/+3
2022-09-18restrict the RulesView docstrings to just what it doesGravatar Amrou Bellalouna-3/+2
2022-09-18replace sweet with "sweets" to refer more to candyGravatar Amrou Bellalouna-1/+1
2022-09-18update the RulesView class' docstringsGravatar Amrou Bellalouna-4/+7
2022-09-18make docstring more explicit about the returned contentGravatar Amrou Bellalouna-1/+6
2022-09-18add suggested keywordsGravatar Amrou Bellalouna-9/+9
2022-09-18add docstrings explaining the values that the Rules view returnsGravatar Amrou Bellalouna-0/+1
2022-09-18Fix Poetry 1.2 SupportGravatar Hassan Abouelela-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]>
2022-09-17Ignore Whitenoise's Static Directory WarningGravatar Hassan Abouelela-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]>
2022-09-04Enable Python Warnings In TestsGravatar Hassan Abouelela-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]>
2022-09-04Fix Unittest Deprecation WarningsGravatar Hassan Abouelela-12/+12
Signed-off-by: Hassan Abouelela <[email protected]>
2022-09-04Fix Django Deprecation WarningsGravatar Hassan Abouelela-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]>
2022-08-30Fix grammar in contributing guide (#771)Gravatar Rohan Shah-1/+1
2022-08-18add collection of keywords per ruleGravatar Amrou Bellalouna-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
2022-08-16striked passed dateGravatar Ibrahim-2/+2
2022-08-14Explicitly Specify Infraction Time In TestsGravatar Hassan Abouelela-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]>
2022-08-12Increase Timeout For Artifact DownloadGravatar Hassan Abouelela-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]>
2022-08-12Bump Deadline For GitHub Artifacts RouteGravatar Hassan Abouelela-1/+1
Signed-off-by: Hassan Abouelela <[email protected]>
2022-08-12Raise Static Build After WaitingGravatar Hassan Abouelela-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]>
2022-08-12Rename GitHub App Environment VariablesGravatar Hassan Abouelela-8/+8
Signed-off-by: Hassan Abouelela <[email protected]>
2022-08-03Added `last_applied` to `serializers`Gravatar ionite34-0/+1
2022-07-27Backdate last_applied dates to use value of inserted_atGravatar Chris Lovering-1/+8
2022-07-27Add a field to track the time an infraction was last appliedGravatar Chris Lovering-0/+25
A default is set for backwards compatibility with bot version that don't explicitly give a value.
2022-07-24Use UTC Time For GitHub APIGravatar Hassan Abouelela-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]>
2022-07-24Use Dataclass For Workflow RunGravatar Hassan Abouelela-29/+62
Signed-off-by: Hassan Abouelela <[email protected]>
2022-07-23Be explicit about example in rule being an allowed use-caseGravatar Bluenix-1/+1
2022-07-23Rework sentence urging reaching out to the events teamGravatar Bluenix-1/+1
Co-authored-by: wookie184 <[email protected]>
2022-07-23Fix past-tense "exempt" typoGravatar Bluenix-1/+1
Co-authored-by: wookie184 <[email protected]>
2022-07-23Relax rule about usage of non-WebSocket communicationGravatar Bluenix-8/+6
2022-07-21Update codejams sidebar about cj9 theme announcementGravatar Bluenix-1/+1
2022-07-21Strike out beginning of code jam dateGravatar Bluenix-1/+1
2022-07-21Remove unnecessary "also" in new exception to codejam ruleGravatar Bluenix-1/+1
2022-07-21Clarify WebSocket restriction rule's impact on static servingGravatar Bluenix-1/+3
Before this change, the rule technically disallows implementing JavaScript clients because webbrowsers use HTTP to fetch the static files. This commit also fixes a mistake in a previous commit where Markdown-style characters were used instead of code-tags.
2022-07-19Add CJ9 page link to side barGravatar mina-0/+1
Technically it's an ongoing jam, not a previous jam. But I think adding this link will help with discoverability if you're already on the CJ Info page. Can be updated once a theme is announced
2022-07-19Add back green box link to CJ 9 pageGravatar mina-0/+3
This was the easiest way of navigating to the CJ9 page previously other than the home page. Let's keep it for the duration of the jam
2022-07-17Copy over qualifier description from codejam 8Gravatar Bluenix-4/+14
2022-07-15Remove trailing space in codejam rulesGravatar Bluenix-1/+1
2022-07-15Add note about approval for non-WebSocket communicationGravatar Bluenix-0/+2
2022-07-15Reword new codejam rule exception clauseGravatar Bluenix-2/+2
Co-authored-by: wookie184 <[email protected]>
2022-07-14Remove accidental stray parenthesis in new codejam ruleGravatar Bluenix-1/+1
Co-authored-by: Kieran Siek <[email protected]>
2022-07-14Update site banner for codejamGravatar Bluenix-2/+2
2022-07-14Remove notification about open codejam qualifierGravatar Bluenix-9/+0
2022-07-14Strike over passed dates in codejam informationGravatar Bluenix-2/+2
2022-07-14Clean Up Artifact TestsGravatar Hassan Abouelela-9/+7
Signed-off-by: Hassan Abouelela <[email protected]>
2022-07-14De-capitalize aiohttp in codejam frameworksGravatar Bluenix-2/+2
Co-authored-by: Numerlor <[email protected]>
2022-07-14Add rule about forced usage of WebSocketsGravatar Bluenix-0/+9
2022-07-14Add `aiohttp` to approved frameworksGravatar Bluenix-0/+14
2022-07-14Move Starlite and Sanic above wsprotoGravatar Bluenix-12/+12
2022-07-14Remove `flask-socketio` from approved frameworksGravatar Bluenix-14/+0
2022-07-12Make Awaiting Workflow Run A User ResponsibilityGravatar Hassan Abouelela-131/+131
Moves the responsibility of re-requesting a workflow run from the API to the user. This makes the requests much shorter-lived, and allows the client to control how they want to handle sleeping and retrying. This also has the benefit of removing the only real piece of async code, so now the view is completely sync once again. Signed-off-by: Hassan Abouelela <[email protected]>