Commit Graph

32 Commits

Author SHA1 Message Date
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
Ben Kalman
5e170e1ee2 Rename noms-view to noms-ui, remove serve option, cleanup (#1634) 2016-05-25 11:15:49 -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
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
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
Ben Kalman
0585010274 Return io.Writer errors from WriteEncodedValueWithTags instead of panic (#1526)
A common case for io.Writer errors is during noms-log or noms-show when
piped through head, i.e. "noms log ldb:/path/to:noms | head".

noms-log handles this itself by recovering from the panic, but rather
than porting this logic to noms-show, just make it so that you don't
need to recover in the first place.

This is similar to how errors from fmt.Println etc don't panic.
Non-write errors (like crashes) will continue to panic.
2016-05-18 10:37:35 -07:00
Erik Arvidsson
653aa41776 Go: Dynamic types for Data structure API (#1516) 2016-05-17 15:02:53 -07:00
cmasone-attic
590bc69cbc Go: replace httpBatchStore overall timeout with idle-timeout (#1518)
The old timeout mechanism started counting when the client
began trying to connect to the server. This meant that sending
a large batch of chunks could cause the request to fail before
all the data even made it to the server. What we actually want
is to timeout when the connection has been idle for some amount
of time. This means that long server processing times can still
cause clients to time out, but that's probably as it should be.

Towards #1414
2016-05-17 13:27:09 -07:00
Aaron Boodman
e4540aae9f Add a little description heading to all the noms commands (#1508)
Add a little description heading to all the noms commands
2016-05-16 10:56:26 -07:00
Marina Moore
b3f647d8f6 Introduced noms-serve command 2016-05-13 17:08:59 -07:00
mnm678
c380823ac6 Merge pull request #1467 from mnm678/noms-shove
Introduce noms-sync command
2016-05-13 14:35:57 -07:00
Marina Moore
0d3cdf0aeb Introduced noms-sync and deleted shove 2016-05-13 14:22:36 -07:00
Dan Willhite
cd6bb22b64 Add stdout-is-tty argument to all noms command line utils 2016-05-12 17:34:58 -07:00
Dan Willhite
ee7fd768c8 Provisional noms-log command 2016-05-12 17:04:16 -07:00
Marina Moore
b6cfca2403 Introduce noms-ds command 2016-05-09 15:01:15 -07:00
Erik Arvidsson
e2f7776614 noms show should stream to stdout (#1456) 2016-05-06 18:15:52 -07:00
Erik Arvidsson
014e330315 Rename DataStore to Database (#1448) 2016-05-06 17:37:19 -07:00
Aaron Boodman
8ffcc4f89e Split clients/* into clients/go and clients/js
* clients/counter -> clients/go/counter

* remove last little bit of crunchbase

* clients/csv -> clients/go/csv and other cleanups

* clients/flags -> clients/go/flags

* clients/fs -> clients/js/fs and other cleanups

* clients/json_importer -> clients/go/json-import

* move clients/plotly_bar_chart -> clients/js/bar-chart

* move clients/server -> clients/go/server

* move clients/shove -> clients/go/shove

* move clients/splore -> client/js/splore

* move clients/struct-by-name -> clients/js/struct-by-name

* move clients/test_util -> clients/go/test_util

* move clients/url-fetch -> clients/js/url-fetch

* move clients/util -> clients/go/util

* move clients/xml_importer -> clients/xml
2016-05-05 20:54:01 -07:00
Dan Willhite
3a982c2523 Merge pull request #1428 from willhite/work
Noms command polish.
2016-05-05 14:13:41 -07:00
Dan Willhite
2f37146f78 Noms command polish.
Fixes #1424
2016-05-05 11:51:22 -07:00
Ben Kalman
e7219f3603 Add height to every RefValue (#1415)
This is to support efficient chunk diff. Most of the churn in this patch
comes from updating test expectations, and updating every Ref construction
to include a height and every MetaTuple to include a Ref.
2016-05-05 10:11:05 -07:00
Dan Willhite
014c06bc1c Add paging to noms output. 2016-05-04 16:56:26 -07:00
Dan Willhite
db8dd1ba51 Implement noms command.
Fixes #1152.
2016-05-04 11:59:21 -07:00
Erik Arvidsson
963fbdaad6 Write type with value (#1406)
Write type for all values

Fixes #1308
2016-05-03 16:52:22 -07:00
Dan Willhite
ab3ebf52d3 Implement noms-show. Fixes #1148. 2016-05-02 15:56:41 -07:00
Dan Willhite
49917b6633 Remove -store arg and add flags library. 2016-05-02 10:33:11 -07:00
Chris Masone
8eba180782 Revert "renaming datastore to database (#1374) - fixes bug #1290"
This reverts commit d77902b323.
2016-05-02 09:01:44 -07:00
Mike Gray
d77902b323 renaming datastore to database (#1374) - fixes bug #1290
* datastore -> database
* fixing bug 1290, renaming datastore to database
2016-05-01 22:02:16 -04:00
Chris Masone
7db243745b httpHintedChunkStore uses one big batch
A novel chunk may contain references to any other novel chunk, as long
as there are no cycles. This means that breaking up the stream of
novel chunks being written to the server into batches risks creating
races -- chunks in one batch might reference chunks in another,
meaning that the server would somehow need to be able to
cross-reference batches. This seems super hard, so we've just forced
the code to write in one massive batch upon Commit(). We'll evaluate
the performance of this solution and see what we need to change.

Also, there's a terrible hack in HandleWriteValue to make it so that
pulls can work by back-channeling all their chunks via postRefs/ and
then writing the final Commit object via writeValue/
This can be fixed once we fix issue 822
2016-04-12 18:50:35 -07:00
Ben Kalman
b0b4fc6d00 Implement noms-view and splore-view (a splore compatible with noms-view) (#1194)
* Implement noms-view and make splore compatible

* Comments

* npm test

* Fewer changes to readme/build/etc

* comment in noms_view.go

* More updates

* Typo
2016-04-11 17:57:44 -07:00