Cameron Cordes
69fe307516
Update to Actix 4
Core Repos/ImageApi/pipeline/pr-master There was a failure building this commit
2022-03-01 20:38:41 -05:00
1e3f33c2d3
Merge pull request 'Update Rust image to 1.55' ( #17 ) from feature/update-ci-rust-155 into master
...
Core Repos/ImageApi/pipeline/head This commit looks good
Reviewed-on: #17
2021-10-13 16:41:15 +00:00
Cameron Cordes
f0e96071be
Update Rust image to 1.55
Core Repos/ImageApi/pipeline/pr-master This commit looks good
2021-10-13 12:12:25 -04:00
652c2d03d5
Merge pull request 'feature/improve-files-endpoint' ( #15 ) from feature/improve-files-endpoint into master
...
Core Repos/ImageApi/pipeline/head This commit looks good
Reviewed-on: #15
2021-10-08 01:01:00 +00:00
Cameron Cordes
d6e4a01c88
Move list_photos to files module
...
Core Repos/ImageApi/pipeline/pr-master This commit looks good
Added some tests, refactored the error handling/logging, and refactored
the extension tests.
2021-10-07 20:32:36 -04:00
Cameron Cordes
2c50b4ae2f
Add anyhow, Improve Auth token code
...
Moved test helper code to its own module.
2021-10-07 20:32:36 -04:00
e4dac64776
Merge pull request 'Create file metadata endpoint' ( #14 ) from feature/file-info-api into master
...
Core Repos/ImageApi/pipeline/head This commit looks good
Reviewed-on: #14
2021-07-08 21:28:15 +00:00
Cameron Cordes
0e972509aa
Update dependencies
Core Repos/ImageApi/pipeline/pr-master This commit looks good
2021-07-08 16:53:50 -04:00
Cameron Cordes
8622500a2f
Use file metadata to sort files and directories
2021-06-02 08:32:20 -04:00
Cameron Cordes
9d823fdc51
Create file metadata endpoint
...
This allows retrieving create/modify date as well as file size for any
file in the BASE_PATH.
2021-05-19 08:53:20 -04:00
9a40614d1e
Merge pull request 'feature/prometheus-metrics' ( #13 ) from feature/prometheus-metrics into master
...
Core Repos/ImageApi/pipeline/head This commit looks good
Reviewed-on: #13
2021-05-01 05:02:27 +00:00
Cameron Cordes
c5a7675986
Use IntGauge for media counts
Core Repos/ImageApi/pipeline/pr-master This commit looks good
2021-05-01 00:16:55 -04:00
Cameron Cordes
a79179c5c3
Add Image and Video total gauges
2021-04-30 23:53:10 -04:00
Cameron Cordes
6abc99d9b6
Add PrometheusMetrics
2021-04-05 20:14:34 -04:00
6768140785
Merge pull request 'Make list photos endpoint a get resource' ( #12 ) from feature/photos-as-get into master
...
Core Repos/ImageApi/pipeline/head This commit looks good
Reviewed-on: #12
2021-03-29 20:24:07 +00:00
Cameron Cordes
4249fd319c
Make list photos endpoint a get resource
...
Core Repos/ImageApi/pipeline/pr-master This commit looks good
The request doesn't modify state and the path can be passed as a query
param so a GET makes more sense.
2021-03-29 15:42:59 -04:00
44a6b582ab
Merge pull request 'Revert back to actix 0.10' ( #11 ) from feature/fix-actix-issue into master
...
Core Repos/ImageApi/pipeline/head Build started...
Reviewed-on: #11
2021-03-29 19:35:01 +00:00
Cameron Cordes
1b2aad0f08
Revert back to actix 0.10
...
Core Repos/ImageApi/pipeline/head Something is wrong with the build of this commit
Core Repos/ImageApi/pipeline/pr-master This commit looks good
Until Actix Web 4, we need to use an older version of actix so that the
runtime's match up to version 1.
2021-03-29 14:59:42 -04:00
2a07fd18b5
Merge pull request 'Update dependencies' ( #10 ) from feature/update-dependencies into master
...
Core Repos/ImageApi/pipeline/head This commit looks good
Reviewed-on: #10
2021-03-27 22:20:03 +00:00
Cameron Cordes
7474c4d310
Update dependencies
...
Core Repos/ImageApi/pipeline/head Something is wrong with the build of this commit
Core Repos/ImageApi/pipeline/pr-master This commit looks good
Update dependencies and remove some features from the image crate that
are unused.
2021-03-27 17:25:52 -04:00
79c79c3b24
Merge pull request 'FavoritesDao for querying, adding and removing favorites' ( #9 ) from feature/favorites-api into master
...
Core Repos/ImageApi/pipeline/head This commit looks good
Reviewed-on: #9
2021-03-27 21:25:25 +00:00
Cameron Cordes
2e97086751
FavoritesDao for querying, adding and removing favorites
Core Repos/ImageApi/pipeline/head Something is wrong with the build of this commit
Core Repos/ImageApi/pipeline/pr-master This commit looks good
2021-03-27 16:33:45 -04:00
bc6ce94e5a
Merge pull request 'Update build image to Rust 1.51' ( #8 ) from feature/update-to-1.51 into master
...
Core Repos/ImageApi/pipeline/head This commit looks good
Reviewed-on: #8
2021-03-26 12:40:23 +00:00
Cameron Cordes
53cdbabae1
Fix favorites logging parameter order
Core Repos/ImageApi/pipeline/pr-master This commit looks good
2021-03-25 13:39:16 -04:00
Cameron Cordes
7f534a18bf
Bump Jenkins build image to 1.51
Core Repos/ImageApi/pipeline/head There was a failure building this commit
Core Repos/ImageApi/pipeline/pr-master There was a failure building this commit
2021-03-25 13:18:16 -04:00
Cameron Cordes
31e95dc158
Fix some lint warning and simplify some code
2021-03-25 13:17:58 -04:00
Cameron Cordes
1539255ae0
Remove and replace deleted or moved thumbnails
Core Repos/ImageApi/pipeline/head This commit looks good
2021-03-17 22:30:27 -04:00
Cameron Cordes
a2a9c27f12
Use Actix worker thread for database operations
2021-03-17 22:30:02 -04:00
Cameron Cordes
3c02bcc8fb
Check upload name to make sure its an image or video
...
Core Repos/ImageApi/pipeline/head This commit looks good
The upload code should be additionally refactored to probably do a more
comprehensive check of if the file is an image or video.
2021-03-07 22:00:12 -05:00
Cameron Cordes
3611f46004
Fix test name and simplify helper
2021-03-04 16:37:19 -05:00
8ba24baaf7
Merge pull request 'Improve test coverage and logging' ( #7 ) from feature/improve-test-coverage into master
...
Core Repos/ImageApi/pipeline/head This commit looks good
Reviewed-on: #7
2021-03-01 13:18:22 +00:00
Cameron Cordes
e5eb2d9c1f
Add info level request logging
Core Repos/ImageApi/pipeline/head Something is wrong with the build of this commit
Core Repos/ImageApi/pipeline/pr-master This commit looks good
2021-02-27 11:54:04 -05:00
Cameron Cordes
1c7e54d355
Make playlist generation async
...
This should allow other requests to be answered while we wait for ffmpeg
to do its thing.
2021-02-27 11:53:29 -05:00
Cameron Cordes
e5ad88abd6
Create UserDao and unit tests for login
2021-02-26 08:48:33 -05:00
Cameron Cordes
64bfb58734
Log when unknown user tries to log in
2021-02-25 17:42:16 -05:00
Cameron Cordes
72e41b99a1
Remove Actix CORS dependency
2021-02-25 14:42:23 -05:00
0ff7c1610a
Merge pull request 'feature/update-dependencies' ( #6 ) from feature/update-dependencies into master
...
Core Repos/ImageApi/pipeline/head This commit looks good
Reviewed-on: #6
2021-02-25 16:20:32 +00:00
Cameron Cordes
45aa260d7b
Merge branch 'master' into feature/update-dependencies
Core Repos/ImageApi/pipeline/head Something is wrong with the build of this commit
Core Repos/ImageApi/pipeline/pr-master This commit looks good
2021-02-25 10:44:28 -05:00
2940bdf056
Merge pull request 'feature/logging' ( #5 ) from feature/logging into master
...
Core Repos/ImageApi/pipeline/head This commit looks good
Reviewed-on: #5
2021-02-25 15:26:45 +00:00
Cameron Cordes
e0d2a14d0f
Report path when an image fails to open
Core Repos/ImageApi/pipeline/pr-master This commit looks good
2021-02-24 22:28:46 -05:00
Cameron Cordes
f9983240df
Use log crate for logging instead of println
Core Repos/ImageApi/pipeline/head This commit looks good
Core Repos/ImageApi/pipeline/pr-master This commit looks good
2021-02-24 21:26:11 -05:00
Cameron Cordes
8b5ba9d48c
Move auth related methods to their own module
2021-02-18 20:31:29 -05:00
Cameron Cordes
fae7b2a962
Add tests for JWT decoding
2021-02-18 20:31:03 -05:00
Cameron Cordes
b0a9cd6327
Update Actix, tokio and hashing libraries
Core Repos/ImageApi/pipeline/head This commit looks good
2021-02-15 20:39:14 -05:00
1ad7abb69c
Merge pull request 'feature/video-stream-manager' ( #4 ) from feature/video-stream-manager into master
...
Core Repos/ImageApi/pipeline/head This commit looks good
Reviewed-on: #4
2021-02-13 18:18:12 +00:00
Cameron Cordes
11d1e9600a
Use an Actor for the Stream watching
Core Repos/ImageApi/pipeline/pr-master This commit looks good
2021-02-11 20:39:07 -05:00
Cameron Cordes
45b4f0cd72
Track relevant .idea files
Core Repos/ImageApi/pipeline/head Something is wrong with the build of this commit
Core Repos/ImageApi/pipeline/pr-master This commit looks good
2021-02-09 21:32:22 -05:00
Cameron Cordes
b595bdd642
Add VideoStreamManager for keeping track of active streams
...
The stream manager should help prevent zombie processes and can later be
used for stopping video streams if the user exits the video before
finishing for example.
2021-02-09 21:30:27 -05:00
Cameron Cordes
e4c23c0fe5
Improve video streaming speed
...
Core Repos/ImageApi/pipeline/head This commit looks good
Instead of waiting for an entire video to stream, we spawn a child
ffmpeg process to start generating the HLS playlist, and once it creates
the first part of the playlist we return the response so the client can
start streaming almost immediately. HTTP Live streaming can handle
playlist updates after the initial playlist is created, although I don't
think the user can skip to the end and skip streaming parts of the
video.
2021-02-08 19:46:38 -05:00
Cameron Cordes
ecd43f776a
Do more proper path validation for playlist generation
Core Repos/ImageApi/pipeline/head This commit looks good
2021-02-08 18:38:30 -05:00