aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site (follow)
Commit message (Collapse)AuthorAgeLines
...
* | | | | Elaborate on settings.pyGravatar Johannes Christ2022-02-26-7/+14
| | | | | | | | | | | | | | | | | | | | Co-authored-by: Leon Sandøy <[email protected]>
* | | | | Elaborate on purpose of the urls moduleGravatar Johannes Christ2022-02-26-2/+1
| | | | | | | | | | | | | | | Co-authored-by: Leon Sandøy <[email protected]>
* | | | | Remove newlines added by an 🥥 INSANE PERSON 🥥Gravatar Johannes Christ2022-02-26-1/+0
| | | | | | | | | | | | | | | Co-authored-by: Leon Sandøy <[email protected]>
* | | | | Link to Django template documentationGravatar Johannes Christ2022-02-26-1/+1
| | | | | | | | | | | | | | | Co-authored-by: Leon Sandøy <[email protected]>
* | | | | Document Django applications in more depthGravatar Johannes Christ2022-02-26-4/+9
| | | | |
* | | | | Comment in individual application doc referenceGravatar Johannes Christ2022-02-26-4/+4
| | | | |
* | | | | Move static & template folder description upGravatar Johannes Christ2022-02-26-4/+5
| | | | |
* | | | | Add a readme to the Django project directoryGravatar Johannes Christ2022-02-26-1/+52
| | | | |
* | | | | Remove and merge superfluous modulesGravatar Johannes Christ2022-02-26-14/+15
| | | | | | | | | | | | | | | | | | | | The constants module more or less did what belongs to the settings.
* | | | | Remove unused moduleGravatar Johannes Christ2022-02-26-91/+0
| | | | |
* | | | | git # This is a combination of 2 commits.Gravatar Izan2022-02-24-2/+6
| | | | | | | | | | | | | | | | | | | | Add channel ID to message deletion logs
* | | | | Remove the admin appGravatar Johannes Christ2022-02-23-8/+0
| |/ / / |/| | | | | | | | | | | | | | | | | | | This app is completely unused. I assume it was planned to be a space for customizing the Django admin, but we don't even have it in `INSTALLED_APPS`, nor our URLs.
* | | | Assert we're dealing with the unique constraintGravatar Johannes Christ2022-02-21-8/+16
| | | |
* | | | Prevent race condition with duplicate infractionsGravatar Johannes Christ2022-02-21-52/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DRF's `UniqueTogetherValidator` validates uniqueness by querying the database before running the actual insert. This is not, has not, and will never be valid, unless you happen to run a single worker, on a single thread, and your single worker running on a single thread is the only client for the database, in which case it may be valid. For any other cases, it's invalid, and it has never been valid. PostgreSQL spits out an `IntegrityError` for us if we have a duplicate entry, and PostgreSQL is the only valid and correct thing to trust here. The `UniqueTogetherValidator` is removed, and an existing test case calling into this validator to check for uniqueness is removed. Furthermore, to work around a Django quirk, `transaction.atomic()` is added to prevent one `subTest` from messing with another. Closes #665.
* | | | Fixup: final wording and typoGravatar mina2022-02-21-2/+2
| | | |
* | | | Merge branch 'main' into content/update-help-channel-timingGravatar minalike2022-02-20-843/+3480
|\ \ \ \
| * | | | Update Name & Profile PolicyGravatar minalike2022-02-20-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | Update to better reflect our current moderation practices in regards to user profiles. Previous name was "Nickname Policy"
| * | | | Remove expired coupon code and update course nameGravatar wookie1842022-02-19-3/+2
| | | | |
| * | | | Fix typo in bot tutorial resource (#661)Gravatar Ben Soyka2022-02-16-1/+1
| | | | | | | | | | | | | | | Co-authored-by: Xithrius <[email protected]>
| * | | | Return random off topic names which are Active only (#644)Gravatar Rohan Reddy Alleti2022-02-16-9/+29
| | | | | | | | | | | | | | | Co-authored-by: Xithrius <[email protected]>
| * | | | Merge branch 'main' into 659/lemon/resource_search_barGravatar Leon Sandøy2022-02-13-0/+48
| |\ \ \ \
| | * | | | Allow searching users by username and discriminatorGravatar Johannes Christ2022-02-13-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A test case is added to demonstrate this functionality. Closes #578. Co-authored-by: Boris Muratov <[email protected]>
| * | | | | Edge cases: Show duckies when no visible resourcesGravatar Leon Sandøy2022-02-13-8/+14
| | | | | |
| * | | | | Fix bug with search tag taking up too much width.Gravatar Leon Sandøy2022-02-13-2/+3
| | | | | |
| * | | | | Titlecase the PyDis YouTube resourceGravatar Leon Sandøy2022-02-13-1/+1
| | | | | | | | | | | | | | | | | | Co-authored-by: Mark <[email protected]>
| * | | | | Best practice: Switch name to data-resource-name.Gravatar Leon Sandøy2022-02-13-4/+4
| | | | | |
| * | | | | Edge case: Fix a bug with overflow on Chrome.Gravatar Leon Sandøy2022-02-13-1/+0
| | | | | |
| * | | | | Add fuzzysort as a local dependency.Gravatar Leon Sandøy2022-02-13-1/+658
| | | | | |
| * | | | | Edge case: Fix extremely long search overflow.Gravatar Leon Sandøy2022-02-13-1/+19
| | | | | |
| * | | | | Fix search tag width bug on firefox.Gravatar Leon Sandøy2022-02-13-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without a min-width, the tag would not extend to fit the full size of the contents on Firefox. It seemed to work just fine on Chrome, though. The fix is simple - just enforce a min-width equal to fit-content.
| * | | | | Make the remove all tags affect search, too.Gravatar Leon Sandøy2022-02-13-1/+4
| | | | | |
| * | | | | Fix duck pond not showing for search results of 0.Gravatar Leon Sandøy2022-02-13-3/+2
| | | | | |
| * | | | | Search the resource description too.Gravatar Leon Sandøy2022-02-13-6/+15
| | | | | |
| * | | | | Make the search tag look more like normal filters.Gravatar Leon Sandøy2022-02-13-1/+6
| | | | | |
| * | | | | Add a filter tag when searching.Gravatar Leon Sandøy2022-02-13-4/+31
| | | | | |
| * | | | | Implement fuzzy search.Gravatar Leon Sandøy2022-02-13-4/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements the core logics for filtering by search. It uses fuzzysort to match the search query to the name of the resource. This name is set in the yaml for each resource.
| * | | | | Add names for every resource card.Gravatar Leon Sandøy2022-02-13-3/+14
| | | | | |
| * | | | | Add fuzzysort dependency.Gravatar Leon Sandøy2022-02-13-0/+1
| | | | | |
| * | | | | Trigger a UI update when typing into search.Gravatar Leon Sandøy2022-02-13-0/+5
| | | | | |
| * | | | | Dynamically update URL with search query.Gravatar Leon Sandøy2022-02-13-3/+19
| | | | | |
| * | | | | Kaizen: Update URL for Two Scoops.Gravatar Leon Sandøy2022-02-12-1/+1
| | | | | |
| * | | | | Add a search bar to the top of the filter sidebar.Gravatar Leon Sandøy2022-02-12-1/+15
| | | | | |
| * | | | | Kaizen: Fix redirect /pages/resources/communities.Gravatar Leon Sandøy2022-02-12-0/+5
| | | | | |
| * | | | | Kaizen: Ensure resource cards are fullwidth.Gravatar Leon Sandøy2022-02-12-1/+1
| |/ / / /
| * / / / Update Exercism Resource (#658)Gravatar mathstrains212022-02-11-2/+2
| |/ / /
| * | | Replace FA pro issue icon with the regular iconGravatar ChrisJL2022-02-04-3/+3
| | | | | | | | | | | | We stopped using FA pro, as we wanted it was using an ex-admin's person FA pro subscription, which we didn't control.
| * | | Rewrite Google Colab resource to emphasize GPU computationGravatar Steele Farnsworth2022-02-03-4/+4
| | | | | | | | | | | | | | | | | | | | Previously, it was unclear why this was a data science resource. This version states that Colab offers GPU computation and that it can be used for deep learning, which is the reason. Also fixes abrupt change in sentence structure ("a ... Jupyter Notebook which supports e.g. !apt-get"; "e.g." unexpected). Also, expressions in backticks (apt-get) won't be rendered as code, though since Colab is mostly a beginner sandbox, I don't think the word "Debian" will often be known.
| * | | Duck pond removed when removing all filters.Gravatar Leon Sandøy2022-02-02-1/+2
| | | |
| * | | Use external-link-alt for all links.Gravatar Leon Sandøy2022-02-01-5/+5
| | | |
| * | | Complete refactor of collapsibles.Gravatar Leon Sandøy2022-02-01-32/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is now a completely self-contained feature, which can be used in the same way on every page. I've moved all the collapsible-related logics out of the resources.js file and into collapsibles.js, and added documentation and other quality-of-life features that will apply to other pages, as well. Changes: - The icon will now always change when the collapsible opens or closes. - By adding the "collapsed" class, you can tell the collapsible to be collapsed by default.