Commit Graph

1483 Commits (add8d021a818152fa4490a2604a29266b052b056)
 

Author SHA1 Message Date
Christopher Usher add8d021a8 also apply fix to get_thumbnail 3 weeks ago
Mike Lang 861a426395 thrimshim: Fix performance issue with getting template png
Bytes returned from the database are a "memoryview" and not a bytes object.
These mostly behave the same, but one difference is that Flask recognizes
a bytes object as something it can send as-is, whereas a memoryview ends up using
its generic "iterable" processing. This results in sending every individual byte of the result
as a single part of a HTTP chunked encoding response, adding 5 bytes and a syscall to every byte returned.

The solution is to explicitly convert it to bytes before returning.
3 weeks ago
Mike Lang 653f651491 schedulebot: Use correct division for calculating hour
int() is truncation, // is floor
3 weeks ago
ElementalAlchemist 3d4c63a697 Fix uploading a new thumbnail image when updating a thumbnail 3 weeks ago
ElementalAlchemist 0d35e95dc7 Format Thrimbletrimmer files
I forgot to run prettier before my last PR.
3 weeks ago
ElementalAlchemist 501549350b Fix name duplicate check to only run when the template name is changed
Without checking first, a rename is required for all thumbnail template modifications.
3 weeks ago
ElementalAlchemist f4d303147d Allow editing thumbnail data 3 weeks ago
ElementalAlchemist ea6d256b6d Fix database access 3 weeks ago
ElementalAlchemist 9435dc8575 Set default crop values
These values were empirically determined to be good from previous thumbnail templates.
3 weeks ago
Christopher Usher 4f5805fd8d I thought we had fixed this 3 weeks ago
Christopher Usher fcd9f0afbd Added parser to default_template column 3 weeks ago
ElementalAlchemist ef061b6768 Pass the auth token when submitting thumbnails 3 weeks ago
Christopher Usher 1320472d05 Fixing pip installing wheels 3 weeks ago
Christopher Usher d3fa140995 Another typo fix 3 weeks ago
Christopher Usher fc2e30512d Missing opperator 3 weeks ago
Christopher Usher 843ee5dca5 Fixing incomplete changes to calculate_shift 3 weeks ago
Christopher Usher ca2668ef47 Fix typo that should have been fixed earlier 3 weeks ago
Christopher Usher acd7710fd7 Fun with inheritance 3 weeks ago
Christopher Usher 4041040af0 The Middleware object, not the SheetSync object, needs to know about shifts 3 weeks ago
Christopher Usher 71a8789c4b Fixed missing import 3 weeks ago
ElementalAlchemist fc82b2b17f Run Prettier on other Thrimbletrimmer files
It had not been run in previous PRs
3 weeks ago
ElementalAlchemist c8899f5133 Implement thumbnail manager
This implements a frontend for submitting new thumbnails and viewing existing thumbnail data.
3 weeks ago
ElementalAlchemist 6290850ff0 Add jcrop to the prettier ignore file 3 weeks ago
ElementalAlchemist 8ac23f2927 When checking whether a template exists, check the right table 3 weeks ago
Christopher Usher 5bd8fbd65f Static content for creating a template 3 weeks ago
Christopher Usher b4882a9fc4 More bug fixes 3 weeks ago
Christopher Usher 7ed0bbedc4 Fixed typo 3 weeks ago
Christopher Usher d6f976ac0f Bug fixes and improvements in response to comments on the PR 3 weeks ago
Christopher Usher c4e98f4dca fixed build error 3 weeks ago
Christopher Usher 8d6d37e462 added shift definitions to docker-compose 3 weeks ago
Christopher Usher 1fb3fca993 Updated sheetsync to calculate shifts 3 weeks ago
Christopher Usher a0953ecdcb renamed one_off 3 weeks ago
Christopher Usher ecd638356d thrimshim now uses tags to set default thumbnail 3 weeks ago
Christopher Usher bd89655190 code to compute what shift a time is in 3 weeks ago
Christopher Usher 167f8e623c Changes to support setting default templates based on tags 3 weeks ago
Mike Lang a56f7e7ecb blogbot: can't hash strings 3 weeks ago
Mike Lang 2a12687473 blogbot: need to save the string version of the html 3 weeks ago
Mike Lang a648dee902 Fix typo in blogbot 3 weeks ago
Mike Lang fbbe37ca9e blogbot: Save blog contents by hash when seen
For every unique hash of the blog html, it will save a copy.
Blogs are saved as JSON files in {segments_dir}/blogs
3 weeks ago
Dan Collins 3b737f8155 Add 'batman logo wipe' transition 3 weeks ago
Mike Lang 18905a3c17 buscribe: Tell nginx to actually serve those pages 3 weeks ago
Mike Lang e91d6b65ac blogbot: add to docker-compose 4 weeks ago
Mike Lang ce9a8309a2 blogbot: Changes to integrate into wubloader repo 4 weeks ago
Mike Lang 2618cc076d blogbot changes to work with 2024 website 4 weeks ago
Mike Lang de52f7dbff Import blogbot from previous years 4 weeks ago
Mike Lang a0ca96aff6 download_media: Get imgur links working and add test script 4 weeks ago
Mike Lang c2ff2dfbb1 download_imgur_url: Clarify not handling i.imgur.com 4 weeks ago
Mike Lang 83f18eda84 download_media: Special casing for imgur 4 weeks ago
Mike Lang 4dbe1dce5e Use cache in readonly mode for PRs in forked repos 4 weeks ago
Mike Lang bff3fa7800 Refactor build script to actually have a working cache using buildah
The old "docker build" no longer does caching the way it used to, and our cache logic doesn't work.

The new cache logic uses buildah, which is an alternate image build tool.
Buildah comes pre-installed on GHA.

When building, it pushes each layer as it goes to the cache repo.
It queries the repo for layers that are already built, so we don't need to explicitly pull
any specific tags and cache from them.

If caching is not enabled we still use docker as normal, so local development is not affected.
Local automatic caching will still apply.
4 weeks ago