aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site (follow)
Commit message (Collapse)AuthorAgeLines
* 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
|
* Update docstring in metricity block queryGravatar Joe Banks2020-10-30-1/+5
|
* Remove unnecessary timestamp conversionGravatar Joe Banks2020-10-27-5/+1
|
* Remove unnecessary f-string markerGravatar Joe Banks2020-10-27-1/+1
|
* Use SQL formatting instead of f-strings for injecting valuesGravatar Joe Banks2020-10-27-3/+3
|
* Constant was never used :man_facepalming:Gravatar Joe Banks2020-10-27-2/+5
|
* Clean up SQL queryGravatar Joe Banks2020-10-27-1/+5
|
* Update tests with new activity_blocks keyGravatar Joe Banks2020-10-27-3/+7
|
* Update viewset to include activity_blocks response itemGravatar Joe Banks2020-10-27-1/+4
|
* Add message block queryGravatar Joe Banks2020-10-27-0/+24
|
* Use referral code for LinodeGravatar Joe Banks2020-10-24-1/+1
|
* Merge branch 'master' into frontpage-100kGravatar Joe Banks2020-10-24-2/+116
|\
| * Merge branch 'master' into allow-internal-dns-apiGravatar Joe Banks2020-10-23-2/+115
| |\
| | * Improve timeline page animationGravatar ks1292020-10-22-2/+115
| | | | | | | | | | | | | | | | | | Instead of just leaving all elements like they are when bounce-in is done, when they leave from view, make them bounce out and hidden again to let them bounce-in again.
| * | Merge branch 'master' into allow-internal-dns-apiGravatar Joe Banks2020-10-23-8/+33
| |\|
| * | Allow requesting API data from internal DNSGravatar scragly2020-10-19-0/+1
| | |
* | | Remove blurple peek on Discord CTA, convert text to obj.Gravatar scragly2020-10-25-11/+33
| | |
* | | Use local img for welcome video thumbnail.Gravatar scragly2020-10-25-1/+1
| | |
* | | Change discord nav item to distinct CTA button.Gravatar scragly2020-10-25-103/+185
| | |
* | | Fix video aspect in timeline, quote img src urls.Gravatar scragly2020-10-23-26/+12
| | | | | | | | | | | | | | | | | | After updating the frontpage and creating an fixed-aspect-ratio style pair, I found I could just reuse them in the timeline to fix the inconsistent responsive aspect ratio that was occurring there. Some img src values also were not quoted; while this can work fine, it can break if the url has spaces or certain characters and is inconsistent with the rest of the project.
* | | Use sections, remove unused CSS, improve repo cards.Gravatar scragly2020-10-23-175/+255
| | |