Commit Graph

2762 Commits

Author SHA1 Message Date
Chris Masone 4be8107405 Tweak interface/type embedding in databaseCommon
In service of streaming set and map mutators, it'd be helpful for
ValueStore to implement some methods that are exposed only to other
code within the types package, even when a ValueStore is embedded
in a Database. That said, we don't want those methods to become a
part of the public Database API.

To enable this, this patch changes databaseCommon to embed a
*types.ValueStore, instead of composing one. This causes all the
ValueStore methods to be a part of the databaseCommon API, but
since all the Database construction methods return a Database by
interface, stuff like BatchStore() all gets masked. Thus, callers
still can't access ValueStore methods. Databases are passed into
the types package as ValueReadWriters, though, so code in there
can call any method on that interface -- including unexported stuff.
2016-08-10 14:29:11 -07:00
Ben Kalman 630d3a29cc Port AbsolutePath implementation to JS (#2325) 2016-08-10 13:44:08 -07:00
Peter Abrahamsen 33121dc102 Fix type-o in Flickr sample (#2283)
Based on the signature, this is how the copy should read.
2016-08-10 14:16:20 -04:00
Tegan Snyder 25124a12b0 Update csv README.md (#2328) 2016-08-10 12:13:19 -04:00
Ben Kalman f7bf38bbd1 Port path implementation to JS (#2317)
JS had an incomplete implementation, most notably missing: string
parsing, hash # syntax, and support for hash indices.
2016-08-09 17:12:08 -07:00
Mike Gray a812034182 changing csv-import of map to include pk in struct (#2316) 2016-08-09 19:57:11 -04:00
Aaron Boodman daf2ed7a78 Update faq.md 2016-08-09 15:59:40 -07:00
Mike Gray 75ef96bdc7 implement csv-export writing maps of structs (#2322) 2016-08-09 18:31:54 -04:00
Erik Arvidsson da1c278264 JS: Safari 9 support (#2295)
- Lower case header names in fetch function
- fetchUint8Array should return an Uint8Array and not an ArrayBuffer
- Safari does not have slice on typed arrays

Fixes #2265
2016-08-09 13:36:19 -07:00
Adam Leventhal e1fd70c2e3 nomsfs: small fix up for Finder regression (#2318) 2016-08-08 21:40:42 -07:00
Adam Leventhal 8fb43f1ef4 nomsfs: general cleanup (#2309) 2016-08-08 18:08:32 -07:00
Dan Willhite 415121f9ac Merge pull request #2315 from willhite/noms-refactor
Factor our noms Command and Help so they are reusable.
2016-08-08 14:53:28 -07:00
Dan Willhite deb4d2ac0c Factor out noms Command and Help so they are reusable. 2016-08-08 14:08:29 -07:00
Dan Willhite 0374168d15 Merge pull request #2314 from willhite/pager-flag
Allow RegisterOutputFlag to register more than once. Fixes #2312.
2016-08-08 10:17:30 -07:00
Dan Willhite ae37ff405a Allow registerOutputFlag to register more than once. Fixes #2312. 2016-08-08 08:38:30 -07:00
cmasone-attic 65edbaabe3 Allow Dataset HEAD to be set to non-fastforward commits (#2271)
The Dataset.Commit() code pathway still enforces fast-forward-only
behavior, but a new SetHead() method allows the HEAD of a Dataset to
be forced to any other Commit.

noms sync detects the case where the source Commit is not a descendent
of the provided sink Dataset's HEAD and uses the new API to force the
sink to the desired new Commit, printing out the now-abandoned old
HEAD.

Fixes #2240
2016-08-05 15:38:41 -07:00
Ben Kalman fd034f8c81 Simplify Path construction in Go (#2262)
Previously there were 3 ways to construct a Path: via methods like
AddIndex, via parsing/AddPath, and simply via using append() (since Path
is a slice).

This patch deletes the former and leaves only ParsePath and append(),
with the ability to manually create the various path parts (I've made
them public). I also added documentation for the public types/fields.
2016-08-05 15:16:04 -07:00
Aaron Boodman 50b3791e6b Update README.md 2016-08-05 15:14:29 -07:00
Aaron Boodman f9b4dd7c82 Update README.md 2016-08-05 15:14:16 -07:00
Aaron Boodman 9caf0fa130 Update README.md 2016-08-05 15:13:20 -07:00
Aaron Boodman 6fa7457b7d Update README.md 2016-08-05 15:12:58 -07:00
Aaron Boodman 87aff6a9b6 Update README.md 2016-08-05 15:11:46 -07:00
Aaron Boodman 571798df3e Update README.md 2016-08-05 15:11:05 -07:00
Aaron Boodman 018540c944 Update README.md 2016-08-05 15:10:17 -07:00
Aaron Boodman b09978b79c Update README.md 2016-08-05 15:09:42 -07:00
Aaron Boodman fbefdc74c1 Update README.md 2016-08-05 15:08:06 -07:00
Aaron Boodman d2fac5a5c1 Update README.md 2016-08-05 15:07:49 -07:00
Erik Arvidsson 0da3e4411f Splore: Use Struct as label for non named structs (#2291)
If a struct does not have a name we used to have no label for the node.
It looks kind of funky so instead it will use the text "Struct" as the
label.
2016-08-05 15:01:28 -07:00
Ben Kalman e50f773ec6 Use a non-nil ValueReader in sequenceChunker.Done (#2273)
Fixes https://github.com/attic-labs/noms/issues/2220.
2016-08-05 14:22:39 -07:00
Erik Arvidsson 27c687adf3 JS: Partial fix for Safari (#2288)
getAllResponseHeaders may contain empty rows
2016-08-05 14:15:37 -07:00
Rafael Weinstein bf98b4726f Update README.md 2016-08-05 13:54:02 -07:00
Erik Arvidsson 35955c06d9 JS: Fix encoding bugs related to signed varints (#2267)
The library that we were using multiplied (and divided) by 2 to
do the zigzag encoding. However, if we are already close to the
precision limit then we lose precision and the encoding/decoding
does not round trip.

Instead, we split the float64 into two Uint32 numbers and do the
operations on those.

Also, the code that split a float64 into base and exp was not shifting
enough, it was shifting until float64(maxInt64) when we need to shift
until less than max safe int (according to float64)

Fixes #2104
Fixes #2234
2016-08-05 11:45:29 -07:00
Erik Arvidsson 6b6c409d16 Splore Blobs and more (#2279)
- Display the prolly-tree for Blobs
- Fix fallout from sha1-xxx to xxxx
- Make the hashes links to splore rooted at that hash

Fixes #2218
Fixes #1321
2016-08-05 11:41:33 -07:00
Mike Gray 8c5de64bda adding readme for nomsfs (#2280) 2016-08-05 10:55:42 -07:00
Ben Kalman b9d53a82b4 Remove 2nd slack badge from README.md (#2286) 2016-08-05 10:33:53 -07:00
Ben Kalman c386725d4e Fix struct diff (#2281)
It inverted the added/removed order.
Fixes https://github.com/attic-labs/noms/issues/2278.
2016-08-04 16:11:11 -07:00
Aaron Boodman eefd79d1a0 Update README.md 2016-08-04 15:07:00 -07:00
Aaron Boodman 4ec02b267d Update README.md 2016-08-04 15:05:32 -07:00
Aaron Boodman a417e55c5f Update README.md 2016-08-04 15:04:32 -07:00
Aaron Boodman 9d8aa213e9 Update README.md 2016-08-04 15:03:39 -07:00
Ben Kalman 073ceadf00 Add slack badge to top of readme (#2275) 2016-08-04 14:57:47 -07:00
Benjamin Kalman 31790e8f37 Bump JS to v56.2.0 to pick up img change 2016-08-04 14:47:39 -07:00
Ben Kalman 0ed95244a5 Fix image in JS (#2277) 2016-08-04 14:45:46 -07:00
cmasone-attic b89aa7dda0 Merge pull request #2261 from cmasone-attic/dataset_cleanup
Dataset cleanup
2016-08-04 10:05:31 -07:00
cmasone-attic c3a3d11e2c Merge pull request #2268 from cmasone-attic/commentfix
Comment fix: RefCommit -> Ref<Commit>
2016-08-04 09:41:35 -07:00
Chris Masone 26211aadd5 Comment fix: RefCommit -> Ref<Commit> 2016-08-04 09:37:48 -07:00
cmasone-attic 4ccaa7014a Rate-limit LevelDBStore read operations as well (#2239)
Under load, our server can exhaust the number of file descriptors it's
allowed to have open at one time. Part of this is because of how many
incoming connections it's handling, but we believe that handling lots
of simultaneous reads to leveldb is the larger part of the issue.

This patch applies the rate limit we were using for writing to both
read and write operations.

Fixes #2227
2016-08-04 09:35:35 -07:00
Ben Kalman 1116a05792 Fix Splore node labels in Firefox (#2264) 2016-08-03 22:54:03 -07:00
Aaron Boodman 5950eac64c Update faq.md 2016-08-03 22:11:55 -07:00
Surya Gaddipati 3f9d85359a Fix command line flag (#2266) 2016-08-03 18:32:33 -07:00