Commit Graph

487 Commits

Author SHA1 Message Date
31ab6f2408 Fix event flushing sticking on early return 2018-05-29 19:43:52 +09:00
4a18951cce Report full error to log file 2018-05-29 18:37:45 +09:00
47d88a48a2 Add logging on import processes 2018-05-29 16:26:42 +09:00
de8c4e6d56 Remove unique constraints on hash columns
We are going to allow multiple instances of the same beatmap info hash as they could be in different beatmap sets.
2018-05-29 16:26:32 +09:00
c1f416b1cc Add back missing rethrow 2018-05-29 16:23:38 +09:00
3d3026a80c Report any error during import to the write context to allow for rollback 2018-05-29 16:23:38 +09:00
72da640059 Change order of event firing in Update calls
A remove event should not be fired before the update is successful.
2018-05-29 16:23:38 +09:00
80806be047 Don't start transactions for migration
It looks like transactions are used internally during migration.
2018-05-29 16:23:38 +09:00
a3287b8cf2 Correctly rollback failed imports 2018-05-29 16:23:38 +09:00
bcb04f6168 Improve transaction handling flexibility 2018-05-29 16:23:27 +09:00
d4e7f08c20 Bring entity framework up-to-date and re-enable transactions 2018-05-29 16:23:27 +09:00
2a87b851fa Add proper transaction rollback logic on exception 2018-05-29 16:23:27 +09:00
32a74f95a5 Normalize all the line endings 2018-04-13 18:26:38 +09:00
b97c4e8b44 Fix all possible cases of crossthread import data races 2018-04-09 12:45:44 +09:00
5159127bce Fix SQLite failing to initialize on test projects 2018-03-26 18:07:09 +09:00
0e669c9a3f Fix many warnings 2018-03-24 18:23:22 +09:00
ffa712dccb Fix post-merge issues 2018-03-24 15:19:45 +09:00
c29f7a4333 Merge remote-tracking branch 'origin/master' into netstandard 2018-03-24 14:49:46 +09:00
b8022070e8 Merge remote-tracking branch 'upstream/master' into beatmap-as-a-skin 2018-03-22 16:24:56 +09:00
9a20839b74 Merge branch 'master' into better-import-notice 2018-03-22 14:57:04 +09:00
dc9fb84e25 Update progress with the current item, not the next item
In the case where there is no next item, the progress will not get updated, so we'll essentially skip one element from filling the progress bar further. In the future we may/will want to not hide the notification upon completion, so this will look better in such scenarios.
2018-03-22 14:46:25 +09:00
5104ba8118 Merge branch 'master' into beatmap-as-a-skin 2018-03-22 13:45:30 +09:00
101caf3064 Apply same logic fixes to delete/restore all notifications 2018-03-22 11:28:40 +09:00
625e561fc8 Fix whitespace 2018-03-20 18:01:09 +09:00
dbcf755618 Make Beatmaps parsable as skins 2018-03-20 16:05:29 +09:00
f565cc861d Hard bail on attempting to import an invalid archive format 2018-03-19 20:41:12 +09:00
994c7bfabd Further improvements to messaging 2018-03-19 20:40:14 +09:00
18368d2446 Make import notifications fail when any imports fail 2018-03-19 20:18:23 +09:00
e9c5834387 Add query method for now 2018-02-23 13:26:01 +09:00
402d71a8d9 Add user skin setting storage 2018-02-22 16:29:05 +09:00
4c14b32783 Add basic skin database model layout and importing 2018-02-22 15:46:11 +09:00
57e61b0b0e Update xmldoc 2018-02-19 14:50:42 +09:00
8b89735e9e Improve xmldoc for DatabaseContextFactory.Get 2018-02-19 14:17:41 +09:00
fa05822d7d Add missing licence headers 2018-02-15 16:33:33 +09:00
b9ef32b09b Further xmldoc and restoring of Cleanup method 2018-02-15 16:31:42 +09:00
1b13be1372 Cleanups and xmldoc additions 2018-02-15 16:24:14 +09:00
89cf794f98 Add a lower level ConsumableItems implementation 2018-02-15 16:15:40 +09:00
671475f3b4 Ensure undeleted items are populated with includes before firing events 2018-02-15 16:15:40 +09:00
e51450a064 Fix query construction 2018-02-15 15:24:28 +09:00
fe5df663be Add more xmldoc 2018-02-15 15:14:46 +09:00
a0a65abcac Crentalise all import logic 2018-02-15 14:22:39 +09:00
d3dd31dadb Make deletion and purging logic even more global 2018-02-15 14:22:39 +09:00
d340509b1d Move ArchiveReaders to a more global namespace
Also moves delete and action logic to a shared implementation
2018-02-15 14:22:39 +09:00
6ff63c2f0c Move deletion to ArchiveModelImportManager 2018-02-15 14:22:39 +09:00
e0d28564d0 Move import logic to shared implementation 2018-02-15 14:22:39 +09:00
50cdb03cd9 Don't dispose read contexts 2018-02-13 15:08:45 +09:00
ab34123ba8 Remove unnecessary class variable 2018-02-13 15:05:19 +09:00
a738664167 Add interface for database context factory 2018-02-12 23:10:05 +09:00
64cda9fd0f Remove incorrect assert assumption 2018-02-12 22:16:09 +09:00
8b37fde15b Only write when writes occur
Also add finaliser logic for safety. Also better threading. Also more cleanup.
2018-02-12 19:57:21 +09:00