Commit Graph

26 Commits

Author SHA1 Message Date
Jordan Rose
3d8d96f532 Make test_messageIsSent less flaky by flushing the global queue
A synchronous barrier block will not run until all prior submitted
items run, and all of the work setting up this test is synchronously
submitted to the global background queue.
2020-09-30 12:53:32 -07:00
Matthew Chen
aea5df3625 Try to fix broken test. 2020-09-17 17:30:38 -03:00
Michelle Linington
1405e46e62 IOS-823: Add description/date to link preview model
Updates the proto definition to add a preview description and date
field. Date and description metadata from fetched content will be sent
over the wire. We can't render it locally yet, but at least this will
allow supporting recipients to display the content.

Also, made some minor changes to HTMLMetadata to better handle article
publish/modified date tags.
2020-09-03 18:19:20 -07:00
Michelle Linington
e63b16a7e0 IOS-822: Support for parsing additional HTML content
This branch makes improvements to how HTML metadata is parsed. Now,
we'll parse other kinds of opengraph tags as well as title, favicon, and
meta description.

This branch also modifies how URL validation is performed. Before,
international URLs were not supported due to NSURL/NSDataDetectors
handling of punycode. Now, there are mechanisms to detect non-ASCII URLs
that have been parsed and validate that they are comprised of the
correct characters.
2020-09-02 14:50:12 -07:00
Nora Trapp
18e19088a5 Fix broken tests 2020-08-28 13:10:47 -07:00
Matthew Chen
40830ee7b0 Add test around URL composition. 2020-08-20 15:40:34 -03:00
Nora Trapp
22f7298654 Fix tests 2020-06-01 13:07:56 -07:00
Matthew Chen
5eb2e99ded Respond to CR. 2020-01-24 17:00:50 -03:00
Matthew Chen
a40b9864a6 Improve thread safety of job queues. 2020-01-24 17:00:50 -03:00
Matthew Chen
891c0cb039 Improve thread safety of job queues. 2020-01-24 17:00:50 -03:00
Matthew Chen
db2dacf45f Fix more tests. 2019-08-21 15:01:13 -03:00
Matthew Chen
0f2a0d01b4 Merge remote-tracking branch 'private/release/2.42.0' 2019-08-21 10:58:41 -03:00
Matthew Chen
aa149f6544 Fix broken tests. 2019-08-21 10:20:07 -03:00
Matthew Chen
013ce2474f Fix test breakage. 2019-08-13 17:33:22 -03:00
Matthew Chen
58eccfe357 Fix test breakage. 2019-08-13 17:03:09 -03:00
Matthew Chen
1e363d2c65 Make uniqueId non-nil. 2019-07-31 10:50:59 -03:00
Michael Kirk
064438f1ca GRDB handles message send errors 2019-06-03 12:14:12 -06:00
Michael Kirk
7ddb20f00c MessageSenderJobQueueTest uses AnyTransactions 2019-05-30 18:28:06 -06:00
Michael Kirk
cd400e2912 convert factories to AnyWrite 2019-05-30 18:28:06 -06:00
Michael Kirk
fa184fd0b0 fixup message sender queue tests 2019-05-14 15:10:02 -06:00
Michael Kirk
662955832d fix jobqueue tests 2019-05-14 09:30:26 -06:00
Michael Kirk
7cba367c0a reconcile jobqueue tests with NSTimer based retry 2018-11-11 11:31:57 -06:00
Michael Kirk
79bed93b2d reconcile jobqueue with new readiness based setup 2018-11-11 11:28:59 -06:00
Michael Kirk
24668fa790 update to reflect id assignment on build 2018-11-11 11:28:59 -06:00
Michael Kirk
b8e4bfff86 shuffle isReady->isSetup, centralize starting workStep 2018-10-25 11:56:39 -06:00
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
2018-10-25 11:54:59 -06:00