Commit graph

30 commits

Author SHA1 Message Date
004c490dd8 Looks like we finally have a solution.
Change logging to just log a message, instead of the exception.
Moved logic to Syncer involvement.  When posting the data, if a 500 is
returned, then it is up to the Syncer to re-submit it.
2025-08-09 04:09:17 -05:00
73955353cb Possibly fix issues
After doing testing with a test project, re-organized code to new method
of storing, as well as ensure that all Endpoint lambda's are separated
out into functions.

Large commit, will be testing.
2025-08-08 16:59:29 -05:00
2e4f644c17 Attempt to fix errors
Attempt to fix errors, introduced new errors.
2025-08-05 11:38:55 -05:00
8187a03419 Some updates to Endpoint Logic
Ensure that we are adding videos to the playlist database object when we insert them.
Updated logic to follow profiles for playlist.
Do not search for existing subs when inserting a new sub, the sub's belongs to id will be different.
Formatted linq statement to be multi-line, instead of single line, to make it easier to read.
Removed check for subscription if we are adding a new one, the profile id is going to be different.
Ensure we are deleting subs from the database when they are no longer associated with a profile.
2025-08-04 19:13:17 -05:00
6f920f3f0d Updated Program
Added Mapping of Ping Endpoints.
2025-07-31 13:02:24 -05:00
5387e1beb7 Updated Data Context
Added code to track changes that are made to the database.
2025-07-31 13:01:37 -05:00
57b6f24e35 Updated Migrations
Added Migration to add Change Log Tracking.
2025-07-31 13:00:51 -05:00
72dca6c1fe Updated DataContext
Added DbSet for ChangeLog table.
2025-07-31 13:00:32 -05:00
e2d0c327eb Updated ProfileEndpoint
Added an UpdateAsync() call for each subscription, to ensure that
subscriptions actually get updated in the database.
2025-07-31 12:59:39 -05:00
c3cd7b5a16 Added ChangeLog
Added change log to track updates to the database, for easier pinging
from Syncer client.
2025-07-31 12:57:47 -05:00
50ad10682b Updated Migrations
Couple of migrations to get the Json Value to work properly.
2025-07-24 04:22:44 -05:00
904db16461 Updated SettingJson
Changed from object to string, as it was to difficult to handle any data
field in the value.
2025-07-24 04:22:15 -05:00
e670ad5701 Updated MapData
Had data going in the wrong direction, corrected this.
2025-07-24 04:21:10 -05:00
4985dc4179 Started the Split
Split Json data models coming from REST Api, from the Database models
storing them in a SQLite database.
Work to re-engineer endpoints to use Database objects, and copy/update
data from the json objects.
More work is needed.
2025-07-22 17:03:33 -05:00
157d46ee2e Updated Endpoints
Updated all endpoints to use Update() method of the model, instead of
trying to use the data from the REST object directly to update the
database.  WHen doing so, tracking gets busted in EFCore, so instead,
will go through and update all properties of a model from the database
object, with the data from the REST object.
2025-07-21 17:10:42 -05:00
21af6f4300 Update Video
Added Update() method to model.
2025-07-21 17:09:14 -05:00
77c95a9525 Update Subscription
Added Update() Method to model.
2025-07-21 17:08:58 -05:00
e1ad30da0c Updated Setting
Added Update() method to model.
2025-07-21 17:08:43 -05:00
b08c22e77b Updated Profile
Updated code to filter out subscriptions that have been removed from the
profile, and insert new ones into the list in the Update() fucntion.
2025-07-21 17:08:17 -05:00
561ba4f34a Updated Playlist
Updated code to filter out videos that have been removed from the
playlist, and insert new ones into the list in the Update() function.
2025-07-21 17:05:27 -05:00
a5453c8191 Updated App Settings
Added FreeTubeSync database connection strings.
2025-07-21 13:06:55 -05:00
0359732385 Updated Program
Updated Program to have SQLite Configuration done through Connection
Strings.
Added auto migration for the database, if we get an exception, we create
the database instead (As it doesn't exist.)
2025-07-21 13:06:27 -05:00
2746bd84ed Moved Dockerfile
Moved dockerfile into root Solution folder.
2025-07-21 13:04:15 -05:00
0035ed14a8 Updated DataContext
Removed OnConfiguring(), as this is done in Program.cs now.
2025-07-21 13:03:51 -05:00
8e11008d58 Updated Migrations
Updated Migrations to handle change of Int to Long (SQLite still uses
integer field, but better safe if using something other then SQLite)
Changed Primary Key for Video from VideoId to PlaylistItemId.
2025-07-19 12:47:24 -05:00
6970b792eb Updated Video.cs
Removed videoId as Key, and use playlistItemId as Key, as this will be
unique to each playlist, and will not conflict with videos being on more
then one playlist.
2025-07-19 12:46:14 -05:00
a61362e9b5 Updated Playlist, SearchHistory and Video
Changed all ints to longs for field datatypes dealing with Unix
timestamp.
2025-07-19 12:42:26 -05:00
2e27078443 Updated SearchHistoryEndpoints.cs
Fixed wrong Model for SearchHistory, was using Regular History class,
instead of SearchHistory class.
2025-07-19 12:40:00 -05:00
15d949d7e1 Updated DataContext.cs
Added Navigation AutoInclude() for Profile subscriptions, and Playlist
videos.
2025-07-19 12:38:36 -05:00
0144221712 Initial Commit
Inital Commit of Code base, nothing tested.
2025-07-19 04:02:09 -05:00