Commit graph

343 commits

Author SHA1 Message Date
Neeraj Gupta 01c29037dd
Handle cancellation for uploads when folder is unmarked for backup 2022-09-09 15:04:09 +05:30
Neeraj Gupta 83067bc523
Merge branch 'rewrite_device_sync' into rewrite_device_sync_remote 2022-09-08 10:50:27 +05:30
Neeraj Gupta 3c6acb85ba
Merge branch 'master' into rewrite_device_sync 2022-09-08 10:49:21 +05:30
ashilkn c1722959e7 resolve merge conflicts 2022-09-07 17:56:24 +05:30
ashilkn eb7c1ec837 started incremental migration to null safety 2022-09-07 14:00:09 +05:30
Neeraj Gupta 591e8ba1d9
Merge branch 'rewrite_device_sync' into rewrite_device_sync_remote 2022-09-07 13:50:43 +05:30
Neeraj Gupta 1d3ce385ec
Merge branch 'master' into rewrite_device_sync 2022-09-07 13:49:13 +05:30
Neeraj Gupta 010982a0c0
store device collection upload strategy 2022-09-07 11:33:48 +05:30
Neeraj Gupta 29a0ebad8e
By default, only add to collection if file not already uploaded 2022-09-07 10:58:50 +05:30
ashilkn dad8a9c234 minor changes 2022-09-07 07:26:51 +05:30
ashilkn c385b32250 bug fix to show collection name in file info for incoming shared albums 2022-09-07 06:45:42 +05:30
Neeraj Gupta e9e57a6f75
Merge branch 'rewrite_device_sync' into rewrite_device_sync_remote 2022-09-06 23:11:04 +05:30
Neeraj Gupta f61ee05fbf
Merge branch 'master' into rewrite_device_sync 2022-09-06 22:14:25 +05:30
ashilkn a85f2229a7 show all collection of file in file info + remaned RawExifButton file 2022-09-06 16:57:39 +05:30
Neeraj Gupta 23336ddd5d
Fix query for android 2022-09-04 17:45:08 +05:30
Neeraj Gupta 536d8b0440
Rewrite storeDiff logic to fix matching bugs 2022-09-04 17:12:22 +05:30
Neeraj Gupta 1ad387979e
Merge branch 'rewrite_device_sync' into rewrite_device_sync_remote 2022-09-02 14:12:46 +05:30
Neeraj Gupta 298c94bb65
Merge branch 'match_bug_fix' into rewrite_device_sync 2022-09-02 14:12:14 +05:30
Neeraj Gupta 3baafc72fb
Fix: Set localID for all files with same uploadedFileID 2022-09-02 13:12:46 +05:30
Neeraj Gupta 81beff6f1d
Merge pull request #415 from ente-io/reupload_hash_check
[Part-0] Rewrite Sync: Use hash to avoid duplicate uploads
2022-09-02 12:07:45 +05:30
Neeraj Gupta b15c8528db
minor rename 2022-09-01 20:46:57 +05:30
Neeraj Gupta 567804f0f9
minor formatting and rename 2022-09-01 20:39:47 +05:30
Neeraj Gupta 7a18d3ab38
make final 2022-09-01 15:11:50 +05:30
Neeraj Gupta afc057953d
minor refactor and bug fixes 2022-09-01 14:49:35 +05:30
Neeraj Gupta eec540af93
review changes 2022-09-01 14:17:57 +05:30
Neeraj Gupta 226c064d82
Merge branch 'rewrite_device_sync' into rewrite_device_sync_remote 2022-09-01 09:45:17 +05:30
Neeraj Gupta c0f47ec0e9
Merge branch 'master' into rewrite_device_sync_remote 2022-09-01 09:05:04 +05:30
Neeraj Gupta 6afe51b6f3
remove unused synced col from device_files 2022-09-01 01:27:48 +05:30
Neeraj Gupta 40c76edbc5
remove unused method 2022-09-01 00:12:24 +05:30
Neeraj Gupta dc0c856a4c
rename DevicePathCollection to DeviceCollection 2022-09-01 00:09:39 +05:30
Neeraj Gupta e09e585c5f
Merge branch 'reupload_hash_check' into rewrite_device_sync 2022-08-31 23:58:48 +05:30
Neeraj Gupta 4ee0bebf73
Fix query in getFileCountInDeviceFolders 2022-08-31 23:50:00 +05:30
Neeraj Gupta cddcc786dc
Merge branch 'master' into reupload_hash_check 2022-08-31 23:16:12 +05:30
Ashil Kandapath d780752028 minor changes 2022-08-30 13:46:40 +05:30
Neeraj Gupta cfc55d7df3
Merge branch 'rewrite_device_sync' into rewrite_device_sync_remote 2022-08-30 13:11:35 +05:30
Neeraj Gupta 19832b82b5
Merge branch 'master' into rewrite_device_sync_remote 2022-08-30 13:03:54 +05:30
Ashil Kandapath 5850074120 minor changes 2022-08-30 12:13:51 +05:30
Ashil Kandapath d81c43268b resolved merge conflicts 2022-08-30 11:44:57 +05:30
Neeraj Gupta 2bbacb26ee
mark variables as final when possible 2022-08-29 23:35:13 +05:30
Neeraj Gupta 1533ac4098
Merge branch 'reupload_hash_check' into rewrite_device_sync 2022-08-29 23:32:00 +05:30
Neeraj Gupta 792dd67ade
Merge branch 'master' into reupload_hash_check 2022-08-29 23:20:21 +05:30
Neeraj Gupta 531b4a0490
add review comments 2022-08-29 23:13:17 +05:30
Ashil Kandapath a278df2f23 exclude collectionID = -1 rows while querying for c-ids of hidden files 2022-08-29 20:14:07 +05:30
vishnukvmd 06ec7cb658 final all the vars! 2022-08-29 20:13:31 +05:30
Neeraj Gupta 68738c5c56
Refactor fileHash handling 2022-08-29 13:28:49 +05:30
ashilkn 89892ea9f1 enable extra hidden features only for internal testers or on debug build 2022-08-27 15:24:06 +05:30
ashilkn 5fac3dae60 made a service to get set of collectionIDs of collections with hidden files 2022-08-26 20:14:11 +05:30
ashilkn 66a50ff045 get latest visible file from collection on getLatestVisibleFiles() 2022-08-26 17:57:59 +05:30
ashilkn f6e4659fb6 hid hidden files from albums 2022-08-26 17:44:40 +05:30
Neeraj Gupta 2bbef93713
Fix db update query 2022-08-26 17:17:30 +05:30
Neeraj Gupta 23c18c0013
Dedupe device folder file result 2022-08-26 16:41:44 +05:30
Neeraj Gupta 7b043fff30
Sync mapping from device albums to files table 2022-08-26 16:30:22 +05:30
Neeraj Gupta 72043e9f0d
temp 2022-08-26 14:51:44 +05:30
Neeraj Gupta 919186a9c9
Fix: only attempt to update files ownedBy user 2022-08-26 12:34:41 +05:30
Neeraj Gupta 5ad1196172
Remove redundant method for uploading editedFiles 2022-08-26 12:04:41 +05:30
Neeraj Gupta 4865664642
FileDB: Pass conflictAlg as optional param during insert 2022-08-24 16:02:03 +05:30
Neeraj Gupta 799e7ebed6
Fix conflict due to merge 2022-08-22 16:17:16 +05:30
Neeraj Gupta d3e0eebacb
Merge branch 'reupload_hash_check' into rewrite_device_sync 2022-08-22 16:06:47 +05:30
Neeraj Gupta 89c4f3a808
minor documentaiton 2022-08-22 16:06:07 +05:30
Neeraj Gupta 74734d47f2
Merge branch 'master' into reupload_hash_check 2022-08-22 16:03:26 +05:30
vishnukvmd a124211f27 Fix ordering of search results within a year 2022-08-13 18:40:01 +05:30
ashilkn 908d66359c misc. changes 2022-08-06 23:41:23 +05:30
ashilkn f970869c57 misc. changes 2022-08-06 23:26:36 +05:30
ashilkn a54c212876 added hero animation from location suggestion to location collection 2022-08-06 20:56:07 +05:30
Neeraj Gupta 65f929fbdd
rename method 2022-08-05 17:43:51 +05:30
Neeraj Gupta 7055b618d1
Merge branch 'reupload_hash_check' into rewrite_device_sync 2022-08-05 17:24:23 +05:30
Neeraj Gupta 1f7c4c3b9f
Use fileHash to avoid re-upload of already uploaded files 2022-08-05 15:20:03 +05:30
ashilkn 5fdca7c8da deduped files in location search results 2022-08-04 11:29:15 +05:30
ashilkn bb13623704 added limits to suggestions of collection and file name search 2022-08-04 10:21:23 +05:30
ashilkn 6fcb96fee6 fetching the location search files now from cached memory + can see result page with rendered files now which has duplicates in it 2022-08-03 18:58:18 +05:30
ashilkn 9f97e26a73 added on tap to location suggestion widget which is paritally working 2022-08-03 15:06:38 +05:30
ashilkn 634ce7e013 cached file name, made functions to return location name and files 2022-08-01 21:06:24 +05:30
Neeraj Gupta e69ac95863
remove unused method 2022-07-28 14:49:38 +05:30
ashilkn bd09c5d148 made service for filename search + made corresponding class members/variables 2022-07-27 17:21:43 +05:30
Neeraj Gupta ae72969982
Support for storing latest file as deviceFolder cover 2022-07-26 11:02:04 +05:30
Neeraj Gupta 70faf7f5f5
Fix insertion query for db paths 2022-07-25 12:45:17 +05:30
Neeraj Gupta dbaf4bfe27
FilesDB: Fix create table query for device path collections 2022-07-23 17:03:59 +05:30
Neeraj Gupta e7d6aa48d0
DeveloperMode: Support for deleting local sync state
Signed-off-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
2022-07-23 15:34:53 +05:30
Neeraj Gupta 5fe8167006
Rename variable 2022-07-23 11:11:43 +05:30
Neeraj Gupta 470c5de015
add table for device_files and device_path_collections 2022-07-21 18:33:33 +05:30
Neeraj Gupta e8cf734446
dedupe files by localId 2022-07-11 09:34:12 +05:30
Neeraj Gupta 35d8e00034
Add view all device photos option for iOS 2022-07-09 22:53:11 +05:30
Neeraj Gupta 460dd1203e
Prefer const 2022-07-04 11:33:10 +05:30
Neeraj Gupta c54fe344ce
avoid fetching hidden memories for memories (duh) 2022-06-21 18:43:16 +05:30
Neeraj Gupta 03ea93f277
Hide hidden collections from memories 2022-06-21 18:25:39 +05:30
vishnukvmd 47505ae102 Execute dart format lib 2022-06-11 13:53:52 +05:30
vishnukvmd 3e306facf5 Apply dart fix for require_trailing_commas 2022-06-11 13:53:18 +05:30
Neeraj Gupta 9bc4306218
Merge branch 'master' into redesign 2022-06-09 18:37:56 +05:30
Neeraj Gupta 423304aecc
Fix bug in sql query 2022-06-08 15:59:29 +05:30
Neeraj Gupta bb5ef1b246
Minor bug fixes 2022-06-08 14:50:03 +05:30
Neeraj Gupta e547304036
Reupload files with missing location 2022-06-08 14:19:23 +05:30
Neeraj Gupta 1873600a83
Fix hidden file count 2022-05-17 18:24:56 +05:30
Neeraj Gupta 300a3c9647
show count for trashed & hidden files 2022-05-05 12:16:31 +05:30
Neeraj Gupta 588aae777f Add support for archiving collection 2022-03-21 15:02:24 +05:30
Neeraj Gupta fed63d5ce7 add additional filter check for unsynced files 2022-02-13 18:12:34 +05:30
Neeraj Gupta a7d8fca551 rename and fix bug in query 2022-02-13 18:12:34 +05:30
Neeraj Gupta 8b9a47a64b remove blocking upload dialog for manually backed up files 2022-02-13 18:12:34 +05:30
Neeraj Gupta a9f4fa8bd8 Bugfix: Fix typo 2021-10-31 19:59:22 +05:30
Neeraj Gupta 3eea54d262
BugFix: deduplicate files for home page 2021-10-30 12:35:50 +05:30
vishnukvmd e7ddf880dd Add missing return statement 2021-10-28 01:12:30 +05:30
Neeraj Gupta 3816f15343
formatting changes 2021-10-26 20:16:58 +05:30
Neeraj Gupta aa145e0217
Support for editing date of memory 2021-10-26 16:07:14 +05:30
Neeraj Gupta 4e492396e4
File & FilesDB: Add pubMetadata 2021-10-26 10:55:42 +05:30
Neeraj Gupta 29630aedd0
TrashRestore: Remove unsynced local files 2021-10-20 16:28:11 +05:30
Neeraj Gupta 2eaabf31cc
Fix db query for sqlite 3.9.2 2021-10-02 00:17:15 +05:30
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