Commit Graph

91 Commits

Author SHA1 Message Date
Philipp Häfelfinger d95dcecda2 moves all flags from the entry point to flags.go 2020-04-14 23:14:11 +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 3de900ab75 renamed PiwigoContext to ServerContext 2019-04-09 00:01:51 +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 d62fc55c9e fixed parameter usage 2019-04-08 23:07:45 +02:00
Philipp Häfelfinger b99e990747 reenabled whole workflow and made it build 2019-04-06 22:48:11 +02:00
Philipp Häfelfinger 4f7aa3349b WIP: made it build -> will not work as all is currently commented out 2019-04-04 16:14:34 +02:00
Philipp Häfelfinger a364dc7a8a WIP: disabled logic to make API changes less painful 2019-04-04 15:51:29 +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 582b0621c2 sorted image list that will be uploaded 2019-03-27 00:28:07 +01:00
Philipp Häfelfinger 86e26b1bb5 switched order. delete before upload 2019-03-25 23:40:28 +01:00
Philipp Häfelfinger f2d83e57ea optimized metadata create / update performance 2019-03-25 23:36:25 +01:00
Philipp Häfelfinger 2e1c2c4e61 fixed logoutput 2019-03-25 22:54:30 +01:00
Philipp Häfelfinger 8a361fff3c added test to remove unneeded updates if a file is not found on the server 2019-03-25 22:40:19 +01:00
Philipp Häfelfinger e57fe635c2 fixed handling of upload required if there is no piwigo id 2019-03-25 00:09:56 +01:00
Philipp Häfelfinger 435af4b591 added flag to enable image removal 2019-03-24 23:58:35 +01:00
Philipp Häfelfinger 5896670c87 added delete images 2019-03-24 23:54:50 +01:00
Philipp Häfelfinger b52393feaa added DeleteMarkedImages to the local datastore 2019-03-24 23:44:16 +01:00
Philipp Häfelfinger 2c65c5827e added DeleteImages to the piwigo context 2019-03-24 23:07:59 +01:00
Philipp Häfelfinger df349a85e6 added implementation for synchronizeLocalImageMetadataFindFilesToDelete
added test synchronizeLocalImageMetadataFindFilesToDelete
updated usage of entry and leave debug messages of the functions
2019-03-24 00:10:07 +01:00
Philipp Häfelfinger c4e33598e9 added ImageMetadataAll 2019-03-23 23:56:35 +01:00
Philipp Häfelfinger 0d9579534d moved the filesystem scan to a own function 2019-03-23 23:33:44 +01:00
Philipp Häfelfinger 560f5057ac added ImageMetadataToDelete to the datastore
added test if it selectes the records to delete
added todo to refactor some image tests to use the generated mocks
2019-03-23 23:21:35 +01:00
Philipp Häfelfinger 5503a429c3 fixed namings and inlined som variables 2019-03-23 23:14:16 +01:00
Philipp Häfelfinger 4aae22527c introduced deferred cleanup calls
added test to ensure only files not to delete are part of the to upload list
fixed red test
2019-03-23 23:08:08 +01:00
Philipp Häfelfinger 54bc3d603c automatic codeformat 2019-03-23 23:05:40 +01:00
Philipp Häfelfinger 5cb044d4b7 added deleteRequired to the database 2019-03-23 22:54:31 +01:00
Philipp Häfelfinger cc2656cb09 updated copyright notice at the top of the files 2019-03-23 22:41:04 +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 8efd309a9c added some tests to the image code 2019-03-23 21:35:16 +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
Philipp Häfelfinger 3c3eaa8da7 generated mocks for the datastore 2019-03-21 22:37:16 +01:00
Philipp Häfelfinger 061bb112d5 formatting 2019-03-21 22:31:16 +01:00
Philipp Häfelfinger f71fcefc1a removed flag piwigoUploadChunkSizeInKB as it gets loaded from the server during login. Default is 512KB 2019-03-20 23:51:01 +01:00
Philipp Häfelfinger 4d50d5bb15 changed usage to piwigo interface instead of context 2019-03-20 23:30:04 +01:00
Philipp Häfelfinger b326b0da84 added uploadImages
added piwigo image id to upload to support file updates
added noUpload flag to do all but skip file upload
changed metadata filepath to full file path
moved category detection during local file metadata generation
2019-03-20 23:15:41 +01:00
Philipp Häfelfinger 8e3c736bf9 added interfaces to the piwigo context to make testing easier 2019-03-20 21:41:41 +01:00
Philipp Häfelfinger 390a60418f added unittest to test upload required in datastore -> probably not a good idea to set the flag here ;-) 2019-03-20 00:33:53 +01:00
Philipp Häfelfinger 28f7b6eaef fixed messages and stop processing if no images are ready to process 2019-03-20 00:31:23 +01:00
Philipp Häfelfinger f40308e378 fixed upload required 2019-03-20 00:31:09 +01:00
Philipp Häfelfinger a871cfbb11 fixed missing reset of the uploadRequired flag 2019-03-20 00:24:09 +01:00
Philipp Häfelfinger 8068d829fe Refactored piwigo context to a object oriented implementation
Optimized http calls to reuse more code and DRY
Interface for PiwigoContext WIP
Naming WIP
2019-03-20 00:17:58 +01:00
Philipp Häfelfinger f3f864ec49 Removed old empty method
added synchronizePiwigoMetadata implementations to update local metadata from piwigo
2019-03-19 23:08:28 +01:00
Philipp Häfelfinger 7bf14e5ca3 Added SavePiwigoIdAndUpdateUploadFlag 2019-03-19 23:07:55 +01:00
Philipp Häfelfinger 00404788cb Renamed methods as GO has no Getter or Setter 2019-03-19 21:21:45 +01:00
Philipp Häfelfinger 5166b0c6b8 started synchronization of piwigo ids and upload required 2019-03-17 23:57:28 +01:00
Philipp Häfelfinger 066f8f5f95 extended datastore to get the images that should be uploaded 2019-03-17 23:36:40 +01:00