Commit Graph

2219 Commits

Author SHA1 Message Date
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
Erik Arvidsson 8865b1e741 Merge pull request #1609 from arv/csv-importer-field-names
Limit struct field names to ascii identifiers

Towards #1402
2016-05-23 16:56:32 -07:00
Erik Arvidsson a84ecf41eb Fix code review issues 2016-05-23 16:51:45 -07:00
Erik Arvidsson 48b9256202 Limit struct field names to ascii identifiers
This is a revert of the previous revert e832dbbdb1.

Towards #1402
2016-05-23 16:50:41 -07:00
Erik Arvidsson 9e951197d0 Update csv importer to normalize header names 2016-05-23 16:50:41 -07:00
Aaron Boodman 77de0b0e54 Introduce js/json-convert.js (#1601) 2016-05-23 15:07:35 -07:00
Ben Kalman 56c7f44aa9 Make JS walk() return value mean "skip" not "recurse" (#1604)
This is consistent with Go Walk(), and it's arguably less surprising
than returning undefined implies false.
2016-05-23 14:32:45 -07:00
Erik Arvidsson 9d700af983 Merge pull request #1603 from arv/nodejs-version
Declare NodeJS version dependency for NOMS
2016-05-23 14:01:39 -07:00
cmasone-attic e3a4c1bf3f Rename metaSequenceObject::ChildHash back to ChildRef (#1599)
This method returns a types.Ref, so ChildRef is the right name.
Also, delete metaSequenceObject::ChildValues, since it isn't and
shouldn't ever be called.
2016-05-23 13:55:47 -07:00
Erik Arvidsson 6aa35802e8 Declare NodeJS version dependency for NOMS
Fixes #1057
2016-05-23 13:51:53 -07:00
Rafael Weinstein 72a9ab8123 Enable Snappy Compression in LevelDB Store (#1587) 2016-05-22 11:13:54 -07:00
Rafael Weinstein eeef780c72 getRef/EnsureRef -> getHash/EnsureHash (#1585) 2016-05-21 13:29:06 -07:00
Rafael Weinstein 4e9e43c27e Cleanup misrenamed symbols (#1584) 2016-05-21 13:02:39 -07:00
Rafael Weinstein d1e2aa01f3 Go: ref.Ref -> hash.Hash (#1583)
ref.Ref -> hash.Hash
2016-05-21 11:38:35 -07:00
Rafael Weinstein 335b52e0c6 Remove ref.FromHash (#1582) 2016-05-21 10:43:59 -07:00
Erik Arvidsson 40e98928ad Merge pull request #1574 from arv/ref-to-hash
Ref to hash
2016-05-20 19:24:14 -07:00
Erik Arvidsson 859eca4650 Increment JS version 2016-05-20 19:18:32 -07:00
Erik Arvidsson 3ae55e01ec JS: Rename RefValue to Ref 2016-05-20 19:18:32 -07:00
Erik Arvidsson 7d8eea4a07 JS: Rename Ref to Hash 2016-05-20 19:18:32 -07:00
Mike Gray 214c76687b porting edit-distance and tests from js to go (#1559) 2016-05-20 20:43:56 -04:00
Ben Kalman c97c9ac78b Export makeUnionType in noms.js (#1567) 2016-05-20 16:44:06 -07:00
Erik Arvidsson c6fa8b1029 Rename valueOrPrimite to Value (#1566)
This renames Value to ValueBase, valueOrPrimite to Value and make Value the default export.

Fixes #1528
2016-05-20 16:39:30 -07:00
Erik Arvidsson da8242b500 Travis: Skip cleanup? (#1565) 2016-05-20 15:23:08 -07:00
Ben Kalman 01a50e9541 Change the async "newList" and friends to sync "new List" constructors (#1554)
Friends: List, Set, Map, Blob, and Commit. This lets us remove a lot of
Promise and async/await bloat.
2016-05-20 15:01:55 -07:00
Rafael Weinstein 67106ca69e Maps/Sets cleanup (#1553)
Map/Set Cleanup
2016-05-20 12:43:30 -07:00
cmasone-attic dc07bca3d4 Merge pull request #1555 from cmasone-attic/dbcleanup
JS: make sure we call close() on Database most of the time
2016-05-20 08:18:53 -07:00
Mike Gray ade84de2da implementing map/set/orderedSequence diff (#1521)
resolving a portion of issue #1075
2016-05-20 09:20:01 -04:00
Chris Masone 917a4d8564 JS: make sure we call close() on Database most of the time
Other than DatasetSpec::value(), this should close all Database
instances that we create. I'm not sure how to deal with that one
case, though.
2016-05-19 16:49:54 -07:00
Rafael Weinstein 0e87d9f409 goPath (#1546)
Implement Go Path
2016-05-19 13:56:18 -07:00
Erik Arvidsson cd64ee5047 Update clients to 32.2 (#1545)
This updates the clients to use Foo instead of NomsFoo
2016-05-19 11:38:00 -07:00
Rafael Weinstein 4389605e47 Struct diff (#1548)
StructDiff
2016-05-19 11:09:26 -07:00
Mike Gray b911e7bc08 updating to go 1.6 (#1549) 2016-05-19 13:55:55 -04:00
Erik Arvidsson f653a20511 Make Splore Great Again! (#1541) 2016-05-18 17:57:57 -07:00
Ben Kalman 7f56776a8b Add dist back to .flowconfig (#1544) 2016-05-18 17:51:56 -07:00