aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| * | | | | 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 pull request #634 from python-discord/bump-drfGravatar Hassan Abouelela2021-12-14-82/+119
|\ \ \ \ \ | | | | | | | | | | | | Bump drf up to 3.12.0
| * | | | | Bump drf up to 3.12.0Gravatar Chris Lovering2021-12-13-82/+119
|/ / / / / | | | | | | | | | | | | | | | This is to add support for Django 3.1's database-agnositic JSONField.
| * | | | Merge migrations to avoid conflicts.Gravatar RohanJnr2021-12-13-0/+14
| | | | |
| * | | | Merge branch 'main' into otn_softdelGravatar Rohan Reddy Alleti2021-12-13-82/+365
| |\ \ \ \ | |/ / / / |/| | | |
* | | | | Merge pull request #633 from python-discord/dependabot/pip/django-3.1.14Gravatar ChrisJL2021-12-12-5/+5
|\ \ \ \ \ | | | | | | | | | | | | Bump django from 3.1.13 to 3.1.14
| * \ \ \ \ Merge branch 'main' into dependabot/pip/django-3.1.14Gravatar ChrisJL2021-12-12-5/+3
| |\ \ \ \ \ | |/ / / / / |/| | | | |
* | | | | | Merge pull request #632 from python-discord/use-new-message-viewGravatar Johannes Christ2021-12-11-5/+3
|\ \ \ \ \ \ | | | | | | | | | | | | | | Use new approx message count view
| * \ \ \ \ \ Merge branch 'main' into use-new-message-viewGravatar ChrisJL2021-12-11-17/+41
| |\ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | 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.
| | * | | | | Bump django from 3.1.13 to 3.1.14Gravatar dependabot[bot]2021-12-11-5/+5
| |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [django](https://github.com/django/django) from 3.1.13 to 3.1.14. - [Release notes](https://github.com/django/django/releases) - [Commits](https://github.com/django/django/compare/3.1.13...3.1.14) --- updated-dependencies: - dependency-name: django dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
* | | | | | Merge pull request #630 from python-discord/dependabot/pip/django-3.1.13Gravatar Johannes Christ2021-12-11-17/+41
|\ \ \ \ \ \ | |/ / / / / |/| | | | | Bump django from 3.0.14 to 3.1.13
| * | | | | Merge branch 'main' into dependabot/pip/django-3.1.13Gravatar ChrisJL2021-12-11-9/+4
| |\ \ \ \ \ | |/ / / / / |/| | | | |
* | | | | | Merge pull request #631 from Akarys42/patch-1Gravatar Joe Banks2021-12-10-9/+4
|\ \ \ \ \ \
| * | | | | | Remove myself from the codeownersGravatar Matteo Bertucci2021-12-10-9/+4
|/ / / / / /
| * | | | | Update `django-filter` for new Django versionGravatar Johannes Christ2021-11-27-7/+7
| | | | | |
| * | | | | Migrate to generic `JSONField`Gravatar Johannes Christ2021-11-27-5/+28
| | | | | |
| * | | | | Bump django from 3.0.14 to 3.1.13Gravatar dependabot[bot]2021-11-26-6/+7
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [django](https://github.com/django/django) from 3.0.14 to 3.1.13. - [Release notes](https://github.com/django/django/releases) - [Commits](https://github.com/django/django/compare/3.0.14...3.1.13) --- updated-dependencies: - dependency-name: django dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
* | | | | Merge pull request #629 from python-discord/static-docsGravatar Matteo Bertucci2021-11-26-7/+9
|\ \ \ \ \ | | | | | | | | | | | | Clean Up Static Deployment Docs
| * | | | | Clean Up Static Deploys ReadmeGravatar Hassan Abouelela2021-11-26-6/+8
| | | | | | | | | | | | | | | | | | Reorganize the static deploy readme, and clarify the content.
| * | | | | Fix Typo In Static TaskGravatar Hassan Abouelela2021-11-26-1/+1
|/ / / / /
* | | | | Merge pull request #572 from D0rs4n/pr/deleterolesignalGravatar Johannes Christ2021-11-26-4/+45
|\ \ \ \ \ | | | | | | | | | | | | Create a signal to unassign roles from user when the role is deleted
| * | | | | 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 pull request #619 from hedyhli/patch-1Gravatar Johannes Christ2021-11-26-2/+7
|\ \ \ \ \ | | | | | | | | | | | | Improve Gitpod section in Sir Lancebot contributing guide
| * \ \ \ \ Merge branch 'main' into patch-1Gravatar Johannes Christ2021-11-26-41/+259
| |\ \ \ \ \ | |/ / / / / |/| | | | |
* | | | | | Merge pull request #612 from python-discord/redirectsGravatar Johannes Christ2021-11-26-20/+112
|\ \ \ \ \ \ | | | | | | | | | | | | | | Adds Redirects To Static Builds
| * \ \ \ \ \ Merge branch 'main' into redirectsGravatar Johannes Christ2021-11-26-179/+854
| |\ \ \ \ \ \ | |/ / / / / / |/| | | | | |
* | | | | | | Merge pull request #621 from python-discord/add-dm_sent-fieldGravatar Joe Banks2021-11-25-4/+52
|\ \ \ \ \ \ \
| * | | | | | | 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
|/ / / / / / /
* | | | | | | Merge pull request #628 from python-discord/alter-query-to-leverage-indexGravatar Johannes Christ2021-11-24-7/+7
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Alter message query to leverage index
| * | | | | | | 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.
* | | | | | | Merge pull request #627 from python-discord/don't-always-calc-activity-blocksGravatar Johannes Christ2021-11-23-3/+28
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Don't always calc activity blocks
| * | | | | | | 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.
* | | | | | | Merge pull request #625 from python-discord/filter-redirectsGravatar Johannes Christ2021-11-20-1/+21
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Adds Redirect Filter List
| * | | | | | | 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 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
| | | | | | |