Commit graph

188 commits

Author SHA1 Message Date
vishnukvmd 4162df3622 Add a single query to delete multiple files within a collection 2021-09-30 14:58:29 +05:30
Neeraj Gupta 8c35d78b43
Bugfix: Add if not exists check in index statement 2021-09-27 10:01:27 +05:30
Vishnu Mohandas 87bdd04f3a
Merge pull request #60 from ente-io/fix_range_error 2021-09-24 19:11:49 +05:30
Neeraj Gupta 86842ad2f6
Validate empty list check in getFilesFromIDs 2021-09-24 19:09:51 +05:30
Neeraj Gupta b746e9ffbd
Migration script: handle default values for collection and uploadedFile id 2021-09-24 17:13:35 +05:30
Neeraj Gupta 075db8df10
SQL query to delete duplicate files in collection & unique index to avoid same in future 2021-09-24 16:49:03 +05:30
vishnukvmd 2ee21cd928 Merge branch 'master' into deduplicate 2021-09-23 12:46:08 +05:30
Neeraj Gupta 81eeeb7aeb
magic-metadata: rename 2021-09-20 12:11:38 +05:30
Neeraj Gupta 3e5a54220c
Reuse existing method for loading archived files 2021-09-17 16:22:19 +05:30
Neeraj Gupta fde3ef0ec3
use constants for file visibility values 2021-09-17 15:34:24 +05:30
Neeraj Gupta 731de0c5e2
Archived: only show files owned by user 2021-09-17 15:01:34 +05:30
Neeraj Gupta 7b599bfdf2
Archive page: deduplicated files 2021-09-17 10:56:26 +05:30
Neeraj Gupta d4db17fd2d
Archive: add show archive button 2021-09-17 10:14:10 +05:30
Neeraj Gupta 8d66af68ac
Support archiving memories & hide them from home page 2021-09-16 23:03:16 +05:30
Neeraj Gupta d120f18aab
Support for persisting magic metadata for file 2021-09-16 18:44:51 +05:30
Neeraj Gupta 99eaf37882
getAllUploadedFiles: remove redundant null check for owner_id 2021-09-15 09:52:11 +05:30
vishnukvmd f38259bae9 Convert fetched fileIDs to File objects 2021-09-14 23:58:14 +05:30
Neeraj Gupta 6d8a47c9f0
Hide incoming collections from main gallery 2021-09-14 12:15:14 +05:30
vishnukvmd 709c4e959c Store metadata attributes to disk 2021-08-18 18:53:42 +05:30
Neeraj Gupta 002937975d Refactor: use getInt(FileType) instead of duplicating switchCase 2021-07-30 01:57:12 +05:30
Neeraj Gupta 830e83e3bb Gracefully handle deletion of unsynced files 2021-07-24 22:52:46 +05:30
vishnukvmd 2747810cb3 Ensure that DB inits occur only once 2021-07-22 02:04:53 +05:30
vishnukvmd c6ce7f2850 Add indices 2021-07-22 01:52:15 +05:30
vishnukvmd 54278ac89f Alter timestamp column types 2021-07-22 01:52:15 +05:30
vishnukvmd fff50cafee Show number of items in folders 2021-07-12 15:54:30 +05:30
Vishnu Mohandas f1e44b6875 Show files to be synced for users who have granted limited permissions 2021-07-01 16:56:47 +05:30
Vishnu Mohandas 39860cfde1 Sync all files for users who have selected limited files 2021-07-01 16:36:20 +05:30
Vishnu Mohandas f86021c7c3 Show uploaded files for users who have opted for limited permissions 2021-07-01 16:21:13 +05:30
Vishnu Mohandas d6f7ad5020 Encapsulate file load results in a model 2021-06-29 10:43:16 +05:30
Vishnu 41ca328009 Add API to delete local files 2021-06-28 15:42:12 +05:30
Vishnu 8a07a438f2 Use server API to compute file size 2021-06-28 12:10:19 +05:30
Vishnu 3a369eb76d Add API to fetch backed up files 2021-06-28 11:00:58 +05:30
Vishnu a1aafad475 Drop the check for creation time during de-duplication 2021-06-13 16:45:24 +05:30
Vishnu Mohandas 9ab5141221 Upload edited remote files correctly 2021-06-09 21:02:30 +05:30
Vishnu Mohandas d591bff834 Order by modification time 2021-06-09 19:15:42 +05:30
Vishnu Mohandas 4cf2ec73e1 Save remote only files post edits 2021-06-05 00:41:39 +05:30
Vishnu Mohandas 560d5b6440 Sanitize folder names 2021-06-05 00:35:13 +05:30
Vishnu Mohandas 8c2e8bebdf Safe guard against path's with a quote 2021-05-25 17:49:20 +05:30
Vishnu Mohandas 6e8861bddc Revert "Let sqlite set the generated ID"
This reverts commit e044807a04.
2021-05-16 14:10:11 +05:30
Vishnu Mohandas 0ea59cc164 De-duplicate files 2021-05-14 01:27:27 +05:30
Vishnu Mohandas ba83be9f59 Remove accidental semi-colon 2021-05-14 01:24:37 +05:30
Vishnu Mohandas 2942364892 Remove unused function 2021-05-14 01:21:27 +05:30
Vishnu Mohandas e044807a04 Let sqlite set the generated ID 2021-05-14 01:21:16 +05:30
Vishnu Mohandas 1da9c12f7a Fix IN-query 2021-05-13 16:43:32 +05:30
Vishnu Mohandas 48fc198185 Update file loading API to accept order as a param 2021-05-08 23:16:48 +05:30
Vishnu Mohandas 7b402682bf Remove unnecessary order by clause 2021-05-07 03:41:55 +05:30
Vishnu Mohandas dda96457b2 Commit the batch without results 2021-05-07 02:01:21 +05:30
Vishnu Mohandas 76cf4234d2 Fix query for fetching latest collection files 2021-05-04 20:55:59 +05:30
Vishnu Mohandas 39c2d018b3 Prevent duplicate entries for the same local file 2021-05-04 04:18:02 +05:30
Vishnu Mohandas f787fb92eb Deduplicate folders 2021-04-28 03:57:54 +05:30
Vishnu Mohandas 16a1a519f8 Fix delete multiple query 2021-04-28 03:47:19 +05:30
Vishnu Mohandas 5a6d538879 Update the delete files API 2021-04-28 02:19:00 +05:30
Vishnu Mohandas 30817ef8c7 Add utility function to get files within windows 2021-04-27 21:32:33 +05:30
Vishnu Mohandas 7fec8e6c79 Filter and show only photos that are important 2021-04-25 18:10:10 +05:30
Vishnu Mohandas 3c55c3baf3 Remove unused functions from FilesDB 2021-04-25 17:56:55 +05:30
Vishnu Mohandas 2b7c4612ea Remove FileRepository 2021-04-21 18:39:18 +05:30
Vishnu Mohandas 9b3f66a006 Remove log statements 2021-04-21 02:16:02 +05:30
Vishnu Mohandas d8b5fb6406 WiP 2021-04-21 01:41:39 +05:30
Vishnu Mohandas a42e7e4b76 Remove outdated calls to fetch latest collection files 2021-04-19 23:30:40 +05:30
Vishnu Mohandas a997c1df98 Move de-duplication logic to the DB layer 2021-04-19 23:19:13 +05:30
Vishnu Mohandas 450109aecf Improve collections gallery loading time 2021-04-19 23:16:52 +05:30
Vishnu Mohandas d08ba1db5c Simplify code for showing backed up folders 2021-04-19 22:41:53 +05:30
Vishnu Mohandas 3c2cb3d551 Improve loading of local folders 2021-04-19 22:38:12 +05:30
Vishnu Mohandas edfde94ca6 Reset batch counter once committed 2021-04-19 19:44:34 +05:30
Vishnu Mohandas 3fd25e44af Log time taken to batch-insert files 2021-04-19 18:16:42 +05:30
Vishnu Mohandas 60555f35cf Reduce number of DB reads during diff fetch 2021-04-19 16:57:52 +05:30
Vishnu Mohandas d4fb81e4ee Filter out null device folders 2021-04-02 06:22:26 +05:30
Vishnu Mohandas 100ce80650 Ensure that unique entries are created for local files 2021-03-26 11:44:18 +05:30
Vishnu Mohandas 2337317c6d Group files to be uploaded by localID 2021-03-26 00:35:23 +05:30
Vishnu Mohandas d775051d35 Simplify logic to count uploads 2021-03-25 20:14:58 +05:30
Vishnu Mohandas d1d72ed325 Display the correct queue size 2021-03-22 12:44:16 +05:30
Vishnu Mohandas ec4852057d Handle empty list 2021-03-22 11:59:21 +05:30
Vishnu Mohandas a7b2e63b1a Add an option to logout 2021-03-18 02:37:17 +05:30
Vishnu Mohandas b2ea5fbfa0 Expose total uploaded files in FilesDB 2021-03-03 21:31:40 +05:30
Vishnu Mohandas 52aa287b27 Replace files in case there are conflicts 2021-02-26 13:33:27 +05:30
Vishnu Mohandas 8d0fc44776 Add margin to account for the bottom bar 2021-02-08 14:56:49 +05:30
Abhinav-grd 3a57092c5c correctly passed tableName while creating tempTable 2021-01-25 11:45:37 +05:30
Abhinav-grd 7cd85be0b2 correct tempTable camelCasing 2021-01-25 10:50:57 +05:30
Abhinav-grd 183f1226b2 file_db changes 2021-01-25 00:29:17 +05:30
Abhinav-grd 0a8f5ab7d0 seperated add index to prevent duplicate index addition 2021-01-24 17:21:53 +05:30
Abhinav-grd c9a41bc71f added device null check to select db query 2021-01-24 16:51:40 +05:30
Abhinav-grd e141e39dee corrected the formatting issue 2021-01-24 16:26:34 +05:30
Abhinav-grd 5c497c7789 made scripts contain only single command 2021-01-23 19:19:37 +05:30
Abhinav-grd 8626303b5b added file_db migration script to remove deviceFolder not null constrain 2021-01-23 18:13:30 +05:30
Vishnu Mohandas b699a94b58 Prevent duplicate uploads during reinstallations 2021-01-02 14:34:36 +05:30
Vishnu Mohandas 89693610c6 Fix stupidity 2020-12-02 02:16:40 +05:30
Vishnu Mohandas ada2c59d1d Update DB queries 2020-12-01 19:31:46 +05:30
Vishnu Mohandas 350b6423cf Update files that haven't been uploaded too 2020-12-01 13:39:02 +05:30
Vishnu Mohandas d318a57d23 Implement ability to update files on remote 2020-12-01 00:12:11 +05:30
Vishnu Mohandas f17d7027c8 Fix thumbnail issue within device folder section 2020-11-30 13:47:13 +05:30
Vishnu Mohandas b92023ad5c Skip parsing files that are already in sync 2020-11-30 11:58:37 +05:30
Vishnu Mohandas 87672faf62 Update statement to fetch files within a path 2020-11-26 17:08:49 +05:30
Vishnu Mohandas a6c3913af5 Convert HEIC images on Android 2020-11-20 16:35:17 +05:30
Vishnu Mohandas 2effbf834d Eagerly supply all available device folder files 2020-11-14 16:27:08 +05:30
Vishnu Mohandas b42c84cf42 Remove unnecessary conflict algorithm specification 2020-11-14 15:58:20 +05:30
Vishnu Mohandas ee8d1e653c Replace when conflicts are encountered while applying remote diff 2020-11-14 15:41:12 +05:30
Vishnu Mohandas 49af595268 Fix deletion behavior 2020-11-01 13:07:23 +05:30
Vishnu Mohandas 568947fbf6 Ensure that only non deleted files are fetched from the DB 2020-11-01 12:14:50 +05:30
Vishnu Mohandas 6270ce27c8 Fix device folder entries 2020-11-01 11:19:15 +05:30
Vishnu Mohandas 89c5d37389 Refresh local device folder when a file is deleted 2020-11-01 10:50:20 +05:30