Tim Anglade
255a32bf13
Minor tweaks.
2016-02-18 13:41:22 -08:00
Scott Kyle
5332131c14
Add sorted() method to List
2016-02-18 13:41:11 -08:00
Scott Kyle
d847fbceb1
Further improve argument checking for sorted()
2016-02-18 12:55:54 -08:00
Scott Kyle
bd766297ef
Improve error message in sorted() method
2016-02-18 12:50:44 -08:00
Scott Kyle
05d84b23a2
Change sortedBy API as discussed
...
If provided an array, then each member can optionally be an array of [propName, reverse]
2016-02-18 12:47:18 -08:00
Scott Kyle
76865d0da4
Allow sortedBy to accept array of properties
...
It now optionally accepts an array of properties for both parameters and the tests have been updated to reflect new capabilities.
2016-02-18 11:58:39 -08:00
Scott Kyle
249bcd8f3f
Change sortByProperty to return new Results
...
The method name changed to sortedBy to reflect that it returns a new Results object and to be more succinct. Also, the second optional argument instead reflects descending (or rather, reverse) since it's an anti-pattern to have an optional argument default to true in JS, and this also follows precedences set by other JS libraries and by Python's sorted function.
2016-02-18 11:58:39 -08:00
Scott Kyle
b34e52b290
The schema property should be directly on constructor
...
The constructor is now also called with `this` set as the constructed object.
Fixes #232
2016-02-18 11:10:02 -08:00
Ari Lazier
c39c62d0db
example fix
2016-02-17 21:34:41 -08:00
Ari Lazier
d70de00923
Merge pull request #254 from realm/al-filtered
...
Add filtered method to List and Results
2016-02-17 21:32:28 -08:00
Ari Lazier
eb43699d41
fix for examples
2016-02-17 21:23:43 -08:00
Ari Lazier
b3486c0d0e
final fixes
2016-02-17 20:51:03 -08:00
Ari Lazier
1d01a1db73
don't copy query unnecessarily
2016-02-17 20:48:27 -08:00
Ari Lazier
e578b05058
pr feedback
2016-02-17 20:39:29 -08:00
Scott Kyle
8dcdc1301f
Add some instructions to build the project
2016-02-17 20:27:29 -08:00
Ari Lazier
6374a04ed4
chrome support for filtered
2016-02-17 20:27:10 -08:00
Ari Lazier
6d02614eaa
add List.filtered
2016-02-17 20:24:08 -08:00
Ari Lazier
d838d61de4
test query refinement
2016-02-17 20:09:39 -08:00
Ari Lazier
e91ef42ebb
add filtered method
2016-02-17 20:06:42 -08:00
Scott Kyle
6f449b2c66
Fix some typos and wording issues in README
2016-02-17 18:19:35 -08:00
Scott Kyle
0f01c413ab
Merge pull request #252 from realm/sk-react-native-20
...
Update everything to use React Native 0.20.0
2016-02-17 18:02:34 -08:00
Scott Kyle
1b043eb957
Update everything to use React Native 0.20.0
2016-02-17 14:36:58 -08:00
Ari Lazier
98951f52ac
Merge pull request #244 from realm/al-benchmarks
...
Benchmarks
2016-02-17 13:15:47 -08:00
Ari Lazier
d9abcf0bc2
Merge pull request #199 from realm/sk-listview
...
Efficient React ListView for Realm collections
2016-02-17 13:13:33 -08:00
Nabil Hachicha
7d7cd87fb3
using RN 0.19.+ as a Gradle dep
2016-02-17 20:21:48 +00:00
Ari Lazier
5e9c0c12d2
properly load sqlite module
2016-02-17 11:55:27 -08:00
Thomas Goyne
87655793b7
Merge pull request #40 from realm/tg/list
...
Wrap more of LinkView in List
2016-02-16 17:35:58 -08:00
Ari Lazier
66ac82bb34
reduce query results size
2016-02-16 13:15:50 -08:00
Ari Lazier
a77a72ee49
remove of
2016-02-16 12:50:01 -08:00
Ari Lazier
b1fd7abe74
more keyword tests
2016-02-16 12:19:26 -08:00
Ari Lazier
c57eb99eb2
test query with not as a property name
2016-02-16 12:10:50 -08:00
Ari Lazier
48510805d7
test contains can be used as a property name in the parser
2016-02-16 11:56:29 -08:00
Thomas Goyne
7c350031d6
Merge pull request #37 from realm/tg/index-set-tests
...
Add IndexSet tests
2016-02-16 10:07:11 -08:00
Thomas Goyne
f5ae1bdf80
Merge pull request #39 from realm/tg/validate-schema-changes
...
Handle allowed schema changes in the transaction log observer
2016-02-16 10:07:01 -08:00
Ari Lazier
84272c467e
newer react native and dont repeat by default
2016-02-16 07:25:16 -08:00
Scott Kyle
c01c0faa7b
Update test script to actually test ReactExample
2016-02-16 00:37:10 -08:00
Ari Lazier
6fefef725a
change number of query results, do fewer insersions because they are slow
2016-02-15 21:52:02 -08:00
Scott Kyle
137e4d6288
Increase React test timeout interval for CI
2016-02-15 19:23:59 -08:00
Ari Lazier
8b41b0a6d0
cast rns date to int for storage
2016-02-15 17:52:40 -08:00
Ari Lazier
f34958ebae
use batch count for enumeration
2016-02-15 17:43:43 -08:00
Ari Lazier
2e2e7717b9
add checks for object counts, only clear objects when needed
2016-02-15 17:42:05 -08:00
Scott Kyle
3c653caa23
Merge pull request #228 from realm/sk-docs
...
API documentation
2016-02-15 17:08:18 -08:00
Scott Kyle
5f9f00e038
Make ListViewDataSource test go quicker
2016-02-15 16:56:39 -08:00
Ari Lazier
9de2fa8726
don't return the wrong thing
2016-02-15 16:52:10 -08:00
Ari Lazier
c4fc31fea3
assert the proper number of objects are processed in each test
2016-02-15 16:49:53 -08:00
Ari Lazier
a99bf349a7
use test objects and 'of' for realm tests
2016-02-15 16:14:09 -08:00
Scott Kyle
c64524f985
Test that example app loads properly
...
Re-using the existing React testing class to hook into the example app. Right now, the test is extremely basic but is able to be expanded later.
Resolves #36
2016-02-15 15:47:07 -08:00
Scott Kyle
2bdb6bfa28
Convert Example app to use ES6 import syntax
2016-02-15 15:40:55 -08:00
Ari Lazier
36c1ae1f8e
remove autogenerated garbage
2016-02-15 15:33:41 -08:00
Ari Lazier
5f49837841
remove autogenerated stuff
2016-02-15 15:31:24 -08:00