aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps (follow)
Commit message (Collapse)AuthorAgeLines
* 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-0/+5
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Add Tag MetadataGravatar Hassan Abouelela2022-08-16-23/+120
| | | | | | | 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/+1
| | | | 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]>
* Add Tag Group SupportGravatar Hassan Abouelela2022-08-14-38/+159
| | | | | | | 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-5/+1
| | | | | | | 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]>
* Clean Up Tag Link SubstitutionGravatar Hassan Abouelela2022-08-13-4/+3
| | | | | Co-authored-by: ChrisJL <[email protected]> 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 Tag Page TemplateGravatar Hassan Abouelela2022-08-13-4/+76
| | | | | | 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-10/+167
| | | | | | | 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-6/+4
| | | | | | | Adds an explicit setting for static builds instead of relying on the environment variable. 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]>
* Rename GitHub App Environment VariablesGravatar Hassan Abouelela2022-08-12-2/+2
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Merge branch 'main' into github-artifactsGravatar Hassan Abouelela2022-08-09-0/+33
|\
| * Added `last_applied` to `serializers`Gravatar ionite342022-08-03-0/+1
| |
| * 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]>
* | Clean Up Artifact TestsGravatar Hassan Abouelela2022-07-14-9/+7
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Make Awaiting Workflow Run A User ResponsibilityGravatar Hassan Abouelela2022-07-12-130/+123
| | | | | | | | | | | | | | | | | | | | | | 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]>
* | Add GitHub Artifact API ViewGravatar Hassan Abouelela2022-07-12-2/+530
|/ | | | | | Adds an API route to fetch GitHub build artifacts through a GitHub app. Signed-off-by: Hassan Abouelela <[email protected]>
* Bump Django To 3.2Gravatar Hassan Abouelela2022-07-11-5/+5
| | | | | | | | | | Bumps the current django version to 3.2 For the most part, there are no major changes here. The app configuration names were incorrect, and the new version no longer ignores that, so those were updated. The new version also requires explicitly defining the field type for primary keys if they are not defined on the model. Signed-off-by: Hassan Abouelela <[email protected]>
* Bump flake8-bandit To v3Gravatar Hassan Abouelela2022-07-11-5/+4
| | | | | | | | | | | Bumps flake-bandit to v3 to fix an incompatibility with the bandit package. This also bumps flake8-annotations to a legally acceptable version, which introduces ANN401, which disallows `typing.Any` annotations (for the most part, refer to the docs). Signed-off-by: Hassan Abouelela <[email protected]>
* Remove Message Model TestGravatar Hassan Abouelela2022-07-11-12/+0
| | | | | | | | | | | | The message model was tested by instantiating and confirming it has a string representation, but instantiating abstract models is undefined behavior, and can break with future versions of django. The behavior of the test is redundant anyway, since an abstract model wouldn't exist in isolation, and the desired behavior is confirmed by inheritors. Signed-off-by: Hassan Abouelela <[email protected]>
* Drop Migration TestsGravatar Hassan Abouelela2022-07-11-734/+0
| | | | | | | | | The migration test suite was not really used, and it doesn't entirely make sense to test a constant unchanging process either. Its behavior is also very coupled with django's internals, and locks us into the current version and setup. Signed-off-by: Hassan Abouelela <[email protected]>
* Switch Out requests For httpxGravatar Hassan Abouelela2022-07-11-9/+9
| | | | | | | | The requests library has been replaced by httpx. It's a drop-in replacement, but provides a better interface for certain things, such as client sessions, and sync/async support. Signed-off-by: Hassan Abouelela <[email protected]>
* Merge branch 'main' into swfarnsworth/resourcesGravatar Steele Farnsworth2022-07-10-410/+23
|\
| * Remove embed validators from old migrationsGravatar Chris Lovering2022-06-30-5/+3
| | | | | | | | Since the util file has been deleted, these migrations were referencing a missing file
| * Remove embed validators for deleted messagesGravatar Chris Lovering2022-06-30-405/+20
| | | | | | | | These caused more harm than they were worth, as every time Discord updated a behaviour of an embed we would get errors and need ot update the validation. Instead we should just accept whatever discord gives us as correct
* | Use font awesome lock icon that is available under free licenseGravatar mina2022-07-10-1/+1
| |
* | Fix lintingGravatar mina2022-07-10-1/+0
| |
* | Add padlock as icon for Security resourcesGravatar Steele2022-06-13-0/+1
| |
* | Update vcokltfre's discord bot tutorialGravatar Steele2022-06-13-1/+1
| |
* | Remove Atom, which will no longer be supportedGravatar Steele2022-06-13-14/+0
| |
* | Add The Algorithms to resourcesGravatar Steele2022-06-13-0/+18
| |
* | Merge branch 'main' into swfarnsworth/resourcesGravatar Steele2022-06-13-386/+1364
|\|
| * Merge branch 'main' into contrib-streamlineGravatar Boris Muratov2022-05-17-17/+532
| |\
| | * Add video type to Python Morsels resoureGravatar Daniel Brown2022-05-09-0/+1
| | | | | | | | | Adding the video type at the request of Trey Hunner.
| | * Add recommended hosting service page (#712)Gravatar Diabolical57772022-05-04-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add article discussing free hosting services * add hsoting and VPS services article * Merge branch 'pinned_messages' of https://github.com/Diabolical5777/site into pinned_messages * Delete free_hosting_services.md * Update pydis_site/apps/content/resources/guides/python-guides/vps_services.md Co-authored-by: Bluenix <[email protected]> * Update pydis_site/apps/content/resources/guides/python-guides/vps_services.md Co-authored-by: Bluenix <[email protected]> * Update pydis_site/apps/content/resources/guides/python-guides/vps_services.md Co-authored-by: Bluenix <[email protected]> * add vps and hosting service guide * Update pydis_site/apps/content/resources/guides/python-guides/vps_services.md Co-authored-by: Bluenix <[email protected]> * add article on VPS and free hosting services * Update vps_services.md * Update vps_services.md Co-authored-by: Bluenix <[email protected]> Co-authored-by: ChrisJL <[email protected]>
| | * Merge branch 'main' into discord-messages-colors-guideGravatar wookie1842022-04-30-13/+696
| | |\
| | | * Don't do JSON as a database, kids. (#700)Gravatar Xithrius2022-04-28-0/+28
| | | | | | | | | | | | Migrate no-JSON-as-a-database pinned message to site
| | | * Migrate discord.py custom help command pin to site (#698)Gravatar Diabolical57772022-04-23-0/+66
| | | |
| | | * Add support for BIG SOLIDUS unicode characters for off topic namesGravatar mina2022-04-21-1/+20
| | | | | | | | | | | | | | | | We must add support for all B I G S O L I D U S. This is necessary.
| | | * Add tests for new embed colour typesGravatar Chris Lovering2022-04-21-1/+11
| | | |