Commit Graph

2252 Commits

Author SHA1 Message Date
Aaron Boodman 032a3daee5 Add tools/licensify.py 2016-05-30 14:32:22 -07:00
Ben Kalman b79f5b0a04 Implement JS BlobReader.seek (#1673) 2016-05-27 18:39:59 -07:00
Dan Willhite e92267e232 Merge pull request #1670 from willhite/json
Make json-import map object to nomsStruct rather than nomsMaps.
2016-05-27 16:33:38 -07:00
Dan Willhite fb59049262 Make json-import map object to nomsStruct rather than nomsMaps. 2016-05-27 16:28:09 -07:00
Erik Arvidsson dbd4c572df Add ListBuilder (#1669)
A ListBuilder allows creating large lists efficiently
2016-05-27 14:49:22 -07:00
Aaron Boodman db9bb15786 Remove es6 support from js sdk (#1668)
We're not using it, and it just makes compiles slower
2016-05-27 14:08:48 -07:00
Aaron Boodman 18838b7c2a js sdk: expose type.describe() for convenience (#1667) 2016-05-27 14:08:34 -07:00
cmasone-attic 8eb6167976 JS: Fix collection forEach (#1666)
In JS, the forEach() method didn't correctly handle async
callbacks for processing collection items. Now, if the
callback returns a Promise, it'll be properly waited for.
2016-05-27 13:17:31 -07:00
Erik Arvidsson 2ed89f0c07 JS CSV import client (#1665) 2016-05-27 13:17:02 -07:00
Erik Arvidsson f52a062f81 Increment version (#1664) 2016-05-27 11:24:16 -07:00
Erik Arvidsson 7f034dfa9e Fix style error after #1657 (#1663) 2016-05-27 11:22:38 -07:00
Aaron Boodman 85d81f5268 Fix perf bug in js commit path (#1657) 2016-05-27 11:19:58 -07:00
Ben Kalman 9ccc3fcf8c Println --> Printf (#1659) 2016-05-27 10:43:47 -07:00
Ben Kalman 5792f901c6 Use native browser fetch if available (#1655) 2016-05-27 10:40:20 -07:00
Erik Arvidsson d2880c5d2a Export escapeStructField (#1654) 2016-05-26 17:01:54 -07:00
Aaron Boodman 838ce7c732 Update fs to work with latest noms sdk (#1650) 2016-05-26 13:55:02 -07:00
Erik Arvidsson 81bdd3eed5 Cleanup encodeTopLevelBlob (#1638)
Cleanup after #1636
2016-05-26 13:42:09 -07:00
Ben Kalman f608246c21 Remove duplicate entries in noms -help (#1644) 2016-05-26 13:34:13 -07:00
cmasone-attic abcbe580d2 Go: Make ValidatingBatchSink read Values during validation (#1646)
In order to ensure that pulling works without requiring extensive
Hint gymnastics on the client, we're willing to relax our server-side
requirement that every writeValue request contain all information
needed to complete validation. Now, in the event that the validation
code encounters a Ref that's not in its validation cache, it'll just
go ReadValue() it and soldier on.

Toward #1568
2016-05-26 11:42:52 -07:00
cmasone-attic 6ca85d6b7d Merge pull request #1645 from cmasone-attic/short
Go: Skip some Diff tests when running in 'short' mode
2016-05-26 08:40:18 -07:00
Chris Masone b3d51e26d3 Go: Skip some Diff tests when running in 'short' mode
Some Diff tests take 2 or 3 seconds to run, which is about as long as
all the short tests combined. So, skip them when running with the -short
test flag.
2016-05-26 08:28:09 -07:00
Aaron Boodman 6b2c1e9b05 Pass correct database to walk() in flickr and fb photo finders. (#1643) 2016-05-25 20:30:25 -07:00
Dan Willhite 00d92ce5cd Merge pull request #1635 from willhite/js
Forward all query parameters when calling remote server api.
2016-05-25 17:41:15 -07:00
Dan Willhite e271576f06 Forward all query parameters when calling remote server api. 2016-05-25 17:34:49 -07:00
Aaron Boodman 391acb9b84 Introduce clients/js/fb (#1632) 2016-05-25 16:00:31 -07:00
Aaron Boodman 4609c95ebf flickr/find-photos: only add geoposition if there is one (#1640)
I tried doing the null/undefined geoposition thing, but it doesn't work because Struct() knows that the fields must be non-null.

i wonder if we should change StructData to allow null/undef fields, and just skip those.

@arv?
2016-05-25 15:47:03 -07:00
Mike Gray 1e8d3b854f add equalsAt for indexedSequence 2016-05-25 15:26:20 -07:00
Ben Kalman ca5c8dfd97 Make cmd/noms look in $GOPATH for noms executables (#1626) 2016-05-25 15:11:37 -07:00
Ben Kalman 6187e76325 Replace stretchr/testify with attic-labs/testify (#1637)
This removes the httptest flag in usage for every command.
2016-05-25 13:13:55 -07:00
Erik Arvidsson 74b57005b9 Make encodeTopLevelBlob more efficient (#1636)
This removes a deopt
2016-05-25 11:28:19 -07:00
Ben Kalman 5e170e1ee2 Rename noms-view to noms-ui, remove serve option, cleanup (#1634) 2016-05-25 11:15:49 -07:00
Erik Arvidsson 998b7a9df0 Update flow to 0.25 (#1619) 2016-05-25 10:30:17 -07:00
Erik Arvidsson d1bfa30108 JS: Cleanup newTFromSequence (#1630) 2016-05-25 09:37:48 -07:00
Erik Arvidsson 0a3a5e72f2 Chunks and value instances can never be of type/kind Value (#1628) 2016-05-25 09:26:55 -07:00
Dan Willhite ed7d9629b8 Merge pull request #1624 from willhite/js
Enable database authorization on JS dataspecs.
2016-05-24 17:54:48 -07:00
Dan Willhite 0a2dd97d4a Enable database authorization on JS dataspecs.
Accomplished by forwarding query params specified on database spec to
remote server api.
Fixes #1595
2016-05-24 17:47:46 -07:00
Aaron Boodman 75aebbf61c Update flickr to newest version of noms sdk (#1602) 2016-05-24 17:38:51 -07:00
cmasone-attic 8dfbe399a3 When decoding a Chunk, re-use the hash in the decoded Value (#1616)
This should mean that we calculate the hash of read Values only one,
when pulling the chunk out of storage. It means we need to be careful
about making sure that we actually do calculate hashes of chunks we
read, or that we get the hash from a trusted place.
2016-05-24 17:16:16 -07:00
Aaron Boodman 68b1b88a69 js/json-convert: encode field names (#1620) 2016-05-24 16:47:22 -07:00
Ben Kalman 0c4ab7f8eb Change Promise detection in walk so that node 5 works (#1625) 2016-05-24 16:35:33 -07:00
Mike Gray 61848137ad increasing the mocha timeout so travis builds fail less (#1622) 2016-05-24 14:49:31 -07:00
Ben Kalman 66d770f976 Rename splore 'store' param to 'db' (#1618) 2016-05-24 14:47:21 -07:00
Mike Gray cfb2725323 implement indexedSequence and list diff for Go (#1613) 2016-05-24 14:18:51 -07:00
Aaron Boodman 43d991495c noms/js: export isSubtype (#1617) 2016-05-24 11:55:19 -07:00
Ben Kalman e34551cd54 Standardise database/dataset accessors as database() and dataset() (#1607)
In JS they are either set() or store(). In Go they are either Dataset()
Store(), or Database().
2016-05-24 10:25:16 -07:00
Erik Arvidsson 67c43db4de Add BABEL_ENV to clients/js/url_fetch (#1614) 2016-05-24 09:54:30 -07:00
Aaron Boodman 8fc7a9b223 Add more hash functions to clients/go/hash-perf-rig (#1598)
* go/hash-perf-rig: add sha256 and sha512 support

* go/hash-perf-rig: add blake2b
2016-05-23 18:17:10 -07:00
Erik Arvidsson d8c7936e8d Restrict names of structs (#1612)
Struct names must be of the form `^[a-zA-Z][a-zA-Z0-9_]*$`

Fixes #1402
2016-05-23 18:11:26 -07:00
Ben Kalman 5b8462f3d6 Update non-Flickr clients to noms v37.0.0 (#1606)
Major changes:
* async newList() --> sync new List()
* rename ref --> hash
* better types
* walk() return type changed
2016-05-23 17:46:41 -07:00
Erik Arvidsson eb0e960e3c Restrict dataset ID names (#1611)
A dataset must be of the form `^[a-zA-Z0-9\-_/]+$`

Towards #1402
2016-05-23 17:45:10 -07:00