Commit Graph

1288 Commits

Author SHA1 Message Date
Chris Masone a70c21116a Some compound{Set,Map} cleanup
Remove a bad comment, one-line a few things in Filter()
2015-12-16 15:57:22 -08:00
cmasone-attic 3163ff00dc Merge pull request #781 from cmasone-attic/mapfilter
Implement compoundMap Filter()
2015-12-16 15:50:37 -08:00
Dan Willhite 19228ba9d8 Merge pull request #784 from willhite/panics
Implement Filter on compoundList.
2015-12-16 14:06:57 -08:00
Dan Willhite 20f22e1020 Implement Filter on compoundList. 2015-12-16 13:32:00 -08:00
cmasone-attic 20e44e88a7 Merge pull request #786 from cmasone-attic/depanic
Re-land "Implement compoundSet.Filter()"
2015-12-16 13:07:28 -08:00
Chris Masone a30209bcc7 Implement compoundMap Filter() 2015-12-16 12:57:41 -08:00
Chris Masone 57e2303a62 Re-land "Implement compoundSet.Filter()"
This reverts commit 60ab9c7f0c.

Fixes initial patch to correctly use test harness.  Implementation is
based on newTypedSet(), so hopefully has similar performance
characteristics.
2015-12-16 12:53:13 -08:00
cmasone-attic f1bbf37f3e Merge pull request #785 from attic-labs/revert-777-depanic
Revert "Implement compoundSet.Filter()"
2015-12-16 12:43:24 -08:00
cmasone-attic 60ab9c7f0c Revert "Implement compoundSet.Filter()" 2015-12-16 12:42:33 -08:00
cmasone-attic f7f7cfaab0 Merge pull request #777 from cmasone-attic/depanic
Implement compoundSet.Filter()
2015-12-16 12:32:43 -08:00
Ben Kalman c3ec9bdcb6 Merge pull request #774 from kalman/set-map-insert-remove
Implement chunked insert/remove for sets and maps.
2015-12-16 11:18:29 -08:00
Benjamin Kalman 2f22372c86 Implement chunked insert/remove for sets and maps.
There are some corner case failing tests, but this may be an existing bug
in the sequence chunker.
2015-12-16 11:02:41 -08:00
Dan Willhite 4e4cff2bd2 Merge pull request #779 from willhite/panics
Implement Map and MapP on compoundList.
2015-12-16 09:55:42 -08:00
Rafael Weinstein 9447d1025c Merge pull request #780 from rafael-atticlabs/fixMoreClients
Fix xml-importer & pitchmap/indexer
2015-12-15 21:34:17 -08:00
Rafael Weinstein 9b107c145f Fix xml-importer & pitchmap/indexer 2015-12-15 21:33:44 -08:00
Chris Masone 18c446e934 Add set-equivalence check to unit test 2015-12-15 20:08:51 -08:00
Dan Willhite 4268ded39c Implement Map and MapP on compoundList. 2015-12-15 17:53:51 -08:00
Dan Willhite eeea1e2056 Merge pull request #773 from willhite/panics
Implement IterAllP on compoundList.
2015-12-15 17:52:32 -08:00
Dan Willhite efd9a2e00c Implement IterAllP on compoundList. 2015-12-15 17:42:05 -08:00
Chris Masone 8171014b20 remove comment 2015-12-15 17:37:25 -08:00
Chris Masone 0d54e01dda Implement compoundSet.Filter()
Implementation is based on newTypedSet(), so hopefully has similar
performance characteristics.
2015-12-15 17:14:11 -08:00
cmasone-attic 8a4b326de5 Merge pull request #776 from cmasone-attic/depanic
Implement compoundMap.MaybeGet() and compoundSet.First()
2015-12-15 16:55:59 -08:00
Chris Masone 31bf320370 Implement compoundMap.MaybeGet() and compoundSet.First()
A couple more simple ones before the hard stuff.
2015-12-15 16:34:04 -08:00
cmasone-attic 33d65bd48f Merge pull request #772 from cmasone-attic/depanic
Implement compoundMap.First()
2015-12-15 16:10:54 -08:00
Chris Masone 55529946b7 Implement compoundMap.First()
Also, add TestCompoundMapFirst.
2015-12-15 15:31:41 -08:00
cmasone-attic 8857fe3368 Merge pull request #771 from cmasone-attic/issue677
Python test cleanup
2015-12-15 15:27:30 -08:00
Chris Masone b282335aaa Python test cleanup 2015-12-15 14:45:12 -08:00
cmasone-attic 69f399030e Merge pull request #770 from cmasone-attic/issue677
Add noms.copy.Peers()
2015-12-15 14:12:44 -08:00
Chris Masone 51bcb98784 Add noms.copy.Peers()
As I was working on making deployment files get staged by Go/Python,
another pattern emerged. It seems like it will be not-uncommon to want
to stage all the files in the directory your script is in over to the
staging directory the system made for you. So, provide a helper to do
that.
2015-12-15 13:38:50 -08:00
cmasone-attic 8f4d22be22 Merge pull request #768 from cmasone-attic/issue677
Tools cleanup
2015-12-15 11:29:00 -08:00
Chris Masone a47edc8431 Tools cleanup
Add a python test, clean up some error messages, and trim
env vars that don't need to be passed to build/staging scripts.
2015-12-15 11:18:00 -08:00
Aaron Boodman 23e3953d1e Update README.md 2015-12-14 22:02:33 -08:00
Ben Kalman 2e451bea37 Merge pull request #741 from kalman/cl-insert-remove
Implement compoundList Insert/Remove/RemoveAt.
2015-12-14 13:32:46 -08:00
Benjamin Kalman c5a6382d25 Implement compoundList Set/Insert/Remove/RemoveAt. 2015-12-14 13:23:48 -08:00
Ben Kalman 798e7fac7e Merge pull request #759 from kalman/map-ref-order
Make types.Ref implement the OrderedValue interface.
2015-12-14 11:29:48 -08:00
Benjamin Kalman 9a3e73779d Make types.Ref implement the OrderedValue interface.
This fixes the bug where compoundSets/Maps of refs are ordered by their
type.Ref's Ref, rather than their type.Ref's TargetRef.
2015-12-14 11:28:38 -08:00
Dan Willhite 2fd607b2f6 Merge pull request #762 from willhite/crunchbase-fix
Fix cut and paste error in crunchbase importer.
2015-12-14 10:56:51 -08:00
Dan Willhite 113f526785 Fix cut and paste error in crunchbase importer. 2015-12-14 10:30:30 -08:00
Rafael Weinstein 347b9f44df Merge pull request #746 from rafael-atticlabs/setIntersect
NomsSet.intersect
2015-12-14 08:08:41 -08:00
Rafael Weinstein 4d95278ec8 NomsSet.intersect 2015-12-14 08:08:10 -08:00
Rafael Weinstein f81bf306e5 Merge pull request #760 from rafael-atticlabs/sploreFormatKeyString
splore: formatKeyString for CompoundObjects
2015-12-14 07:45:58 -08:00
Rafael Weinstein bf21decb70 splore 2015-12-14 07:42:51 -08:00
Erik Arvidsson 7c43a2b49d Merge pull request #751 from arv/encode-numbers-as-strings
Go: Encode numbers as strings
2015-12-14 09:49:34 -05:00
Erik Arvidsson 5a94b87cbb JS: Encode numbers as strings 2015-12-14 09:21:43 -05:00
Erik Arvidsson 796c11b0f7 Make sure floats are encoded in a more restricted format 2015-12-12 17:34:47 -05:00
cmasone-attic 6b13f57148 Merge pull request #753 from cmasone-attic/issue677
Move build scripts to python
2015-12-11 16:50:37 -08:00
Ben Kalman 142bbe59ed Merge pull request #747 from kalman/cs-slice
Implement compoundList.Slice.
2015-12-11 16:08:48 -08:00
Chris Masone 841ac0f088 Remove crunchbase/ui/build.go 2015-12-11 15:17:32 -08:00
Chris Masone 6e316d9975 Move build scripts to python
Finding and running build scripts remains in Go
(tools/run_all_build.go and supporting libs), but the build scripts
themselves are in python now.  This is because Go doesn't have much
support for copying files and directories around, which is kind of the
primary focus of build and packaging scripts.

Towards issue 677
2015-12-11 14:46:16 -08:00
Erik Arvidsson 40d164fe47 Go: Encode numbers as strings
Because JSON encoders encode numbers differently we cannot just use
numbers in the output.

This still encodes the NomsKind as numbers.

Towards #749
2015-12-11 16:30:07 -05:00