Commit message (Collapse) | Author | Lines | ||
---|---|---|---|---|
2021-02-24 | Simplify nominations viewset | -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. | ||||
2021-02-24 | Add entries field to Nomination serializer | -1/+3 | ||
After setting related_name in NominationEntry model nomination field, we can just provide serializer and DRF automatically fetch all related entries. | ||||
2021-02-24 | Merge nomination migrations | -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. | ||||
2021-02-24 | Set default ordering of NominationEntry to inserted_at decreasing | -0/+4 | ||
Set it here so we don't have to set it every place where we fetch entries. | ||||
2021-02-24 | Set related_name option of nomination field of NominationEntry | -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. | ||||
2021-02-22 | Update nomination-related tests to cover recent table-splitting changes | -21/+139 | ||
2021-02-22 | Small improvements in nomination viewset | -31/+31 | ||
2021-02-22 | Change NominationEntry import location in serializers | -1/+1 | ||
2021-02-22 | Import NominationEntry to models __init__.py | -1/+2 | ||
2021-02-22 | Wrap validation errors to [] | -5/+5 | ||
2021-02-22 | Add rollback to nominations table split migration | -1/+14 | ||
2021-02-22 | Disable creating multiple nomination entries of one nomination for one actor | -0/+10 | ||
2021-02-22 | Migrate PATCH request for 2-table nominations system | -10/+60 | ||
2021-02-22 | Add reviewed field to nomination serializer | -1/+1 | ||
2021-02-22 | Update nominations viewset GET and POST to make this working with 2-table system | -23/+96 | ||
2021-02-22 | Change nominations serializer and add nomination entry serializer | -2/+18 | ||
2021-02-22 | Change nominations admin interface and add nomination entries interface | -13/+67 | ||
2021-02-22 | Split nomination model to 2 tables and create migrations | -12/+112 | ||
2021-02-18 | Update helper count | -1/+1 | ||
2021-02-10 | Don't change the name of the host for subdomains | -1/+1 | ||
The host is used to build reverse URLs during tests, changing it causes it to fail. | ||||
2021-02-10 | Update hosts.py | -1/+4 | ||
2021-02-10 | Update ALLOWED_HOSTS | -5/+1 | ||
Add internal domain for API routing and remove legacy routes for pydis.com domains (which are now redirected at the edge) | ||||
2021-01-22 | Update the README badges | -3/+4 | ||
2021-01-04 | Use wildcard for ALLOWED_HOSTS in debug mode | -15/+1 | ||
2021-01-02 | Changed Python language hook to system. | -1/+1 | ||
2020-12-26 | Improve the RepositoryMetadata cleanup code. | -3/+1 | ||
Co-authored-by: Dennis Pham <[email protected]> | ||||
2020-12-21 | relax coverage requirement in home route | -0/+1 | ||
2020-12-22 | Make last_updated field automatically update. | -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. | ||||
2020-12-21 | Change pydis-site to site in Sentry SDK initialization | -1/+1 | ||
2020-12-21 | Change pydis-site to site in workflow | -1/+1 | ||
2020-12-20 | Fix Git SHA getting in workflow | -1/+1 | ||
2020-12-20 | Don't include .git in Docker container | -0/+1 | ||
2020-12-20 | Remove GitPython dependency | -27/+2 | ||
2020-12-20 | Get Git SHA from environement instead of GitPython package | -4/+2 | ||
2020-12-20 | Set Git SHA during build workflow | -0/+2 | ||
2020-12-20 | Add Git SHA consuming and putting to environment in Dockerfile | -1/+5 | ||
2020-12-20 | Bump Sentry SDK version from 0.14 to 0.19 | -154/+167 | ||
2020-12-19 | Update verified_at fields to joined_at fields | -7/+7 | ||
2020-12-19 | Swap verified_at for joined_at | -1/+2 | ||
2020-12-16 | Add codeowner entires for ks129 | -1/+4 | ||
2020-12-13 | Increase per_page to 100 for GitHub API call. | -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. | ||||
2020-12-13 | Clean up stale metadata when HomeView starts. | -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. | ||||
2020-12-13 | Remove pointless try/except. | -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. | ||||
2020-12-13 | Add a test repo with bad types. | -1/+8 | ||
This should restore 100% coverage. | ||||
2020-12-13 | Fix test for HomeView. | -7/+1 | ||
Instead of building "fake repos", we're now just omitting them, so this test needs to be updated. | ||||
2020-12-13 | Add even more sanity for the HomeView. | -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. | ||||
2020-12-13 | Completely remove Projects section if no data. | -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. | ||||
2020-12-13 | Add some sanity to frontpage projects. | -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. | ||||
2020-12-12 | Fix incorrectly specified environment variable | -1/+1 | ||
When I changed the name of SITE_SENTRY_DSN to SITE_DSN, I accidentally left an old reference in place. | ||||
2020-12-12 | Change env var from SITE_SENTRY_DSN to SITE_DSN | -1/+1 | ||
The name of the environment variable was shortened during our refactor of the Sentry secrets. Changed `settings.py` to reflect that change. |