aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api (follow)
Commit message (Collapse)AuthorAgeLines
* add rule 10 to the listGravatar shtlrs2023-03-21-0/+4
|
* Merge branch 'main' into mbaruh/timeoutGravatar Boris Muratov2023-03-20-5/+35
|\
| * Replace CharField with URLField and set default to NoneGravatar vivekashok12212023-03-10-4/+5
| |
| * Remove typoGravatar vivekashok12212023-02-17-1/+1
| |
| * Add jump_url field to infraction modelGravatar vivekashok12212023-02-17-4/+33
| |
* | Migrate infraction type `mute` to `timeout`Gravatar mbaruh2023-03-04-13/+38
|/
* Merge branch 'main' into 2304-link-previous-nomination-threadsGravatar Amrou Bellalouna2022-12-29-1/+168
|\
| * Merge branch 'main' into messages-in-past-n-days-endpointGravatar wookie1842022-11-20-6/+5
| |\
| * | Include users with no messages in response, and simplify response formatGravatar wookie1842022-11-17-13/+10
| | |
| * | Change the endpoint to be a POST not a GETGravatar wookie1842022-11-02-29/+13
| | |
| * | Add tests for metricity activity endpointGravatar wookie1842022-10-27-0/+100
| | |
| * | Add API endpoint for activity dataGravatar wookie1842022-10-27-1/+59
| | | | | | | | | | | | I really had to work against DRF to get this working. Using the validator manually here isn't ideal but I couldn't see an obvious better way without adding a bunch of boilerplate code. It seems to work.
| * | Add metricity query for messages in past n daysGravatar wookie1842022-10-27-0/+28
| | | | | | | | | | | | Takes multiple users for efficiency as we may want to calculate this for many users at once.
* | | remove useless blank constraintGravatar Amrou Bellalouna2022-11-12-3/+2
| | | | | | | | | | | | This updates the migration as well
* | | remove useless coverage related commentedGravatar Amrou Bellalouna2022-11-07-1/+0
| | |
* | | refactor nomination validation flowGravatar Amrou Bellalouna2022-11-07-12/+8
| | |
* | | add tests for new thread_id validation flowGravatar Amrou Bellalouna2022-11-07-0/+32
| | |
* | | add validation criteria for thread_id modificationGravatar Amrou Bellalouna2022-11-07-0/+12
| | |
* | | push forgotten model updateGravatar Amrou Bellalouna2022-11-07-1/+1
| | |
* | | fix grammar in thread_id's help textGravatar Amrou Bellalouna2022-11-07-0/+18
| | |
* | | delete buggy migrationGravatar Amrou Bellalouna2022-11-07-18/+0
| | |
* | | add thread_id to serializer's fieldsGravatar Amrou Bellalouna2022-11-06-1/+9
| | |
* | | add thread_id column to the nomination tableGravatar Amrou Bellalouna2022-11-06-0/+23
| |/ |/|
* | Merge branch 'main' into bot-tagsGravatar Hassan Abouelela2022-10-27-42/+53
|\| | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> # Conflicts: # poetry.lock # pydis_site/settings.py # pyproject.toml
| * Increase Request Timeout For GitHub APIGravatar Hassan Abouelela2022-09-30-1/+1
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * Fix B026 Linting ErrorsGravatar Hassan Abouelela2022-09-30-1/+1
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * Bump To Django 4.1.1 & Update DependenciesGravatar Hassan Abouelela2022-09-30-18/+13
| | | | | | | | | | | | Update outdated and broken dependencies. Signed-off-by: Hassan Abouelela <[email protected]>
| * Merge branch 'main' into fix-warningsGravatar Hassan Abouelela2022-09-30-13/+30
| |\
| | * replace parenthesis with square brackets since tuples are serialized are listsGravatar Amrou Bellalouna2022-09-18-3/+3
| | |
| | * restrict the RulesView docstrings to just what it doesGravatar Amrou Bellalouna2022-09-18-3/+2
| | |
| | * replace sweet with "sweets" to refer more to candyGravatar Amrou Bellalouna2022-09-18-1/+1
| | |
| | * update the RulesView class' docstringsGravatar Amrou Bellalouna2022-09-18-4/+7
| | |
| | * Merge branch 'main' into map-rules-to-keywordsGravatar Amrou Bellalouna2022-09-18-5/+10
| | |\
| | * | make docstring more explicit about the returned contentGravatar Amrou Bellalouna2022-09-18-1/+6
| | | |
| | * | add suggested keywordsGravatar Amrou Bellalouna2022-09-18-9/+9
| | | |
| | * | add docstrings explaining the values that the Rules view returnsGravatar Amrou Bellalouna2022-09-18-0/+1
| | | |
| | * | add collection of keywords per ruleGravatar Amrou Bellalouna2022-08-18-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | In reference to issue #2108, this commit aims to add an initial set of keywords per rule. These keywords will be later in the "rule" bot command in order to make rule identification easier
| * | | Fix Unittest Deprecation WarningsGravatar Hassan Abouelela2022-09-04-8/+8
| | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * | | Fix Django Deprecation WarningsGravatar Hassan Abouelela2022-09-04-1/+0
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes a few features which were deprecated in django 4.0. Running with warnings enabled shows no other errors. USE_L10N was deprecated, and is now enabled by default. In future versions of django, it'll be impossible to turn localization off. Explicitly defining the custom_app_config for the API app is no longer necessary as django can pick it up on its own. Signed-off-by: Hassan Abouelela <[email protected]>
* | | Merge branch 'main' into bot-tagsGravatar Hassan Abouelela2022-08-23-5/+10
|\| |
| * | Explicitly Specify Infraction Time In TestsGravatar Hassan Abouelela2022-08-14-5/+10
| |/ | | | | | | | | | | | | | | | | | | | | | | | | The infraction tests checked that the route returned infractions in the correct order, which is based on insertion time. This can be fragile however, since the insertion time can be very close (or identical) during the tests. That became especially more likely with PR #741 (commit 149e67b4) which improved database access speed. This is fixed by explicitly specifying the insertion time, and spacing them out properly. Signed-off-by: Hassan Abouelela <[email protected]>
* | Fix Tests For Tag MetadataGravatar Hassan Abouelela2022-08-16-3/+4
| | | | | | | | 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]>
* 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]>