Commit Graph

724 Commits

Author SHA1 Message Date
Erik Arvidsson
8565f175ee Make sure Chunks includes type.Refs and the TypeRef
Chunks shold return the futures for types.Ref values.

For typed values that have a TypeRef which has a package ref, also
include that.
2015-10-13 11:00:51 -04:00
Erik Arvidsson
9e36e080fd Disable unmarshal test that depends on map iteration order
Towards #396
2015-10-12 19:36:45 -04:00
cmasone-attic
c08ee243e6 Merge pull request #398 from cmasone-attic/more_imports
Support compounding types with imported types.
2015-10-12 16:06:47 -07:00
Chris Masone
56cd548328 Support compounding types with imported types.
Sets, Lists, Refs and Maps of imported types work now.

This PR also factors some of codegen.go into a separate package, to slim down
that file a bit.

Towards issue #294
2015-10-12 15:29:45 -07:00
Erik Arvidsson
e29d9eeb95 NomDL Blob: Remove redundant test 2015-10-12 17:53:51 -04:00
Erik Arvidsson
0d6f8be3e8 NomDL: Use base64 for Blobs for now
Encode embedded blobs as base64 encoded strings.
2015-10-12 17:47:28 -04:00
Dan Willhite
8b2b46f07b Merge pull request #390 from willhite/dataset
Fix concurrency overwrite on dataset.
2015-10-12 13:10:57 -07:00
Ben Kalman
58e2f3fb9c Merge pull request #394 from kalman/readme.md
Update README.md with accurate Run instructions.
2015-10-12 12:23:59 -07:00
Benjamin Kalman
dd3c3b20a9 Update README.md with accurate Run instructions.
The -fs argument doesn't exist and the raw data isn't at /root.
Now it's -ldb and /*.log.
2015-10-12 12:19:11 -07:00
Dan Willhite
d6b221444a Simplify logic in doCommit as per Raf's suggestions. Define ref.EmptyRef variable. 2015-10-12 10:53:12 -07:00
Dan Willhite
4852067aad Fix concurrency overwrite on dataset.
When there are two dataset clients working on the same empty dataset. The second one to commit would override the first.
2015-10-12 10:50:28 -07:00
cmasone-attic
d1ae467c5e Merge pull request #392 from cmasone-attic/more_imports
check in generated test dependency code
2015-10-09 17:23:28 -07:00
Chris Masone
ea34bfaaea check in generated test dependency code 2015-10-09 17:23:03 -07:00
cmasone-attic
ce3360da4b Merge pull request #389 from cmasone-attic/more_imports
Initial support for importing type pacakges by ref

Towards #294
2015-10-09 17:10:44 -07:00
Chris Masone
bccdcc22ad Remove commented out test code
And replace it with something that verifies that generated dependency code
is imported correctly.

Also address other nits.
2015-10-09 17:09:04 -07:00
Chris Masone
cc15992778 Initial support for importing type pacakges by ref
Towards #294
2015-10-09 15:19:06 -07:00
Erik Arvidsson
1180d2aacb Fix build bustage 2015-10-09 14:35:33 -07:00
Erik Arvidsson
9795d49074 Always wrap list, map and set in an array 2015-10-09 14:10:05 -07:00
Erik Arvidsson
37336f41be NomDL serializing
This now handles serializing TypeRef values
2015-10-09 14:09:49 -07:00
Dan Willhite
ca3934a718 Merge pull request #387 from willhite/dataset
Add MaybeGet method to generated Map types.
2015-10-07 13:42:17 -07:00
Dan Willhite
b20b1c42cd Add MaybeGet method to generated Map types. 2015-10-07 13:40:34 -07:00
Erik Arvidsson
9cb7596409 NomDL: Make NomsValue a Value
This means that when we ReadValue we can now return a NomsValue

Towards #281
2015-10-06 16:38:11 -07:00
Erik Arvidsson
2dec53453e NomDL: Add new serialization format
The new serialization format use "t " as in typed. The rest of the
message is a JSON array describing the typed data. The type is
described by types.TypeRef

Fixes #384
Issues #281, #304
2015-10-06 15:56:10 -07:00
cmasone-attic
e64e313498 Merge pull request #383 from cmasone-attic/issue294
Add functions to codegen.go for generating dependency code
2015-10-06 09:06:43 -07:00
Chris Masone
646519131c Address comments 2015-10-05 15:40:35 -07:00
Erik Arvidsson
72f4cd3a7a NomDL Codegen: Make the TypeRef return a package ref
The TypeRef function for a Noms Struct should be the (Name, PkgRef) and
not the description of the struct fields. This is important because
when serializing we need to write the package ref.

Towards #281 #304
2015-10-05 14:24:25 -07:00
Dan Willhite
46307027e1 Merge pull request #381 from willhite/iterallp
Issue #379 - Add IterAllP function to types.go.
2015-10-05 10:53:19 -07:00
Chris Masone
3dc61b673c Add functions to codegen.go for generating dependency code
This adds code for finding imported type packages and generating
code for them, but does not yet handle generating code that uses
those types.

Towards issue #294
2015-10-04 18:05:50 -04:00
Dan Willhite
b3ae2f89a9 Issue #379 - Add IterAllP function to types.go. 2015-10-02 11:29:08 -07:00
Erik Arvidsson
096ac4a224 Add index to List Iter, IterAll, Map, MapP
Fixes #376
2015-10-01 17:53:21 -04:00
Dan Willhite
a997e7bc95 Merge pull request #378 from willhite/issue-368
Use channel to protect access to datastore_server's connection map.
2015-10-01 09:39:31 -07:00
Dan Willhite
42688454f6 Use channel to protect access to datastore_server's connection map. 2015-10-01 09:17:04 -07:00
Aaron Boodman
8160817ee7 Merge pull request #375 from aboodman/delete
explore: say buh-bye
2015-09-30 20:24:35 -07:00
Aaron Boodman
9189479adf Merge pull request #373 from aboodman/progress
sfcrime_search: print out progress in slow mode
2015-09-30 17:36:58 -07:00
Aaron Boodman
a6f7a2b63f Merge pull request #374 from aboodman/fix
sfcrime_importer: sometimes we would close before importing everything
2015-09-30 16:57:34 -07:00
Aaron Boodman
572130f563 Revert "Purposely break the build to test drone integration"
This reverts commit 8909eb5b42.
2015-09-30 16:46:14 -07:00
Aaron Boodman
8909eb5b42 Purposely break the build to test drone integration 2015-09-30 16:45:21 -07:00
Aaron Boodman
00108f1ec2 explore: say buh-bye 2015-09-30 16:43:38 -07:00
Aaron Boodman
7c8b28adcb Merge pull request #372 from aboodman/prompt
splore: add ability to get full ref
2015-09-30 16:42:10 -07:00
Aaron Boodman
65310bef12 sfcrime_importer: sometimes we would close before importing everything 2015-09-30 16:32:49 -07:00
Aaron Boodman
3096214158 sfcrime_search: print out progress in slow mode 2015-09-30 16:31:23 -07:00
Aaron Boodman
a3850bec1a splore: add ability to get full ref 2015-09-30 16:31:02 -07:00
Erik Arvidsson
8c2caa3b27 NomDL Codegen: Add TypeRef method to typed objects 2015-09-30 17:48:32 -04:00
Erik Arvidsson
ede5f43204 Value should also have a TypeRef
This is so that we can get the runtime type of a value
2015-09-30 16:15:13 -04:00
Dan Willhite
7d3598fe6b Merge pull request #365 from willhite/qtsearch
Naive crime search against flat list.
2015-09-29 16:12:27 -07:00
Dan Willhite
09a775a985 Naive crime search against flat list.
Add ability to search using the list of incident objects created by sfcrime_importer py passing in incidient-list-ref argument.
Also added better checks to ensure that a suitable ref was given as argument.
2015-09-29 16:11:19 -07:00
cmasone-attic
2363650d24 Merge pull request #364 from cmasone-attic/codegen
Modify codegen to include pacakge refs for unresolved types
2015-09-29 13:15:05 -07:00
Chris Masone
9168a902f9 Modify codegen to include pacakge refs for unresolved types
Also, switch to using a ref.Ref when getting/setting the package
ref in a TypeRef. Using a types.Ref just led to lots of manual
boxing and unboxing every time I wanted to use the reference.

Toward issue #294
2015-09-29 12:58:56 -07:00
cmasone-attic
eb8853a367 Merge pull request #363 from cmasone-attic/issue353
Fix build break by regenerating sfcrime_search/types.go
2015-09-29 10:44:20 -07:00
Chris Masone
bd67349c35 Fix build break by regenerating sfcrime_search/types.go 2015-09-29 10:43:19 -07:00