aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site (follow)
Commit message (Collapse)AuthorAgeLines
...
| | * | | 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 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
| | |\| | | |
| | * | | | | Merge branch 'main' into otn_softdelGravatar Rohan Reddy Alleti2021-08-20-35/+522
| | |\ \ \ \ \
| | * | | | | | fix CommandError: Conflicting migrations detected.Gravatar RohanJnr2021-07-24-0/+14
| | | | | | | |
| | * | | | | | Merge branch 'main' into otn_softdelGravatar Rohan Reddy Alleti2021-07-24-68/+819
| | |\ \ \ \ \ \
| | * | | | | | | Update docstring.Gravatar RohanJnr2021-07-22-1/+1
| | | | | | | | |
| | * | | | | | | Use sets to compare 2 un-ordered lists.Gravatar RohanJnr2021-06-10-9/+10
| | | | | | | | |
| | * | | | | | | Merge branch 'main' into otn_softdelGravatar Rohan Reddy Alleti2021-06-10-81/+340
| | |\ \ \ \ \ \ \
| | * | | | | | | | Use assertListEqual where applicable instead of assertEqual.Gravatar RohanJnr2021-06-10-8/+10
| | | | | | | | | |
| | * | | | | | | | Add tests for active params.Gravatar RohanJnr2021-06-10-4/+34
| | | | | | | | | |
| | * | | | | | | | Fix bug: Do not force active param.Gravatar RohanJnr2021-06-10-6/+9
| | | | | | | | | |
| | * | | | | | | | Lint file and remove update() method declaration from ↵Gravatar RohanJnr2021-06-10-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OffTopicChannelNameListSerializer.
| | * | | | | | | | Query off topic names based on Active attribute.Gravatar RohanJnr2021-06-04-6/+10
| | | | | | | | | |
| | * | | | | | | | Return a list of ot-names only for GET request only to ↵Gravatar RohanJnr2021-06-04-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bot/off-topic-channel-names
| | * | | | | | | | Use ModelViewSet to add support for PUT and PATCH request.Gravatar RohanJnr2021-05-19-8/+5
| | | | | | | | | |
| | * | | | | | | | Serialize name and active attribute.Gravatar RohanJnr2021-05-19-12/+1
| | | | | | | | | |
| | * | | | | | | | Add active field to OffTopicChannelName model.Gravatar RohanJnr2021-05-19-1/+29
| | | | | | | | | |
| * | | | | | | | | Link icons belong close together.Gravatar Leon Sandøy2022-01-23-12/+12
| | | | | | | | | |
| * | | | | | | | | Make GoodReads icons readable.Gravatar Leon Sandøy2022-01-23-11/+5
| | | | | | | | | |
| * | | | | | | | | Move evil <script> tag into a .js file.Gravatar Leon Sandøy2022-01-23-52/+48
| | | | | | | | | |
| * | | | | | | | | Always add a link icon for the primary URL.Gravatar Leon Sandøy2022-01-23-2/+12
| | | | | | | | | |
| * | | | | | | | | Kaizen: Refactor some code to be more beautiful.Gravatar Leon Sandøy2022-01-23-16/+16
| | | | | | | | | |
| * | | | | | | | | Merge branch 'main' into swfarnsworth/smarter-resources/merge-with-mainGravatar Steele Farnsworth2021-09-13-4/+4
| |\ \ \ \ \ \ \ \ \