Commit Graph

313 Commits

Author SHA1 Message Date
Erik Arvidsson 7697317c69 Use POST for GraphQL endpoint (#3245)
We were using GET and the query was getting too large
2017-03-02 18:08:15 -08:00
Jesse Ditson c42056b15d Remove implicit directory creation when creating a local db (#3235)
Remove implicit directory creation when creating a local db

- remove Mkdir from NewLocalStore and NewLocalStoreFactory
- add specific error messages for directory does not exist and path is not a directory
- add tests for missing directory and path not directory

fixes: #3222
2017-03-01 13:29:09 -08:00
Erik Arvidsson 9d3a972973 GraphQL: Add support for key and through (#3233)
If key is provided as an argument to a Map/Set elements that defines
where the collection should start iterating from.

If through is provided the iteration will end after visiting through
(or if the key is larger than through)

If both key and at are present, at is ignored.

If key is present but count and through are missing then we use a count
of 1.

Closes #3227
2017-02-28 13:48:22 -08:00
Ben Kalman 88c24324e4 Upgrade all extra JS and samples to Flow 0.39 (#3211) 2017-02-21 17:14:22 -08:00
Aaron Boodman 4eaa0ba353 Remove Spec.DatasetName and Spec.Spec (#3102)
Remove Spec.DatasetName and Spec.Spec.

They were duplicating state that already existed elsewhere and easily
got out of sync.
2017-02-21 11:26:12 -08:00
cmasone-attic 5025a45b0b Remove usages of LevelDBStore (#3190)
NBS is stable enough that we've made it the default store for command
line tools, and the go-to store for tests that require temporary, but
persistent, storage.

We intend to remove support for LevelDB-backed chunk storage
completely ASAP. This patch removes all usage of LevelDBStore from
noms.git, but doesn't remove LevelDBStore _just_ yet as there are
still some dependencies on it elsewhere.

Toward #3127
2017-02-14 19:49:23 -08:00
zcstarr 1898f2a588 Fix graphql css reference (#3188) 2017-02-13 11:31:17 -08:00
Sungguk Lim 3e0056a5fa Fix nitty typo from counter sample README. (#3187)
Delimiter should be `::` instead of `:`.
2017-02-13 10:05:23 -08:00
zcstarr 3f973f593d Fix staging folder to correspond to build folder (#3185) 2017-02-13 09:33:57 -08:00
Rafael Weinstein abfaf36ae7 fix typo (#3171) 2017-02-10 13:41:16 -08:00
Rafael Weinstein 140de8081c Add config prompt to graphql ui (#3167) 2017-02-09 20:51:24 -08:00
Rafael Weinstein 128207786a fix auth header (#3162) 2017-02-08 12:24:40 -08:00
Rafael Weinstein 487e2c9b30 GraphQL cleanup (#3154) 2017-02-07 12:08:52 -08:00
Erik Arvidsson 27c539ebd4 Update to use eslint-config-noms@1.2.0 (#3151) 2017-02-07 09:57:27 -08:00
Rafael Weinstein fff532beb3 Add experimental graphql support (#3146)
Included README.md describes initial features.

This patch includes a simple graphiql ui which is preconfigured to explore a noms/graphql endpoint
2017-02-06 19:28:54 -08:00
Mike Gray 466cab880f Remove unused samples (#3150) 2017-02-06 18:55:29 -08:00
Ben Kalman b3f4981213 I am back (#3138) 2017-01-31 14:26:36 -08:00
Erik Arvidsson f66a0e8a89 Update to Flow 0.38 (#3136) 2017-01-31 13:39:31 -08:00
cmasone-attic 6e72c137a2 Make database root a Map<String, Ref<Value>> (#3093)
Since the head of each dataset can have an arbitrarily complex
type, type accretion leads the Datasets map at the root of the
DB to become very large. This type info isn't really very useful
at that level either. So, get rid of it by making this map be
from String -> Ref<Value>.

Fixes #2869
2017-01-22 11:17:17 -08:00
Erik Arvidsson d4132e9e6c Use cp instead of ln (#3100) 2017-01-20 18:41:56 -08:00
Erik Arvidsson e90bfcbd2a Switch to Yarn (#3092)
brew install yarn
2017-01-20 11:42:32 -08:00
Mike Gray d7c8c816f4 Remove old go samples. They are no longer needed. (#3087) 2017-01-19 12:39:00 -05:00
Aaron Boodman 801dde854a Remove all the old js samples. They are no longer needed. (#3086) 2017-01-18 21:24:34 -08:00
Erik Arvidsson 2dfb4040b7 Update to Flow 0.36 (#3079) 2017-01-17 11:56:20 -08:00
Rafael Weinstein 759c36c96f Walk avoids blobs (#3074) 2017-01-13 16:32:40 -08:00
Erik Arvidsson 554d4da885 Upgrade to use latest webpack-config (#3066) 2017-01-11 18:47:22 -08:00
Rafael Weinstein 01303a828d go read ahead (#3046) 2017-01-10 15:28:26 -08:00
Rafael Weinstein c3427a4364 Introduce go blob-put (#3053)
Introduce go blob-put
2017-01-10 15:02:02 -08:00
Aaron Boodman c5805766f5 Enable v8 by default (#3045) 2017-01-10 14:43:55 -08:00
Aaron Boodman a09ef6fb44 Revert "Introduce noms version 8. Use it to guard type simplification." (#3043) 2017-01-09 16:30:25 -08:00
Aaron Boodman a4ffa5ba9b Introduce noms version 8. Use it to guard type simplification. (#3035)
Introduce noms version 8. Use it to guard type simplification.
2017-01-06 17:32:32 -08:00
Aaron Boodman 8777321dd2 Few cleanups to type simplification, plus enable it in various jobs (#3018) 2017-01-04 14:15:26 -08:00
cmasone-attic ad3037f869 ValueStore writes chunks only when referenced (#3016)
The old strategy for writing values was to recursively encode them,
putting the resulting chunks into a BatchStore from the bottom up as
they were generated. The BatchStore implementation was responsible for
handling concurrency, so chunks from different Values would be
interleaved if the there were multiple calls to WriteValue happening
at the same time.

The new strategy tries to keep chunks from the same 'level' of a
graph together by caching chunks as they're encoded and only writing
them once they're referenced by some other value. When a collection
is written, the graph representing it is encoded recursively, and
chunks are generated bottom-up. The new strategy should, in practice,
mean that the children of a given parent node in this graph will be
cached until that parent gets written, and then they'll get written
all at once.
2017-01-04 12:19:10 -08:00
Rafael Weinstein e0d8445ccd Js sequence refactor (#2998)
Removes IndexedSequence and OrderedSequence. What remain are MetaSequence and each of the leaf sequences which directly inherit from Sequence.
2017-01-03 14:03:17 -08:00
Ben Kalman 1cf183b8f0 Temporarily remove kalman from coffee rotation (#2974)
Joke dude.
2016-12-22 17:20:45 -08:00
Aaron Boodman a1c75f04d6 Fix crash in picasa importer with large albums (#2965)
Fixes https://github.com/attic-labs/attic/issues/317
2016-12-19 21:42:25 -08:00
Mike Gray 094ec4c94f Allow json-import input to be a file (#2964) 2016-12-19 19:27:05 -05:00
Dan Willhite 150d66010d Use merge policy to avoid dl-cache conflicts in downloader (#2958) 2016-12-15 10:21:12 -08:00
Aaron Boodman 914d252748 Move coffeebot back to 3pm (#2919) 2016-12-07 17:41:18 -08:00
Dan Willhite e30272abeb Implement poke functionality using diff.Apply function (#2828) 2016-12-07 11:57:48 -08:00
Aaron Boodman 8d4ff605f5 photo-index: output PhotoGroup instead of Photo (#2902)
photo-index: output PhotoGroup instead of Photo (#2902)
2016-12-06 16:21:02 -08:00
Dan Willhite 7916e05631 Make blob-get print to stdout if there is no file arg (#2867)
* Make blob-get print to stdout if there is no file arg

* Review changes
2016-12-05 11:33:08 -08:00
Erik Arvidsson 710e5c8d12 Give Flow a helping hand (#2895)
Flow didn't know which type to pick for addEventListener.
2016-12-02 10:59:54 -08:00
Erik Arvidsson 3a963602d2 Update Noms JS SDK to use Flow 0.35 (#2890) 2016-12-01 17:52:30 -08:00
Aaron Boodman e664d77a97 Change the dropbox client we're using. (#2887)
Toward https://github.com/attic-labs/attic/issues/152
2016-12-01 15:03:16 -08:00
Mike Gray ebe9831710 Clarify Facebook instructions (#2885) 2016-12-01 15:02:32 -08:00
Dan Willhite 46dfabd60e Fix in/out root mixup in downloader. (#2884)
Fixes https://github.com/attic-labs/attic/issues/130
2016-12-01 13:49:46 -08:00
Ben Kalman 5e4c1c06d8 Remove noms-ui and update splore README.md (#2861) 2016-11-29 16:53:51 -08:00
Michael Angerman fcb98d7780 fix .nomsconfig error: Near line 11 (#2857) 2016-11-29 14:10:54 -08:00
Ben Kalman 0cf768e912 Make splore param parser not strip trailing '=' characters (#2856)
Params must include trailing '=' characters for base64 receipts.
2016-11-29 11:10:21 -08:00