Commit Graph

81 Commits

Author SHA1 Message Date
M1ha
ec72e31986 Tests written for get_final_version 2019-01-14 11:32:21 +05:00
M1ha
ba3f2f6c1b Fixed getting final versions if DateTimeField is used 2019-01-14 10:56:54 +05:00
M1ha
1f3dcedf55 Added ability to get final rows version with the help of version_col 2019-01-11 13:00:42 +05:00
M1ha
ec2f71fc78 Refactoring 2019-01-10 17:29:41 +05:00
M1ha
aed0928ba8 Added tests on syncing data to non default database 2019-01-10 17:02:58 +05:00
M1ha
96300761a7 Сделал создание стандартных типов при создании app-а.
Сделал галочку active у EventType.
2019-01-10 15:05:16 +05:00
M1ha
33dea53aa2 Bugfix in getting empty sync models 2019-01-09 15:36:56 +05:00
M1ha
682c004ba4 Bugfix in getting sync models 2019-01-09 15:14:53 +05:00
M1ha
dbe54da5e3 Refactoring 2018-12-25 12:53:23 +05:00
M1ha
e8a15e4330 Fixed statsd counters 2018-12-19 16:15:17 +05:00
M1ha
6a1ffbadd3 Divided separate get_sync_query_set method for easy reusage 2018-12-19 15:11:17 +05:00
M1ha
76b01c13de Fix multiple model registration 2018-12-19 13:15:42 +05:00
M1ha
1a3d512c57 Fix statsd counters 2018-12-19 13:02:14 +05:00
M1ha
13b67ed77a Fix time between batches count 2018-12-19 12:58:34 +05:00
M1ha
36123db73e Fix time between batches count 2018-12-19 12:52:47 +05:00
M1ha
2dc8e7a270 Fix choosing connection on syncing 2018-12-19 12:37:05 +05:00
M1ha
0829e5bacd Added some statsd counters for sync process 2018-12-19 12:32:27 +05:00
M1ha
6c9e217161 Added some statsd counters for sync process 2018-12-19 12:21:28 +05:00
M1ha
38db27626c Fixes in statsd keys 2018-12-19 12:11:55 +05:00
M1ha
578fc6c939 Bug fix with rank 2018-12-19 11:59:55 +05:00
M1ha
95bf0ab520 Bug fixes 2018-12-19 11:57:05 +05:00
M1ha
d0cfd234de Fix import errors 2018-12-19 11:46:44 +05:00
M1ha
59f0efae15 Fix module import on auto sync 2018-12-19 11:34:00 +05:00
M1ha
b94195c1f1 Fix creating MigrationHistory table 2018-12-18 18:41:00 +05:00
M1ha
d830b74bcb Created separate from infi MigrationHistory in order to:
1) inherit it from this library models
2) Use some extra functionality
2018-12-18 18:28:23 +05:00
M1ha
0268cc230a Fixed error in migrate. Wrote tests 2018-12-18 17:34:30 +05:00
M1ha
66ec7dd5db Fixed error in migrate. Wrote tests 2018-12-18 17:33:34 +05:00
M1ha
2d4c8554cd Changed migrations routing, dividing it into replicated and not replicated operations 2018-12-18 15:45:10 +05:00
M1ha
2126bc25da Fix for readonly connections in migrations 2018-12-18 15:01:02 +05:00
M1ha
a9ff8fb8b6 Fix for readonly connections in migrations 2018-12-18 14:59:56 +05:00
M1ha
7415d16b4f Added logging of migration process 2018-12-18 14:51:12 +05:00
M1ha
2d84e5da04 Added logging of migration process 2018-12-18 14:47:56 +05:00
M1ha
b7972fb079 Bugfix 2018-12-13 11:59:34 +05:00
M1ha
2cc742214a Bugfix 2018-12-13 11:55:26 +05:00
M1ha
9ab38c464d Bugfix 2018-12-13 11:53:36 +05:00
M1ha
71e839167a Refactoring 2018-12-13 10:52:38 +05:00
M1ha
7e502ee8a8 1) Fixed SyncKillTest
2) Added some logs
2018-12-03 16:41:34 +05:00
M1ha
b52bfaccae Fix in test 2018-11-29 19:15:27 +05:00
M1ha
762c1aa10d 1) Fixed SyncKillTest
2) Added some logs
2018-11-29 19:10:41 +05:00
M1ha
9742abbaec Added test for killing sync process safety.
Test is not passing =)
2018-11-29 15:19:25 +05:00
M1ha
166d23ca7c Refactoring 2018-11-28 15:33:01 +05:00
M1ha
abe0ae45c5 Added QuerySet that determines db with router help.
Added using(), create(), bulk_create(), all() methods to QuerySet
2018-11-28 15:30:19 +05:00
M1ha
ce1a206b04 Moved model_to_dict to utils 2018-11-27 13:09:20 +05:00
M1ha
d300d6e46e Фиксы по тестам 2018-11-26 19:17:58 +05:00
M1ha
745b7b7788 Fixed some bugs 2018-11-26 17:37:31 +05:00
M1ha
0e4dd6b69f Fixed some bugs 2018-11-26 17:28:03 +05:00
M1ha
e81a6b5e4a Bugfix in ClickHouseMultiModel sync 2018-11-26 15:38:10 +05:00
M1ha
ecff04aaf2 Removed database connections from router 2018-11-26 15:13:18 +05:00
M1ha
382655224b Fix 2018-11-26 12:40:32 +05:00
M1ha
e8161ee7ce Fixes in migration system to pass database directly 2018-11-26 11:56:50 +05:00