Erik Arvidsson
984fef226f
Change dataset CommitWithParents to Commit with options ( #2095 )
...
The new API is `ds.Commit(value, CommitOptions{Parents: p})`
Related to #2012
2016-07-19 14:30:59 -07:00
Ben Kalman
f52844e2b6
Parallelise ordered diff left/right initial fetches, other improvements ( #2092 )
...
I also changed the ordered diff test to test both the edit-distance and
streaming versions of the algorithm.
2016-07-18 17:21:29 -07:00
Erik Arvidsson
7231ce268f
Merge pull request #2075 from arv/new-commit-type
...
Compute commit type based on value and parents
2016-07-18 14:39:12 -07:00
Ben Kalman
dfc73cb332
Add loadtest.go script ( #2090 )
2016-07-18 14:32:30 -07:00
Erik Arvidsson
d24dda5e0c
JS: Compute commit type based on value and parents
...
We now compute the commit type based on the type of the value and
the type of the parents.
For the first commit we get:
```
struct Commit {
parents: Set<Ref<Cycle<0>>>,
value: T,
}
```
As long as we continue to commit values with type T that type stays
the same.
When we later commits a value of type U we get:
```
struct Commit {
parents: Set<Ref<struct Commit {
parents: Set<Ref<Cycle<0>>>,
value: T | U
}>>,
value: U,
}
```
The new type gets combined as a union type for the value of the inner
commit struct.
Fixes #1495
2016-07-18 14:29:07 -07:00
Erik Arvidsson
e2f261b142
Go: Compute commit type based on value and parents
...
We now compute the commit type based on the type of the value and
the type of the parents.
For the first commit we get:
```
struct Commit {
parents: Set<Ref<Cycle<0>>>,
value: T,
}
```
As long as we continue to commit values with type T that type stays
the same.
When we later commits a value of type U we get:
```
struct Commit {
parents: Set<Ref<struct Commit {
parents: Set<Ref<Cycle<0>>>,
value: T | U
}>>,
value: U,
}
```
The new type gets combined as a union type for the value of the inner
commit struct.
Fixes #1495
2016-07-18 14:28:56 -07:00
Erik Arvidsson
6ffe591329
Go: Change NewCommit API to take value and parents
...
This is in preparation for computing the commit type when it is
created and to do that we need to have the value and the parents.
2016-07-18 14:17:34 -07:00
Rafael Weinstein
2474a658a2
Better debug info ( #2087 )
2016-07-18 11:20:48 -07:00
Erik Arvidsson
229c1708a2
Noms is a not a tool for *iterating* with Noms data ( #2078 )
...
Fixes #2051
2016-07-18 10:18:36 -07:00
mgedigian
e3a891bed7
Prevent sync crash when source is invalid ( #2002 )
...
* When sync source is not a valid object, report error without crashing.
Fixes #1983
2016-07-17 17:31:25 -07:00
Aaron Boodman
b968b27b93
Make clear samples/go/url-fetch supports local files ( #2055 )
2016-07-15 14:43:27 -07:00
Ben Kalman
534faa6b6d
exit noms as soon as less quits, not when stdout closes ( #2068 )
2016-07-15 10:10:57 -07:00
Ben Kalman
be463555f6
Add noms log -oneline option ( #2067 )
2016-07-14 16:58:16 -07:00
Rafael Weinstein
df6bcf8111
remove codec-perf-rig binary ( #2063 )
2016-07-14 15:14:06 -07:00
Erik Arvidsson
455ed05251
Update hash.go ( #2061 )
2016-07-14 14:12:34 -07:00
Erik Arvidsson
1cfa818c07
JS: Fix isSubtype for unions with cycles ( #2060 )
...
This is the JS part of #2007
This exposed bugs in resolve/unresolve types and these were fixed
by making the code more similar to go.
Fixes #2015
2016-07-14 13:37:37 -07:00
Aaron Boodman
e46e93c663
Limit amount of blob read to service noms log ( #2056 )
...
Fixes #2052
2016-07-14 00:51:43 -07:00
Aaron Boodman
3d39d2b713
Add -skip-lines flag to csv-import ( #2050 )
2016-07-13 17:18:07 -07:00
Ben Kalman
d992b1c352
More informative url-fetch error checking ( #2049 )
2016-07-13 16:36:04 -07:00
Rafael Weinstein
7854e7cb6f
Ensure all bytes comsumed on decode ( #2048 )
2016-07-13 15:30:30 -07:00
Rafael Weinstein
890433e864
Reland js type cache ( #2032 )
...
Reland js type cache (#2032 )
2016-07-13 15:23:23 -07:00
Mike Gray
3722306c6c
adding build status ( #2039 )
2016-07-13 14:12:32 -07:00
Erik Arvidsson
a92d8ffb21
GoDoc for Hash ( #2038 )
...
The comment should go with the package to get picked up by godoc
2016-07-13 11:49:23 -07:00
Mike Gray
4dd9415a1a
orderedSequenceDiff more like indexedSequenceDiff - parallel ( #1961 )
...
orderedSequenceDiff more like indexedSequenceDiff - parallel and working top-down rather than sequential
2016-07-12 17:57:26 -07:00
Dan Willhite
d811fc1aac
Merge pull request #1904 from willhite/work
...
Add CORS code to demo-server and noms-serve.
2016-07-12 16:42:07 -07:00
Rafael Weinstein
ad556b0f0f
Fix Cyclic Union Types ( #2030 )
...
Fix Cyclic Union Types
2016-07-12 16:36:58 -07:00
Dan Willhite
ff5876349a
Add CORS code to demo-server and noms-serve.
...
This is necessary to handle x-noms-vers header from browsers.
Adds x-noms-vers header to all responses from demo-server and 'noms serve'.
Fixes #1984 . Fixes #1991 .
2016-07-12 16:25:21 -07:00
Ben Kalman
533c1c3213
Add slackin badge and correct slack link ( #2029 )
2016-07-12 16:12:20 -07:00
Erik Arvidsson
b830762f49
Fix some copyright headers ( #2026 )
2016-07-12 16:02:32 -07:00
Erik Arvidsson
1a713a40ab
Remove more accidentally added temp files ( #2025 )
2016-07-12 15:19:33 -07:00
Erik Arvidsson
e95f839a6e
Merge pull request #2024 from arv/remove-temp-file
...
Remove js/rebase-shas.js
2016-07-12 15:15:43 -07:00
Erik Arvidsson
500b3c1301
Remove js/rebase-shas.js
...
This was accidentally added in a previous commit
2016-07-12 15:14:24 -07:00
Erik Arvidsson
a46ec596d7
Merge pull request #2022 from arv/sha512
...
Change hash function to first 20 bytes of Sha512 and the human-encoding of the hash to base32
2016-07-12 14:07:58 -07:00
Erik Arvidsson
f2a83346ca
JS: Change hash function to sha512
...
For browser support we use npm amscrypto.js-sha512. For node we use its
builtin crypto module.
2016-07-12 13:59:09 -07:00
Erik Arvidsson
454a7d5b48
JS: Add base32 support library
...
Our base32 uses 0-9a-v with no padding. The length is hard coded to
use the first 20 bytes (and therefire ends up being 32 characters)
2016-07-12 13:59:09 -07:00
Erik Arvidsson
15ecbeaa2f
JS: Add third party base32 library
2016-07-12 13:59:09 -07:00
Erik Arvidsson
1507b8dd8f
Go: Change hash function to sha512
2016-07-12 13:59:08 -07:00
Erik Arvidsson
c0bc00dee0
Go: Add base32 support library
...
Our base32 uses 0-9a-v with no padding. The length is hard coded to
20 bytes (and 32 characters)
2016-07-12 13:59:08 -07:00
Erik Arvidsson
777b598631
Integration tests: Print errors to stderr ( #2023 )
2016-07-12 12:13:34 -07:00
Mike Gray
7c9ad898de
use column-type from original csv file column order ( #2013 )
...
* use column-type from original csv file column order, not the one after map/struct field name reordering
* use column-type from original csv file column order (part 2)
2016-07-12 11:33:01 -07:00
Rafael Weinstein
83ffde7d9b
Merge pull request #2021 from rafael-atticlabs/revertJSTypeCache
...
Revert js type cache
2016-07-11 18:38:26 -07:00
Rafael Weinstein
8a5f3853b7
Revert "Js type cache ( #2011 )"
...
This reverts commit 4e10ae63f4 .
2016-07-11 18:36:17 -07:00
Rafael Weinstein
48ab930ed2
Revert "Ensure all bytes consumed on decode ( #2019 )"
...
This reverts commit cd45787a91 .
2016-07-11 18:36:01 -07:00
Rafael Weinstein
cd45787a91
Ensure all bytes consumed on decode ( #2019 )
...
Ensure all bytes consumed on decode
2016-07-11 18:08:51 -07:00
Rafael Weinstein
dea37ba37b
remove dead code ( #2017 )
2016-07-11 17:14:12 -07:00
Rafael Weinstein
94a27139c7
bump noms npm version & update codec-perf-rig numbers ( #2016 )
2016-07-11 16:54:12 -07:00
Rafael Weinstein
4e10ae63f4
Js type cache ( #2011 )
...
Js type cache
2016-07-11 16:45:35 -07:00
Erik Arvidsson
5483383acc
Make isSubtype work with unions with cycle ( #2007 )
...
This is #2001 with some more tests
Previously, we ended up i-looping because we were not correctly
checking for cycles as we descended into union types.
Related to #1495
2016-07-11 14:54:40 -07:00
Mike Gray
b6f19dfea5
number encoding ( #1845 )
...
Moved to encoding Values of type Number as 2 varints.
2016-07-11 12:08:56 -07:00
Erik Arvidsson
abff0f247f
Make go test ./... and go build ./... work with integration tests ( #2005 )
...
For go build we need a dummy go file or go build fails
For go test we now make sure we run npm install so that the test
passes
2016-07-11 11:01:51 -07:00