aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | * | | 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
| | |
* | | Rename Tag Model Author FieldGravatar Hassan Abouelela2022-08-23-12/+17
| | | | | | | | | | | | | | | | | | | | | Renames the tag model `author` field to `authors` to better indicate what's contained in the field, and updates the documentation. Signed-off-by: Hassan Abouelela <[email protected]>
* | | Support Hyperlinked Tag Group ReplacementGravatar Hassan Abouelela2022-08-23-5/+53
| | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | | Merge branch 'main' into bot-tagsGravatar Hassan Abouelela2022-08-23-7/+12
|\| |
| * | 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]>
* | Clarify Tag Model DocstringGravatar Hassan Abouelela2022-08-23-1/+1
| | | | | | Co-authored-by: ChrisJL <[email protected]>
* | Improve Tag Commit NamingGravatar Hassan Abouelela2022-08-23-5/+5
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Fix Tests For Tag MetadataGravatar Hassan Abouelela2022-08-16-29/+148
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Fix Tag Metadata For Static BuildsGravatar Hassan Abouelela2022-08-16-3/+12
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Better Split Up Tag Commit MessagesGravatar Hassan Abouelela2022-08-16-1/+8
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Add Tag MetadataGravatar Hassan Abouelela2022-08-16-25/+146
| | | | | | | | | | | | | | Uses the commit API to obtain tag metadata such as when it was last edited, and by whom. Signed-off-by: Hassan Abouelela <[email protected]>
* | Unify Tag Migrations & Add Commit ModelGravatar Hassan Abouelela2022-08-16-47/+72
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Move GitHub strptime Format To SettingsGravatar Hassan Abouelela2022-08-16-3/+3
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Update Tests For Tag GroupsGravatar Hassan Abouelela2022-08-14-24/+157
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Change Hyperlink Color On HoverGravatar Hassan Abouelela2022-08-14-0/+4
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Add Tag Group SupportGravatar Hassan Abouelela2022-08-14-52/+187
| | | | | | | | | | | | | | Adds support for tag groups in content. This involves some modification to the routing, and templating. Signed-off-by: Hassan Abouelela <[email protected]>
* | Move Tag URL To Property And Add GroupGravatar Hassan Abouelela2022-08-14-10/+47
| | | | | | | | | | | | | | | | | | The URLs can be simply constructed using the other tag properties, so they were removed from the database in favor of a property. A group field was also added to support tags within groups. Signed-off-by: Hassan Abouelela <[email protected]>
* | Improve Tag CroppingGravatar Hassan Abouelela2022-08-13-6/+40
| | | | | | | | | | | | | | Move the tag cropping logic to the frontend, which makes it easier to crop without crossing boundaries such as link or code block boundaries. Signed-off-by: Hassan Abouelela <[email protected]>
* | Enable Code Highlighting On All Content PagesGravatar Hassan Abouelela2022-08-13-8/+4
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Clean Up Tag Link SubstitutionGravatar Hassan Abouelela2022-08-13-4/+3
| | | | | | | | | | Co-authored-by: ChrisJL <[email protected]> Signed-off-by: Hassan Abouelela <[email protected]>
* | Set Link Color For Sub-elementsGravatar Hassan Abouelela2022-08-13-0/+6
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Add Tag View TestsGravatar Hassan Abouelela2022-08-13-4/+233
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Export Tag Model As Top Level Model ObjectGravatar Hassan Abouelela2022-08-13-2/+5
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Add Content App To NavbarGravatar Hassan Abouelela2022-08-13-0/+3
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Add PyMDown ExtensionsGravatar Hassan Abouelela2022-08-13-1/+17
| | | | | | | | | | | | | | Adds the python-markdown extension pack as it offers better support for things such as codeblocks. Signed-off-by: Hassan Abouelela <[email protected]>
* | Add Tag Page TemplateGravatar Hassan Abouelela2022-08-13-5/+105
| | | | | | | | | | | | Add a template for the tag page itself, and add a route to use it. Signed-off-by: Hassan Abouelela <[email protected]>
* | Add Tags To Content ListingsGravatar Hassan Abouelela2022-08-13-12/+177
| | | | | | | | | | | | | | Adds bot tags to the content page, as well as a model to go along with it. Signed-off-by: Hassan Abouelela <[email protected]>
* | Add Setting For Static BuildsGravatar Hassan Abouelela2022-08-13-11/+11
|/ | | | | | | Adds an explicit setting for static builds instead of relying on the environment variable. 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]>