Commit Graph

49 Commits (e9455413150e63cb7eee3e61fe643795ec4e24e6)

Author SHA1 Message Date
Niels Andriesse 7828ad3ebe Partially debug storage API 6 years ago
Niels Andriesse 08aac18384 Clean more 7 years ago
Niels Andriesse 1c73cf5114 Re-order files 7 years ago
Mikunj f1cbc2e0d1 Added friend request message expiration. 7 years ago
Michael Kirk 645a26cbdf use connection pool for reads 7 years ago
Matthew Chen e7b9f7da99 Flush multi-process writes more aggressively. 7 years ago
Michael Kirk 5671fd2520 Revert "Revert 'new sort id'."
This reverts commit ebae75af00.
7 years ago
Matthew Chen 40aa78e001 Merge remote-tracking branch 'origin/release/2.31.0' 7 years ago
Michael Kirk c686e766b1 Exception audit, fail directly where intended 7 years ago
Michael Kirk 3560f3be5c Durable send operation
TODO
-[x] respect order of queue
-[x] replacements
  -[x] those w/o completion handler
  -[x] basic send+log operation persists
  -[x] send+ui completion
  -[x] share extension
  -[x] update state jobs
-[x] App Lifecyle
  -[x] settable
  -[x] Mark as ready on startup
  -[x] Fail appropriate jobs on startup

NICE TO HAVE
-[x] concurrent per senders
-[ ] longer retry (e.g. 24hrs)
-[ ] App Lifecyle
  -[x] retry failed jobs on startup?
  -[ ] reachability

DONE
-[x] basic passing test
-[x] datamodel
-[x] queue/classes
7 years ago
Matthew Chen ebae75af00 Revert 'new sort id'. 7 years ago
Michael Kirk a60d8eb161 WIP: migration / autoincrement logic
TODO:

-[ ] contact offer
-[ ] verify all paths that utilized timestampForSorting, e.g. make sure SN appear before the message they affect, etc.
-[x] Monotonic ID
-[x] New extension which sorts by id
-[x] Migration
  -[ ] batch migration?
7 years ago
Matthew Chen 3b2c5bfc7b Modify mock environments to register all db views. 7 years ago
Matthew Chen e1db60c1c0 Rework creation of singletons. 7 years ago
Michael Kirk c7662b5a86 Step 2/2 %s/OWSAssert/OWSAssertDebug for existing previous assert semantics
Going forward, we want to prefer safer asserts, but we don't want to blindly
apply crashing asserts across the codebase
7 years ago
Matthew Chen cc5a480baa Apply OWS log functions in Objective-C. 7 years ago
Matthew Chen c0d486b1f1 Apply OWS log functions in Objective-C. 7 years ago
Matthew Chen 3a50377902 Apply OWS log functions in Objective-C. 7 years ago
Matthew Chen 713606271c Rename fail macros in Obj-C. 7 years ago
Matthew Chen 0a7b3537b5 Recreate message database view when message mappings are corrupt. 7 years ago
Michael Kirk c05700fd98 Log in OWSFail
step 1: rename OWSFail->OWSFailNoProdLog
step 2: rename OWSProdLogAndFail->OWSFail
step 3: Convert OWSFailNoProdLog->OWSFail where we want logging
step 4: Rename OWSCFail->OWSCFailNoProdLog
step 5: Rename OWSProdLogAndCFail -> OWSCFail
step 6: Convert OWSCFailNoProdLog -> OWSCFail where we want logging
7 years ago
Michael Kirk 1eb7fc986c YapDB introduced a method purpose built to do what we were approximating.
This seems a little more future proof / less error prone if we change the
registered extensions.
7 years ago
Matthew Chen 158aa3abc4 Tweak system messages; incomplete vs. missed calls. 7 years ago
Matthew Chen f8e785ef72 Merge tag '2.26.0.25' 8 years ago
Michael Kirk a91b6b35e2 update UI DB to latest before showing CVC
// FREEBIE
8 years ago
Michael Kirk b3705196b3 remove unused code/comments 8 years ago
Michael Kirk a9e2834d9f WIP: FTS - rudimentary show results
-[] Backend
  -[] indexes e5.25
    -[x] wire up results: Contacts / Conversations / Messages actual: 3hr
    -[ ] group thread est: actual:
      -[x] group name actual: e.25
      -[ ] group member name: e.25
      -[ ] group member number: e.25
    -[ ] contact thread e.5
      -[ ] name
      -[ ] number
    -[ ] messages e1
      -[ ] content
-[] Frontend e10.75
  -[x] wire up VC's a.5
  -[x] show search results only when search box has content a.25
  -[] show search results: Contact / Conversation / Messages e2
   -[x] wire up matchs
   -[] style contact cell
   -[] style conversation cell
   -[] style messages cell
  -[] tapping thread search result takes you to conversation e1
  -[] tapping message search result takes you to message e1
  -[] show snippet text for matched message e1
  -[] highlight matched text in thread e3
  -[] go to next search result in thread e2
  -[] No Results page
  -[] Hide search unless pulled down
8 years ago
Michael Kirk 00f8ea4ff8 Use a single ui connection to share cache.
Primarly two things:
1. using an extension for the first time per connection is slow
2. fetching the same objects (e.g. if you leave/re-enter the same
conversation)

// FREEBIE
8 years ago
Matthew Chen aa35594ad5 Respond to CR. 8 years ago
Matthew Chen 67f2d6608f Detect and handle corrupt database views. 8 years ago
Matthew Chen 212891c50d Detect and handle corrupt database views. 8 years ago
Matthew Chen 50a59c907d Detect and handle corrupt database views. 8 years ago
Matthew Chen d3b484482c Detect and handle corrupt database views. 8 years ago
Matthew Chen 35ee8c1a0d Rework flush of registration connection(s). 8 years ago
Matthew Chen a264268253 Rework flush of registration connection(s). 8 years ago
Matthew Chen e1138df771 Rework flush of registration connection(s). 8 years ago
Matthew Chen 5bbce14020 Rework flush of registration connection(s). 8 years ago
Matthew Chen 5d627ee89f Rework flush of registration connection(s). 8 years ago
Matthew Chen 4f1f1a107f Rework flush of registration connection(s). 8 years ago
Matthew Chen 9dfc955ee5 Fix flush of registration connections. 8 years ago
Matthew Chen 684614013e Revert "Fix flush of registration connections."
This reverts commit 52b238c499.
8 years ago
Matthew Chen 52b238c499 Fix flush of registration connections. 8 years ago
Matthew Chen d0c691bb7f Lazy attachment restores. 8 years ago
Matthew Chen 1bbd41f725 Improve perf of database snapshots. 8 years ago
Michael Kirk 4ac9a1019b Media page view controller
First pass at a swipe-through media view for conversations.

Future work could include

- title label per item
  - sender name
  - date/time
- photo rail
- include caption

// FREEBIE
8 years ago
Matthew Chen 3f822e8ce3 Complete minimal backup MVP. 8 years ago
Matthew Chen c84bf81cf3 Export database for backup. 8 years ago
Matthew Chen 792be8018f Incremental backup. 8 years ago
Matthew Chen d6f4db1523 Rename TSStorageManager to OWSPrimaryStorage. 8 years ago