aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site (follow)
Commit message (Collapse)AuthorAgeLines
* Merge nomination migrationsGravatar ks1292021-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 decreasingGravatar ks1292021-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 NominationEntryGravatar ks1292021-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 changesGravatar ks1292021-02-22-21/+139
|
* Small improvements in nomination viewsetGravatar ks1292021-02-22-31/+31
|
* Change NominationEntry import location in serializersGravatar ks1292021-02-22-1/+1
|
* Import NominationEntry to models __init__.pyGravatar ks1292021-02-22-1/+2
|
* Wrap validation errors to []Gravatar ks1292021-02-22-5/+5
|
* Add rollback to nominations table split migrationGravatar ks1292021-02-22-1/+14
|
* Disable creating multiple nomination entries of one nomination for one actorGravatar ks1292021-02-22-0/+10
|
* Migrate PATCH request for 2-table nominations systemGravatar ks1292021-02-22-10/+60
|
* Add reviewed field to nomination serializerGravatar ks1292021-02-22-1/+1
|
* Update nominations viewset GET and POST to make this working with 2-table systemGravatar ks1292021-02-22-23/+96
|
* Change nominations serializer and add nomination entry serializerGravatar ks1292021-02-22-2/+18
|
* Change nominations admin interface and add nomination entries interfaceGravatar ks1292021-02-22-13/+67
|
* Split nomination model to 2 tables and create migrationsGravatar ks1292021-02-22-12/+112
|
* Update helper countGravatar Matteo Bertucci2021-02-18-1/+1
|
* Don't change the name of the host for subdomainsGravatar Joe Banks2021-02-10-1/+1
| | | The host is used to build reverse URLs during tests, changing it causes it to fail.
* Update hosts.pyGravatar Joe Banks2021-02-10-1/+4
|
* Update ALLOWED_HOSTSGravatar Joe Banks2021-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)
* Use wildcard for ALLOWED_HOSTS in debug modeGravatar Mark2021-01-04-15/+1
|
* Merge branch 'master' into hotfix/lemon/front-page-project-sanityGravatar Dennis Pham2020-12-26-22/+82
|\
| * Make last_updated field automatically update.Gravatar Leon Sandøy2020-12-22-8/+25
| | | | | | | | | | | | | | | | | | | | | | | | Previously, we were operating under a bad assumption that we would be updating the last_updated field in the RepositoryMetadata objects whenever we updated the objects with new data from the GitHub API. Upon closer inspection, this is not at all what we're doing, and some of those repository objects had not been updated in over a year! This introduces `auto_now` to the field, which will ensure that it is automatically updated whenever the object is updated.
| * Change pydis-site to site in Sentry SDK initializationGravatar ks1292020-12-21-1/+1
| |
| * Get Git SHA from environement instead of GitPython packageGravatar ks1292020-12-20-4/+2
| |
| * Update verified_at fields to joined_at fieldsGravatar Joe Banks2020-12-19-6/+6
| |
| * Swap verified_at for joined_atGravatar Joe Banks2020-12-19-1/+2
| |
| * Merge branch 'master' into ks123/infractions/delete-methodGravatar Dennis Pham2020-12-13-129/+130
| |\
| | * Increase per_page to 100 for GitHub API call.Gravatar Leon Sandøy2020-12-13-1/+1
| | | | | | | | | | | | | | | | | | | | | Snekbox was being banished to page 2 and we were not iterating pages, so it was not appearing in the data we got from our call to /repos. This commit changes the request to use `per_page=100`, which will work at least until we have >100 repos in our organisation.
| * | Add tests for infraction deletion methodGravatar ks1292020-12-09-0/+30
| | |
| * | Include DestroyModelMixin to infractions view for DELETE methodGravatar ks1292020-12-05-1/+15
| | | | | | | | | Added this mixin and documented this in doctoring.
* | | Improve the RepositoryMetadata cleanup code.Gravatar Leon Sandøy2020-12-26-3/+1
| | | | | | | | | Co-authored-by: Dennis Pham <[email protected]>
* | | Clean up stale metadata when HomeView starts.Gravatar Leon Sandøy2020-12-13-0/+40
| |/ |/| | | | | | | | | | | We don't want to keep lots of old metadata for repos we no longer need to track on the frontpage. Previously, whenever we changed the frontpage line-up, we'd be left with useless, stale data in the database. This fixes that, and adds tests.
* | Remove pointless try/except.Gravatar Leon Sandøy2020-12-13-24/+7
| | | | | | | | | | I don't think we need to check for TypeError here, so that saves us the trouble of testing these lines to appease coverage.
* | Add a test repo with bad types.Gravatar Leon Sandøy2020-12-13-1/+8
| | | | | | | | This should restore 100% coverage.
* | Fix test for HomeView.Gravatar Leon Sandøy2020-12-13-7/+1
| | | | | | | | | | Instead of building "fake repos", we're now just omitting them, so this test needs to be updated.
* | Add even more sanity for the HomeView.Gravatar Leon Sandøy2020-12-13-72/+81
| | | | | | | | | | | | | | This rewrite will ensure we always return whichever repositories we're able to resolve, and none of the others. It also shortens the code, shrinks all the try/excepts, and generally makes things a little more readable.
* | Completely remove Projects section if no data.Gravatar Leon Sandøy2020-12-13-48/+50
| | | | | | | | | | | | Instead of showing an empty Projects section, we'll just omit it if we can't resolve any of our projects. Otherwise, we'll show the projects we can resolve.
* | Add some sanity to frontpage projects.Gravatar Leon Sandøy2020-12-13-16/+22
| | | | | | | | | | | | If no API data is available, the front page shouldn't crash and burn. This commit will ensure the front page will just render without the projects it can't get API data for instead of crashing the whole thing.
* | Fix incorrectly specified environment variableGravatar Sebastiaan Zeeff2020-12-12-1/+1
| | | | | | | | When I changed the name of SITE_SENTRY_DSN to SITE_DSN, I accidentally left an old reference in place.
* | Change env var from SITE_SENTRY_DSN to SITE_DSNGravatar Sebastiaan Zeeff2020-12-12-1/+1
|/ | | | | The name of the environment variable was shortened during our refactor of the Sentry secrets. Changed `settings.py` to reflect that change.
* Delete Adafruit PNG file from staticGravatar ks1292020-11-28-0/+0
|
* Remove Adafruit from front-page sponsors listingGravatar ks1292020-11-28-3/+0
|
* Change seasonalbot to sir-lancebot in test dataGravatar Sebastiaan Zeeff2020-11-21-1/+1
|
* Change seasonalbot to sir-lancebotGravatar Sebastiaan Zeeff2020-11-21-1/+1
|
* Default to HTTPS for account URLsGravatar Joe Banks2020-11-15-0/+1
|
* Add Notion to sponsorsGravatar Joe Banks2020-11-14-0/+3
|
* Exclude bot commands and seasonalbot commands from voice gateGravatar Joe Banks2020-11-02-3/+17
|
* Change format character in metricity data endpointGravatar Joe Banks2020-10-31-1/+1
|
* Indent metricity block query correctlyGravatar Joe Banks2020-10-30-9/+9
|