Commit Graph

93 Commits

Author SHA1 Message Date
Philipp Häfelfinger 425f8870e3 fixes handling of hidden directories 2020-06-02 21:04:01 +02:00
Philipp Häfelfinger 7c2d6f302b fixes name of the filesystem entry 2020-04-16 00:18:56 +02:00
Philipp Häfelfinger 033b5fa53c adds handling for new key generation and configurable extensions 2020-04-14 23:13:46 +02:00
Philipp Häfelfinger e07a12409b adds support for file exteions and directory ignores to the local scanner
still some todos left
2020-04-14 01:08:07 +02:00
Philipp Häfelfinger acea32d0b1 fixed variable shadowing warnings 2019-04-09 00:16:31 +02:00
Philipp Häfelfinger 4debc22f5c renamed piwigo interfaces to address build warnings 2019-04-09 00:05:02 +02:00
Philipp Häfelfinger 01761eb6ea renamed file to serverContext 2019-04-09 00:02:12 +02:00
Philipp Häfelfinger 3de900ab75 renamed PiwigoContext to ServerContext 2019-04-09 00:01:51 +02:00
Philipp Häfelfinger 6bde70cef8 renamed PiwigoCategory to Category as the package name is duplicated 2019-04-08 23:59:58 +02:00
Philipp Häfelfinger 04b32dcd02 Fixed some warnings provided by jetbrains goland IDE 2019-04-08 23:59:26 +02:00
Philipp Häfelfinger 059b2df215 made upload run in parallel with 4 as default 2019-04-08 23:08:27 +02:00
Philipp Häfelfinger 3785de4e56 made piwigo exists call batched 2019-04-08 22:15:42 +02:00
Philipp Häfelfinger 3c50f36a77 removed timing 2019-04-07 23:39:38 +02:00
Philipp Häfelfinger 281646b883 allow to run on all cores 2019-04-07 23:36:23 +02:00
Philipp Häfelfinger 962660d674 made file change detection run as go routines and parallel 2019-04-07 23:33:25 +02:00
Philipp Häfelfinger 56e21b2d90 split code into multiple files with each file dedicated to one purpose 2019-04-07 22:50:26 +02:00
Philipp Häfelfinger 2468bf3e16 fixed small calculation error that forced the upload to allocate 512MB instead of 512KB as upload buffer... ooops :-D 2019-04-07 22:21:15 +02:00
Philipp Häfelfinger 355d2a5f51 Fixed issue with duplicated category index on PiwigoId when Id is not yet known 2019-04-07 22:01:58 +02:00
Philipp Häfelfinger 321c18b6bd ignore hidden files and folders 2019-04-07 00:12:01 +02:00
Philipp Häfelfinger 5ca8a92e22 implemented category methods 2019-04-06 23:38:39 +02:00
Philipp Häfelfinger 6acd3f8a55 added save and load for category
marked some image functions internal
2019-04-06 23:23:43 +02:00
Philipp Häfelfinger 402ac902a5 added unique indexes to category
moved category methods down
2019-04-06 23:07:11 +02:00
Philipp Häfelfinger 2a4a8e2e01 renamed ImageMetaData.CategoryId to CategoryPiwigoId -> Db rebuild required 2019-04-06 23:01:53 +02:00
Philipp Häfelfinger 564554ffb0 added empty interface implementation 2019-04-06 22:47:56 +02:00
Philipp Häfelfinger dd03f75fca rewrote tests to use mocks instead of the stub implementation 2019-04-06 22:46:06 +02:00
Philipp Häfelfinger 8ed570728e refactored image handling to use new local data store 2019-04-06 22:14:17 +02:00
Philipp Häfelfinger e0bf273e35 added test for SynchronizeCategories 2019-04-06 00:16:58 +02:00
Philipp Häfelfinger a3b3cc5b2c added tests for addMissingPiwigoCategoriesToLocalDb 2019-04-06 00:13:34 +02:00
Philipp Häfelfinger edf5105680 some typos 2019-04-06 00:00:01 +02:00
Philipp Häfelfinger 528e74b9fe added some tests for createMissingCategories
fixed finding found in createMissingCategories
2019-04-05 23:59:31 +02:00
Philipp Häfelfinger fa54c63712 added tests for getParentId
fixed some small issues in getParentId
2019-04-05 23:45:34 +02:00
Philipp Häfelfinger 7a2633d221 WIP: regenerated mocks 2019-04-04 16:14:43 +02:00
Philipp Häfelfinger 207580b73f WIP: restructured existing code. Tests have to be added to make sure it does what it should :-D 2019-04-04 16:12:46 +02:00
Philipp Häfelfinger 42009730b1 WIP: Added method to get categories that should get created on the server 2019-04-04 16:12:10 +02:00
Philipp Häfelfinger 8c91dd2107 WIP: renamed function and made it package internal as it gets orchestrated by another sync function 2019-04-04 15:39:32 +02:00
Philipp Häfelfinger ca2620d426 WIP: implemented logic to update category 2019-04-04 15:35:42 +02:00
Philipp Häfelfinger 0d7ca76b98 WIP: added test that existing entries should be updated 2019-04-04 15:35:20 +02:00
Philipp Häfelfinger 550230195a WIP: refactored tests 2019-04-04 09:07:49 +02:00
Philipp Häfelfinger 41bf858523 WIP: Sync now saves the data 2019-04-04 08:55:16 +02:00
Philipp Häfelfinger b11464121c added first test and empty function 2019-04-02 23:26:55 +02:00
Philipp Häfelfinger 68aef12358 generated mocks 2019-04-02 23:26:34 +02:00
Philipp Häfelfinger 0e5fcaf525 added CategoryProvider and CategoryData with some basic interface methods but no implementation yet 2019-04-02 23:26:25 +02:00
Philipp Häfelfinger 710b76c79f Fixed mock generation 2019-04-02 22:56:04 +02:00
Philipp Häfelfinger 1bc176dd47 moved category to own package 2019-04-02 21:58:54 +02:00
Philipp Häfelfinger 58c1f8b9ff moved images to own package 2019-04-02 21:45:46 +02:00
Philipp Häfelfinger bd5250f0d5 moved datastore in own internal package 2019-04-02 21:30:39 +02:00
Philipp Häfelfinger 2c65c5827e added DeleteImages to the piwigo context 2019-03-24 23:07:59 +01:00
Philipp Häfelfinger 9ab0ddb2d0 updated copyright notice at the top of the files 2019-03-23 22:40:56 +01:00
Philipp Häfelfinger 21a3e08478 added tests for the filescanner using a testimage 2019-03-23 22:05:25 +01:00
Philipp Häfelfinger c9b6a7e6db learned about mocking and made mocks work
added new tests for the images part of the app
added go generate info to help generate mocks for tests
2019-03-22 00:14:34 +01:00