Commit graph

89 commits

Author SHA1 Message Date
Deluan
6c05930444 Change tests' db path to a temp folder 2020-01-11 16:48:45 -05:00
Deluan
4b1c909a4d Make persistence provider pluggable at runtime 2020-01-11 15:27:32 -05:00
Deluan
93ab4132fe Move mapping functions to db_ledis, where it is used 2020-01-11 15:27:32 -05:00
Deluan
ce1c5e1129 Remove compulsory reindex at startup 2020-01-11 15:27:32 -05:00
Deluan
0c4cbe11be Fix flake test (was dependent on map keys order) 2020-01-11 15:27:32 -05:00
Deluan
10221b5471 Force dbPath to be relative to main executable 2020-01-11 15:27:32 -05:00
Deluan
c9742181ff Save Storm DB in the DbPath configured 2020-01-11 15:27:32 -05:00
Deluan
cead8906d6 Implements NowPlayingRepository as an in-memory only struct 2020-01-11 15:27:32 -05:00
Deluan
c9be5f7201 Storm ChecksumsRepository complete. 2020-01-11 15:27:32 -05:00
Deluan
4f151a7409 Storm PlaylistRepository complete. 2020-01-11 15:27:32 -05:00
Deluan
70d7793147 Moved MediaFolders Repository to persistence agnostic package 2020-01-11 15:27:32 -05:00
Deluan
11f4505925 Renamed persistence packages 2020-01-11 15:27:32 -05:00
Deluan
a1d837cb9b Storm IndexRepository complete. 2020-01-11 15:27:32 -05:00
Deluan
9ccd9545e8 Refactored purgeInactive, better test suite setup 2020-01-11 15:27:32 -05:00
Deluan
ef79f6342f Removed old runtime tagging code. Not used anymore 2020-01-11 15:27:32 -05:00
Deluan
dbeba1dea9 Storm MediaFileRepository complete. 2020-01-11 15:27:32 -05:00
Deluan
c608e917db Storm AlbumRepository complete. 2020-01-11 15:27:32 -05:00
Deluan
0ca691b37f Storm ArtistRepository and PropertyRepository complete. 2020-01-11 15:27:32 -05:00
Deluan
aebb960831 New storm artist repository, WIP 2020-01-11 15:27:32 -05:00
Deluan
40904b220e Renamed Id to ID, following GoLang convention 2020-01-11 15:27:32 -05:00
Deluan
018352463f Moved ledis implementation to a new package 2020-01-11 15:27:32 -05:00
Deluan
24cbf766a3 Removed dependency on engine from persistence 2020-01-09 22:44:45 -05:00
Deluan
84d69a4f41 Replaced Beego logging 2020-01-09 22:44:45 -05:00
Deluan
79701caca3 Removed Beego routing/controllers, converted to Chi.
Also introduced Wire for dependency injection
2020-01-09 22:44:45 -05:00
Deluan
29519fe22f Fixes typo 2017-04-01 09:55:21 -04:00
Deluan
c417a00e62 Renamed project to CloudSonic 2017-04-01 09:47:14 -04:00
Deluan
60bc1d7a11 Polishing 2016-04-21 10:44:27 -04:00
Deluan
c2b1f9782b New configuration system 2016-03-30 00:05:57 -04:00
Deluan
768764bea7 getRandomSongs.view (partially) implemented 2016-03-29 00:01:27 -04:00
Deluan
1a705d4319 Fixing NowPlaying when we have more than one song in the queue 2016-03-28 19:11:49 -04:00
Deluan
83e0a7b24c Fixing some lint warnings 2016-03-26 22:43:13 -04:00
Deluan
0e20910061 Cleaning old data from artists indexes 2016-03-26 22:29:26 -04:00
Deluan
f29ac99b45 Trying to fix build 2016-03-25 02:14:38 -04:00
Deluan
1cf8a0db44 Refactored NowPlaying
Also added a test case for skipping range
2016-03-24 17:14:13 -04:00
Deluan
d59394c653 GetStarred now returns starred songs 2016-03-23 19:02:58 -04:00
Deluan
b25cfd96eb Polishing 2016-03-23 16:30:38 -04:00
Deluan
08192e6d23 Handling a racing condition between Register and NowPlaying, when the queue is empty 2016-03-23 13:51:02 -04:00
Deluan
c87b133071 Polishing 2016-03-23 12:37:03 -04:00
Deluan
d57f51c7ac Removed unused code 2016-03-23 12:00:19 -04:00
Deluan
0e1618a6ac Using PersistentIDs instead of "Database" IDs 2016-03-23 11:43:20 -04:00
Deluan
638f328330 fixed a NPD (Nil Pointer Dereference) 2016-03-23 11:26:27 -04:00
Deluan
c580a4199e New NowPlaying and Skip detection implementation 2016-03-23 10:06:26 -04:00
Deluan
db992a9941 Small changes regarding StarredAt.
Making StarredAt more "precise", setting it to the time the change was detected.
getStarred.view now returns albums ordered by StarredAt.
loadRange method now take QueryOptions.Desc into account
2016-03-22 19:00:18 -04:00
Deluan
21b39d922c More slices instead of pointers of slice 2016-03-20 13:33:59 -04:00
Deluan
3f0030738a Indexes using slices instead of pointers of slice 2016-03-20 13:08:24 -04:00
Deluan
27b7b7ce08 More slices instead of pointers of slice 2016-03-19 23:03:50 -04:00
Deluan
04513d38f0 Fixed bug on reflect and slice 2016-03-18 21:07:57 -04:00
Deluan
508bf7152f Removing purged ids from the search index 2016-03-18 19:50:21 -04:00
Deluan
3790aa45e4 Refactored PurgeInactive as a "generic" function.
Also delete indexes when removing records
2016-03-18 19:32:49 -04:00
Deluan
25d902c9d7 When ErroNotFound, return an new entity to avoid conversion from nil errors 2016-03-18 17:24:26 -04:00