Commit Graph

79 Commits

Author SHA1 Message Date
Ben Kalman
70a24733aa Better error messages when index path is wrong in photo viewer (#2672) 2016-10-10 12:45:31 -07:00
Erik Arvidsson
7783fc5f44 Update style issues found by newer eslint (#2685) 2016-10-10 10:56:02 -07:00
Erik Arvidsson
8bd3d0720c Update the instructions for fb/slurp (#2686) 2016-10-08 10:14:09 -07:00
Aaron Boodman
eb00815de4 Flickr: import primarily photo-wise rather than album-wise. (#2682)
Flickr: import primarily photo-wise rather than album-wise.

This way we get photos that aren't in any album.

Fixes: #2675
2016-10-07 17:03:01 -07:00
Erik Arvidsson
8b40a9997d Fix Flickr importer to get an access token (#2681)
We were using the short lived access token when we should have
exchanged that for a long term access token.

Also refactor the code a bit. Sorry!
2016-10-07 15:41:36 -07:00
Mike Gray
67ad849505 Update to Facebook API v2.8 (#2680) 2016-10-07 17:25:12 -04:00
Aaron Boodman
53d5b59017 Track run date and input paths for fb and flickr importers (#2673)
Track run date and input paths for fb and flickr importers
2016-10-06 18:52:30 -07:00
Aaron Boodman
2708e127b1 fb/slurp: add support for getting longer-lived access token (#2670) 2016-10-05 21:16:36 -07:00
Ben Kalman
49e74de710 Add a photo viewing web UI (#2662) 2016-10-05 12:49:56 -07:00
Erik Arvidsson
a63b588f80 Fix lint errors (#2650) 2016-09-29 10:44:43 -07:00
Aaron Boodman
48e7ed9850 fb/find-photos: add in datePublished, dateUpdated, faces (#2634)
fb/find-photos: add in publishDate, updateDate, along with basic face info.
2016-09-28 17:18:46 -07:00
cmasone-attic
dd92a06559 JS: Make Database a mutable API that vends immutable Datasets (#2636)
Noms SDK users frequently shoot themselves in the foot because they're
holding onto an "old" Database object. That is, they have a Database
tucked away in some internal state, they call Commit() on it, and
don't replace the object in their internal state with the new Database
returned from Commit.

This PR fixes #2589 by changing the Database and Dataset JS API to be
in line with the proposal there.
2016-09-28 16:50:57 -07:00
Ben Kalman
a738ad2d85 flickr correct nsInSecond/nsInMillisecond (#2645) 2016-09-28 16:45:26 -07:00
Aaron Boodman
3efc6c5f7d You're the computer, you sort the fields (#2641)
Change makeStructType() API for sanity. Update callers.
2016-09-28 15:39:52 -07:00
Dan Willhite
4fd84d5141 Add dummy files to js samples with integration tests (#2643) 2016-09-28 13:59:22 -07:00
Dan Willhite
82b25f370f Remove pitch-index from samples/js (#2642) 2016-09-28 13:42:50 -07:00
Dan Willhite
7d81c9b96b Add integration test for sample: url_fetch (#2639)
Towards #1888
2016-09-28 13:36:19 -07:00
Dan Willhite
cd8f995b2c Add integration test for sample: aggregate. (#2633)
Towards #1888
2016-09-28 12:52:55 -07:00
Mike Gray
181f549179 Update FB and Flickr importers to be similar in names and descriptions (#2615) 2016-09-27 13:28:11 -04:00
Aaron Boodman
429784dd00 flickr/find-photos: capture dateTaken, datePublished, dateUpdated (#2614)
flickr/find-photos: capture dateTaken, datePublished, dateUpdated.

TBR
2016-09-27 00:04:58 -07:00
cmasone-attic
2e462b11a5 Make Database a mutable API that vends immutable Datasets (#2617)
Noms SDK users frequently shoot themselves in the foot because they're
holding onto an "old" Database object. That is, they have a Database
tucked away in some internal state, they call Commit() on it, and
don't replace the object in their internal state with the new Database
returned from Commit.

This PR changes the Database and Dataset Go API to be in line with the
proposal in Issue #2589. JS follows in a separate patch.
2016-09-26 12:18:14 -07:00
Erik Arvidsson
21b8fc2b4f Update Flow to 0.32 (#2606)
Motivation: Better libs needed in an upcoming PR.
2016-09-22 15:22:20 -07:00
Erik Arvidsson
e28cda9ba7 Update Babel dependencies (#2604)
The motivation is to get babylon@6.11.1 which has a fix for a bug where it
treated toString as a duplicate export.
2016-09-22 13:54:46 -07:00
Erik Arvidsson
d9ebf6ac90 flickr/slurp: Treat fail as an error (#2544)
Reject the promise when we get a fail status.
2016-09-12 13:57:33 -07:00
Erik Arvidsson
70004e1699 Let splore use versioned URLs too (#2530) 2016-09-07 18:05:14 -07:00
Erik Arvidsson
fd4c52acef stage.py: import os too (#2514) 2016-09-02 14:00:15 -07:00
Erik Arvidsson
893d0fa360 stage.py needs to import sys before using it (#2513)
Also changes the tabs to spaces. Thanks pylint.
2016-09-02 13:38:43 -07:00
Erik Arvidsson
f465b0bd3c Fix import of noms.staging in stage.py (#2510)
Also fix unit test that was not updated when the functions were
renamed.
2016-09-02 13:09:07 -07:00
Ben Kalman
815ca1586f Add perf build.py and util (#2487) 2016-08-31 16:50:34 -07:00
Erik Arvidsson
f5ce7e056b Fix path in splore build script (#2471)
The path to the noms sdk in the build script was not updated when the
js sdk was moved.
2016-08-31 12:01:10 -04:00
Ben Kalman
b5098227b8 Add a perf viewer (#2434)
This is a web page which renders a graph of the data generated by perf
suite tests.
2016-08-30 16:11:21 -07:00
Mike Gray
4b26de05f6 removing js csv sample (#2435) 2016-08-25 21:32:21 -04:00
Erik Arvidsson
103078b366 Move samples/js/perf to js/perf (#2426) 2016-08-23 17:51:27 -07:00
Erik Arvidsson
d06c3ec8fe Move /js/ into /js/noms/ (#2423) 2016-08-23 16:04:00 -07:00
Erik Arvidsson
c6ad845129 Update README.md 2016-08-22 15:22:34 -07:00
Erik Arvidsson
0d2c4fd56d Revert "Move noms/samples/js/perf to noms/js/perf" (#2400) 2016-08-22 13:57:41 -07:00
LIMSUNG GUK
89fb45553b Move sample/js/*-perf-rig to js/perf/ 2016-08-18 18:33:19 +09:00
Ben Kalman
1e511a61c6 Let Splore open a noms path (#2356)
Currently Splore can only open a database (db=) or a hash (hash=). This
removes the hash and replaces it with the much more general path (p=).

For example, what used to be:
  ?db=http://demo.noms.io&hash=abcd
is now:
  ?db=http://demo.noms.io&p=#abcd

and of course more complex paths work, like:
  ?db=http://demo.noms.io&p=#abcd.field[42].name

I've exposed getHashOfValue in noms.js.
2016-08-12 16:47:26 -07:00
Ben Kalman
da62bb2b97 Remove most references to ldb: prefix in the .md docs (#2360) 2016-08-12 15:51:25 -07:00
Ben Kalman
0d6bd01810 Port PathSpec implementation to JS (#2335)
This is a breaking change to the JS API. HashSpec and parseObjectSpec
have been removed in favour of PathSpec, and parse errors now throw
SyntaxError instead of silently failing (this matches JSON.parse).
2016-08-11 15:29:27 -07:00
Erik Arvidsson
6178251012 Update to Flow 0.30.0 (#2337)
This requires all parameterized types to have type params. Fortunately
one can use `T<any>` which has the same behavior as the old `T` syntax.

We should tighten the types further after this but this unblocks us.

Fixes #2301
2016-08-11 11:27:41 -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
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
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
Ben Kalman
1116a05792 Fix Splore node labels in Firefox (#2264) 2016-08-03 22:54:03 -07:00
Erik Arvidsson
619a07298f Splore: Use demo.noms.io as the default database (#2219)
Changes the default database to `https://demo.noms.io/cli-tour`

Fixes #2217
2016-08-01 09:16:06 -07:00
Erik Arvidsson
7a4436e9b5 Remove Type name property (#2161)
Only struct types have a name property and this was left over from
an earlier refactoring.
2016-07-26 15:31:43 -07:00
Rafael Weinstein
717745f2fc Refactor sequence_chunker.Done() (#2076)
Go SequenceChunker Refactor
2016-07-21 14:51:32 -07:00
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
Rafael Weinstein
890433e864 Reland js type cache (#2032)
Reland js type cache (#2032)
2016-07-13 15:23:23 -07:00