Commit Graph

53 Commits (553b11bc84fd9f892bc5d69bf284595d2e4bfdc5)

Author SHA1 Message Date
Mike Lang a42e7b48f6 thrimshim: Allow degraded operation even if DB broken
Any endpoints that don't need a DB conn will still work fine.

Notably, this includes /defaults, which is needed for
thrimbletrimmer to work in a non-specific-row mode.
Mike Lang f7f07a2688 Add /defaults to thrimshim, use it to populate config stuff in thrimbletrimmer
Thrimbletrimmer needs to know stuff like the bustime start time,
default channel, even if it's not looking at a specific row.
Mike Lang da3cc24ed1 Pass a list of upload locations from thrimshim to thrimbletrimmer
with the first one being the default.
Mike Lang b11fe39371 thrimshim: Validate title length, non-empty title/description
and pass the title prefix / max length through to thrimbletrimmer
Mike Lang ba746ff6e6 Add title and description header/footer in thrimshim instead of cutter
This accomplishes two things:
1. It allows thrimshim to properly validate length restrictions (not implemented yet)
2. It means that the database has a record of the values actually written for each of these rows,
instead of that information depending on how the cutter was configured at the time.
mg 936a2387c8 Change to how default channel is handled.
mg ca11e59511 Adding channel/start time info to Thrimshim to pass to Thrimbletrimmer.
mg 6edd224395 Merging Thrimbletrimmer into Wubloader with latest changes.
Christopher Usher fec8cff185
Merge branch 'master' into chrusher-database-replication
Christopher Usher 027c2900e2 fixes in response to ekim's comments
Christopher Usher 92f6ed5891 function name fix
Christopher Usher 86477fae13 fixes for ekim's comments
Christopher Usher 611a4bd793 added option not to authenticate thrimshim
Christopher Usher 36fe22bf99 authentication implemented and tested as much as possible without authentication in thrimbletrimmer
Christopher Usher 057bd031a2 decorator to avoid duplication authentication code
Christopher Usher 0cf84ef510 code style clean up
mg 64824973ba Adding issuer validation.
mg 96d2566ab2 Adding dependencies and retrieving account info.
Christopher Usher aea0fe1766 Setting up Auth Test function
Christopher Usher d07cb5de44 Placeholder text
Christopher Usher 23e3cfce20 Added editor, edit_time and upload_time to thrimshim and cutter updates of the
database
Christopher Usher 1dbe585837 retry database connection if it fails
mg e49ec90d3e UI Improvements
Christopher Usher d55d6fb7bc added option not to authenticate thrimshim
Christopher Usher c8e44af20d authentication implemented and tested as much as possible without authentication in thrimbletrimmer
Christopher Usher 377a6697b0 decorator to avoid duplication authentication code
Christopher Usher 4779d88e37 code style clean up
mg f4d0fbf42e Adding issuer validation.
mg f3b1b991e5 Adding dependencies and retrieving account info.
Christopher Usher d578da90d0 Setting up Auth Test function
Christopher Usher 365d7b7852 Placeholder text
Christopher Usher ea42cab8fd Added editor, edit_time and upload_time to thrimshim and cutter updates of the
database
Christopher Usher 76bc629720 moved flask monitoring to its own module
Christopher Usher 73541f852f logging and monitoring for thrimshim
Christopher Usher 6858c2e2de starting on logging and monitoring
MasterGunner 2e953eddde Cleanup from Ekim's comments, removed auth placeholder until I know what I'm doing.
MasterGunner 6a171130e8 Updated Get All Rows route.
MasterGunner 736f0e0fe4 Adding get_all_row and auth function stubs
Christopher Usher 9b28765ff2 Bug fixes to get the database connection working
Mike Lang 33be5a92cb Update docker-compose file for thrimshim and cutter
Also update thrimshim to take db connect args as positional,
for consistency with cutter.
Christopher Usher afdad26a51 More fixes
Christopher Usher c3c75b1e4f manually setting a video link now also its own endpoint
Christopher Usher b7a57d4766 reset is now it's own method
Christopher Usher fe5b10f86b Fixes the state transitions of the trimbleshim to allow video links to be changed or removed
Christopher Usher f43c699e05 updated thrimshim to handle all non-null edit columns
Christopher Usher d23de10b3e a few small fixes to ekim's comments
Christopher Usher 1d09e28b1e fixes to ekimekim's suggestions
Christopher Usher c81d538a79 thrimshim seems to be working
Christopher Usher e4fc878577 logic of the post
Christopher Usher 4c5b6e4cda GET working