Commit message (Collapse) | Author | Age | Lines | ||
---|---|---|---|---|---|
... | |||||
| * | | | | | Fix grammar of nomination viewset command about single entry for user | 2021-03-06 | -1/+1 | ||
| | | | | | | |||||
| * | | | | | Change as -> to in nomination viewset docs | 2021-03-06 | -1/+1 | ||
| | | | | | | |||||
| * | | | | | Fix grammar of nomination models | 2021-03-06 | -5/+5 | ||
| | | | | | | |||||
| * | | | | | Fix grammar of error messages and change tests to match with changes | 2021-03-05 | -8/+8 | ||
| | | | | | | |||||
| * | | | | | Use double quotes instead apostrophe because string contain "don't" | 2021-03-05 | -1/+1 | ||
| | | | | | | |||||
| * | | | | | Replace double quotes with single quotes | 2021-03-05 | -1/+1 | ||
| | | | | | | | | | | | | | | | | | | Co-authored-by: Joe Banks <[email protected]> | ||||
| * | | | | | Fix grammar of nomination endpoints documentation | 2021-03-05 | -5/+5 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Leon Sandøy <[email protected]> Co-authored-by: Joe Banks <[email protected]> | ||||
| * | | | | | Add comment about manually defining nomination field of NominationEntry ↵ | 2021-02-24 | -0/+3 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | serializer | ||||
| * | | | | | Make default value of nomination entry reason to empty string | 2021-02-24 | -2/+2 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | For string fields NULL as default is not suggested, so use empty string instead. | ||||
| * | | | | | Remove GET nomination test for entries | 2021-02-24 | -26/+0 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | Entries isn't handled manually anymore so these tests have no point. | ||||
| * | | | | | Simplify nominations viewset | 2021-02-24 | -48/+3 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After moving entries to nomination serializer we can get rid from GET request handlers and let DRF handle this. Also PATCH and POST handlers got some simplification by removing manual entries setting. | ||||
| * | | | | | Add entries field to Nomination serializer | 2021-02-24 | -1/+3 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After setting related_name in NominationEntry model nomination field, we can just provide serializer and DRF automatically fetch all related entries. | ||||
| * | | | | | Merge nomination migrations | 2021-02-24 | -18/+3 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This doesn't make sense to have 3 small migrations for one PR, so I merged 2 existing migrations and 1 new, ordering and related_name adding migrations to one. | ||||
| * | | | | | Set default ordering of NominationEntry to inserted_at decreasing | 2021-02-24 | -0/+4 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set it here so we don't have to set it every place where we fetch entries. | ||||
| * | | | | | Set related_name option of nomination field of NominationEntry | 2021-02-24 | -1/+2 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to use entries in serializer without manually setting entries key we have to use related_name option to automatically fetch all related entries. | ||||
| * | | | | | Update nomination-related tests to cover recent table-splitting changes | 2021-02-22 | -21/+139 | ||
| | | | | | | |||||
| * | | | | | Small improvements in nomination viewset | 2021-02-22 | -31/+31 | ||
| | | | | | | |||||
| * | | | | | Change NominationEntry import location in serializers | 2021-02-22 | -1/+1 | ||
| | | | | | | |||||
| * | | | | | Import NominationEntry to models __init__.py | 2021-02-22 | -1/+2 | ||
| | | | | | | |||||
| * | | | | | Wrap validation errors to [] | 2021-02-22 | -5/+5 | ||
| | | | | | | |||||
| * | | | | | Add rollback to nominations table split migration | 2021-02-22 | -1/+14 | ||
| | | | | | | |||||
| * | | | | | Disable creating multiple nomination entries of one nomination for one actor | 2021-02-22 | -0/+10 | ||
| | | | | | | |||||
| * | | | | | Migrate PATCH request for 2-table nominations system | 2021-02-22 | -10/+60 | ||
| | | | | | | |||||
| * | | | | | Add reviewed field to nomination serializer | 2021-02-22 | -1/+1 | ||
| | | | | | | |||||
| * | | | | | Update nominations viewset GET and POST to make this working with 2-table system | 2021-02-22 | -23/+96 | ||
| | | | | | | |||||
| * | | | | | Change nominations serializer and add nomination entry serializer | 2021-02-22 | -2/+18 | ||
| | | | | | | |||||
| * | | | | | Change nominations admin interface and add nomination entries interface | 2021-02-22 | -13/+67 | ||
| | | | | | | |||||
| * | | | | | Split nomination model to 2 tables and create migrations | 2021-02-22 | -12/+112 | ||
|/ / / / / | |||||
* | | | | | Update helper count | 2021-02-18 | -1/+1 | ||
| | | | | | |||||
* | | | | | Don't change the name of the host for subdomains | 2021-02-10 | -1/+1 | ||
| | | | | | | | | | | | | | | | The host is used to build reverse URLs during tests, changing it causes it to fail. | ||||
* | | | | | Update hosts.py | 2021-02-10 | -1/+4 | ||
| | | | | | |||||
* | | | | | Update ALLOWED_HOSTS | 2021-02-10 | -5/+1 | ||
| | | | | | | | | | | | | | | | Add internal domain for API routing and remove legacy routes for pydis.com domains (which are now redirected at the edge) | ||||
| * | | | | Create migration for doc package name validator. | 2020-08-04 | -0/+19 | ||
| | | | | | |||||
| * | | | | Fix package name validator definition. | 2020-08-04 | -3/+5 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | The validators kwarg expects an iterable of validators, while a validator directly was being supplied. | ||||
| * | | | | Move package name validator definition. | 2020-08-04 | -6/+6 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | The move prevents it going through the line limit and deeper nesting of parentheses from splitting up the string. | ||||
| * | | | | Add ascii digits to the validator. | 2020-08-04 | -2/+2 | ||
| | | | | | | | | | | | | | | | | | | | | Some packages can contain them and are good for stats. | ||||
| * | | | | Add a validator for package names. | 2020-08-03 | -0/+18 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Package names are used for stats in the bot and are restricted to the a-z_ char set, a validator is added to accommodate this restriction at the site admin side. | ||||
| | * | | | Pagination: Use REPL style examples | 2021-04-24 | -27/+27 | ||
| | | | | | |||||
| | * | | | Update doc in pydis_site/apps/api/pagination.py | 2021-03-07 | -0/+1 | ||
| | | | | | | | | | | | | | | | Co-authored-by: Mark <[email protected]> | ||||
| | * | | | Update pydis_site/apps/api/pagination.py | 2021-03-07 | -1/+0 | ||
| | | | | | | | | | | | | | | | Co-authored-by: Mark <[email protected]> | ||||
| | * | | | Update doc in pydis_site/apps/api/viewsets/bot/infraction.py | 2021-03-07 | -2/+2 | ||
| | | | | | | | | | | | | | | | Co-authored-by: Mark <[email protected]> | ||||
| | * | | | Update doc in pydis_site/apps/api/viewsets/bot/infraction.py | 2021-03-07 | -2/+1 | ||
| | | | | | | | | | | | | | | | Co-authored-by: Mark <[email protected]> | ||||
| | * | | | Update doc in pydis_site/apps/api/pagination.py | 2021-03-07 | -1/+1 | ||
| | | | | | | | | | | | | | | | Co-authored-by: Mark <[email protected]> | ||||
| | * | | | Update pagination docs and pagination class location | 2021-02-26 | -17/+55 | ||
| | | | | | |||||
| | * | | | Add custom paginator class to override default resonse | 2021-02-25 | -18/+17 | ||
| | | | | | |||||
| | * | | | Styling fixes | 2021-01-28 | -6/+12 | ||
| | | | | | |||||
| | * | | | update paginated response in list infraction | 2021-01-28 | -3/+17 | ||
| | | | | | |||||
| | * | | | fix: flake8 error | 2021-01-27 | -10/+4 | ||
| | | | | | |||||
| | * | | | Apply LimitOffsetPagination in GET Infraction with default Page Size 100 | 2021-01-27 | -1/+5 | ||
| |/ / / |/| | | | |||||
* | | | | Update the README badges | 2021-01-22 | -3/+4 | ||
| | | | |