aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site (follow)
Commit message (Collapse)AuthorAgeLines
* Update metricity tests to test new voice_gate_blocked behaviourGravatar Chris Lovering2022-01-27-10/+22
|
* Use voice_mute and voice_ban to determine voice_gateGravatar Chris Lovering2022-01-27-8/+6
| | | | Previously only voice_ban was used, but now having either of these infractions should mean the user is blocked from reciving the role.
* Add new incidents webhook to exmaple config.ymlGravatar Chris Lovering2022-01-27-0/+1
| | | | This was recently added to the bot.
* Fix pynews config in example fileGravatar Chris Lovering2022-01-27-1/+5
| | | | The python news cog relies on the python_news section of the config being filled in via a named alias. Since we were using the DEV_ prefix, this meant it was not being populated, leading to the cog throwing an error on boot.
* Merge branch 'main' into voicemuteGravatar ChrisJL2022-01-27-1/+1
|\
| * Prevent page title from overlapping dropdown button.Gravatar kosayoda2022-01-23-1/+1
| | | | | | | | | | | | | | | | | | On clients with a small viewport width, the content title of pages overlap the "Sub-Articles" dropdown button due to having the same z-index, causing the element last positioned in the HTML to show up on top. Fixes #643.
* | Try to add merge migrationGravatar Karlis Suvi2022-01-25-0/+14
| |
* | Merge branch 'main' into voicemuteGravatar ChrisJL2022-01-21-306/+1366
|\|
| * Merge branch 'main' into mainGravatar wookie1842022-01-16-6/+31
| |\
| | * Renumber communities after DjangoGravatar Joe Banks2022-01-14-2/+2
| | |
| | * Add Django Discord communityGravatar Joe Banks2022-01-14-0/+13
| | |
| | * Add netcup logo to sponsor block on homeapgeGravatar Chris Lovering2022-01-10-0/+3
| | |
| | * Shift footer images slightly to be better in lineGravatar Chris Lovering2022-01-05-1/+2
| | |
| | * Use an svg for django footer logoGravatar Chris Lovering2022-01-05-2/+2
| | |
| | * Add netcup logo to page footerGravatar Chris Lovering2022-01-05-1/+9
| | |
| * | Resource Suggestion: #639 solvedGravatar Krish2022-01-07-3/+1
| |/
| * Fix faulty regex filters in migration 59Gravatar Boris Muratov2021-12-31-29/+29
| | | | | | Migration 59 populated the filters table with regex filters, some of which were faulty because the `\b` character wasn't escaped. This is fixed in this PR by making all patterns raw strings.
| * Merge branch 'main' into otn_softdelGravatar Xithrius2021-12-28-28/+7
| |\
| | * Always include metricity message blocksGravatar Chris Lovering2021-12-16-25/+2
| | | | | | | | | | | | Thanks to a recent database maintenance (https://pythondiscord.freshstatus.io/incident/139811) querying out metricity message data is far cheaper. So there is no longer a reason to only fetch blocks if the member has a low message count.
| | * Query message count directly from messagesGravatar Chris Lovering2021-12-14-3/+5
| | | | | | | | | | | | | | | | | | This was changed due to performance reasons, but after some tweaking in the database, such as increasing work memory and adding an index, this query runs much faster now. To test this, I want to revert this change, so that we can stop the materialised view from refreshing, to see if the act of refreshing is what's causing this query to seem faster when runing against the database.
| * | Merge migrations to avoid conflicts.Gravatar RohanJnr2021-12-13-0/+14
| | |
| * | Merge branch 'main' into otn_softdelGravatar Rohan Reddy Alleti2021-12-13-54/+339
| |\|
| | * Merge branch 'main' into use-new-message-viewGravatar ChrisJL2021-12-11-5/+28
| | |\
| | | * Migrate to generic `JSONField`Gravatar Johannes Christ2021-11-27-5/+28
| | | |
| | * | Use new approx message count viewGravatar Chris Lovering2021-12-11-5/+3
| | |/ | | | | | | | | | | | | | | | We have added a new view to metricity that will keep track of an approximate message count, updating every 10 seconds. By doing this, we avoid running a query against the whole message table every time we want to get a user's messages.
| | * Patch signals to use post_delete, instead of pre_deleteGravatar D0rs4n2021-11-26-5/+4
| | | | | | | | | | | | | | | From now on the signal will only get executed after the Role has been deleted The commit also introduces minor changes in the tests of roles
| | * Patch roles test to use fresh instance from the DBGravatar D0rs4n2021-11-26-0/+1
| | |
| | * Add test to check role unassignmentGravatar D0rs4n2021-11-26-1/+21
| | | | | | | | | | | | Create a test that checks if a role gets deleted it will also get unassigned from the user
| | * Create a signal to unassign roles from user when deletedGravatar D0rs4n2021-11-26-1/+22
| | | | | | | | | | | | | | | Add a signal to the api app that automatically unassigns deleted roles from users that have them
| | * Merge branch 'main' into patch-1Gravatar Johannes Christ2021-11-26-41/+259
| | |\
| | | * Merge branch 'main' into redirectsGravatar Johannes Christ2021-11-26-179/+854
| | | |\
| | | | * Merge migrations with upstreamGravatar Johannes Christ2021-11-25-0/+14
| | | | |
| | | | * Fix lintingGravatar Izan2021-11-25-1/+10
| | | | |
| | | | * Update documentation to include `dm_sent` fieldGravatar Izan2021-11-25-3/+6
| | | | |
| | | | * Add `dm_sent` field to infractions model & serializerGravatar Izan2021-11-25-1/+23
| | | | |
| | | | * Alter message query to leverage indexGravatar Chris Lovering2021-11-23-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously this query would convert each row to an array just to check if it matched or not. By changing EXCLUDE_CHANNELS to a tuple instead of a list, it doesn't get passed as an array, so we can do a simple NOT IN check. This will also allow us to add an index with this condition to speed it up further.
| | | | * Add metricity test for users >1k messagesGravatar Chris Lovering2021-11-22-0/+19
| | | | |
| | | | * Make metricity test order insensitiveGravatar Chris Lovering2021-11-22-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We only actually care that thee key:value pairs are equal, the order of them isn't actually important. The naming of `assertCountEqual` is a little misleading, since it actually tests that the first sequence contains the same elements as second, regardless of their order. See https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertCountEqual
| | | | * Only calc activity blocks when <1k messagesGravatar Chris Lovering2021-11-22-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We only truly care about how many activity blocks a user has when they have a small number of messages, as we only use this for the voice gate. If a user has more than say 1k messages, then we really don't need to calculate their activity blocks, as it's quite an expensive query with many messages.
| | | | * Adds Redirect Filter ListGravatar Hassan Abouelela2021-11-17-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new filter list for URLs which should be treated as redirects and unfurled. Signed-off-by: Hassan Abouelela <[email protected]>
| | | | * Adds Failures Field To RemindersGravatar Hassan Abouelela2021-10-29-6/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds an integer field to reminders, to keep track of how many failed attempts at delivering the reminder were made. Updates documentation and serialization. Signed-off-by: Hassan Abouelela <[email protected]>
| | | * | Adds Redirects To Static BuildsGravatar Hassan Abouelela2021-10-10-20/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dynamically adds static HTML redirects for static builds. Signed-off-by: Hassan Abouelela <[email protected]>
| | * | | Fix gitpod link in Sir Lancebot contributing guideGravatar Hedy Li2021-11-04-1/+1
| | | | |
| | * | | Improve Gitpod section in Sir Lancebot contributing guideGravatar Hedy Li2021-11-04-2/+7
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | - Add newlines so it's not a big unfriendly paragraph - Fix gitpod workspace link - Clarification on terminal commands - Clarification on test server and bot - Add links for that ^ and for environment variables
| * | | Remove get_queryset() and add new class variable .Gravatar RohanJnr2021-11-06-7/+7
| | | |
| * | | Use framework defination of method.Gravatar RohanJnr2021-11-05-2/+2
| | | |
| * | | Eliminate usage of typing module and update docstrings.Gravatar RohanJnr2021-11-05-6/+4
| | | |
| * | | Update test cases to adhere to recent changes made that removed hosts.Gravatar RohanJnr2021-11-05-2/+2
| | | |
| * | | Fix: Conflicting migrations.Gravatar RohanJnr2021-11-05-0/+14
| | | |
| * | | Pull from upstream/main and resolve conflicts.Gravatar RohanJnr2021-11-05-662/+1373
| |\| |