Commit Graph

17 Commits

Author SHA1 Message Date
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
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
5cb044d4b7 added deleteRequired to the database 2019-03-23 22:54:31 +01:00
9ab0ddb2d0 updated copyright notice at the top of the files 2019-03-23 22:40:56 +01:00
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
3c3eaa8da7 generated mocks for the datastore 2019-03-21 22:37:16 +01:00
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
f40308e378 fixed upload required 2019-03-20 00:31:09 +01:00
a871cfbb11 fixed missing reset of the uploadRequired flag 2019-03-20 00:24:09 +01:00
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
7bf14e5ca3 Added SavePiwigoIdAndUpdateUploadFlag 2019-03-19 23:07:55 +01:00
00404788cb Renamed methods as GO has no Getter or Setter 2019-03-19 21:21:45 +01:00
066f8f5f95 extended datastore to get the images that should be uploaded 2019-03-17 23:36:40 +01:00
2333eccd0e added column UploadRequired to the image metadata 2019-03-17 22:59:18 +01:00
b917511e95 Added first datastore implementation with tests 2019-03-15 23:53:47 +01:00
9ca31bcb2b started adding sqlite code 2019-03-15 00:35:49 +01:00
5a4c133f27 moved app types to appContext.go and added some methods
moved piwigo login from app.go to piwigoContext.go
Updated visibility of some types
Added first elements of the local data store including configuration on startup and flag
yea yea... I know, the commit contains to many changes ;-)
2019-03-12 23:44:05 +01:00