Commit Graph

187 Commits

Author SHA1 Message Date
Paul Makepeace d5038c6618 Move camel case testing to test_facet 2011-04-26 14:20:47 -04:00
Paul Makepeace e8beb422b7 Rename test_{engine,facet}.py 2011-04-26 14:13:52 -04:00
Paul Makepeace 27586bc10c Remove find-project-by-name functionality as it doesn't really work. Defer project name discovering 'til it's needed. 2011-04-26 02:27:22 -04:00
Paul Makepeace 51d2294878 Break facet & engine out into facet.py; move refine.py into refine/refine.py. Tidy up (c) notice. 2011-04-26 02:02:44 -04:00
Paul Makepeace b33d280ee7 Factor out BoolFacet from StarredFacet and add BlankFacet. 2011-04-26 01:04:30 -04:00
Paul Makepeace b34ff146c4 Tidy up Facet 2011-04-26 01:03:28 -04:00
Paul Makepeace 478fae7d91 Add split_column(), move_column(). Allow RefineRow to have missing data and return None. This seems to happen when column data at the end of a row is all null. 2011-04-26 00:30:20 -04:00
Paul Makepeace 65c3309e94 Add reorder_columns(), transpose_rows_into_columns() 2011-04-25 23:15:35 -04:00
Paul Makepeace 17f39d4447 80 cols 2011-04-25 23:14:21 -04:00
Paul Makepeace a65ad6fce1 Make facet methods chainable. 2011-04-25 23:13:41 -04:00
Paul Makepeace 364bed871b Add rename_column(), fill_down(), transpose_columns_into_rows() 2011-04-25 21:26:32 -04:00
Paul Makepeace d3bd69798b Add tests to complete section 4. 2011-04-25 15:58:33 -04:00
Paul Makepeace 062f283e6b Add blank_down() and project.has_records (its consequence). Fix unintentional sort in test, and clear sort after reorder_rows(). 2011-04-25 15:45:20 -04:00
Paul Makepeace d3b4a38574 Remove RefineProject.columns (not really used) and tidy up get_models(). 2011-04-25 11:59:18 -04:00
Paul Makepeace 10dfc41bcb ResponseRows now created by a factory to allow the column cell index to be used to index rows by column name. 2011-04-25 11:51:01 -04:00
Paul Makepeace d769f761b9 Correct misunderstanding about how columnModel's cellIndex is working. 2011-04-25 11:09:30 -04:00
Paul Makepeace 8cd3fdc131 Add add_column() 2011-04-25 10:27:28 -04:00
Paul Makepeace 191d93e33f Add reorder_rows(), and supporting Sorting class. 2011-04-25 02:52:56 -04:00
Paul Makepeace ca2b690a17 Have do_json include engine param itself. 2011-04-25 01:28:30 -04:00
Paul Makepeace 5051a0c15f Add {Starred,Flagged}Facet, and {star,flag}_row. Allow get_rows to have a facets param. Add remove_rows(). 2011-04-25 01:18:05 -04:00
Paul Makepeace d980f9b89b Pull Facet selection handling into TextFacet. Allow TextFacet to be initialized with selections. 2011-04-25 00:05:48 -04:00
Paul Makepeace 140413e72a Add compute_clusters(). Rename its testcase. Add stack trace to error reporting. 2011-04-24 23:43:45 -04:00
Paul Makepeace 1371911c94 Add mass_edit() and edit() 2011-04-24 20:45:53 -04:00
Paul Makepeace a03212ca94 Add text_transform(). Remove dead engine param from get_rows(). Make error reporting in urlopen_json show returned 'code'. 2011-04-24 20:19:45 -04:00
Paul Makepeace 2562f199c9 Add tests for custom text & numeric facets. Rename test_basic_facet to test_facet :) 2011-04-24 19:25:25 -04:00
Paul Makepeace 2da0288975 Add engine.{remove,reset}_all(). 2011-04-24 18:51:21 -04:00
Paul Makepeace da85e698dd Add NumericFacet & camelcase tests. Rename text_facet to compute_facets. Make FacetResponse more generic, with support for bins & baseBins. 2011-04-24 18:36:19 -04:00
Paul Makepeace 263c991804 Create NumericFacet and change old Facet to TextFacet, with both as subclasses of Facet. Fix selections -> selection. 2011-04-24 17:20:53 -04:00
Paul Makepeace 9607c30bfa Test 'office title' facet & allow no blank choice in facet response. 2011-04-24 15:59:32 -04:00
Paul Makepeace 0657c415b7 Test blank_choice facet 2011-04-24 15:56:24 -04:00
Paul Makepeace 686723445b Remove redundant add facet test. Add Facet.reset(). Add tests for filtering on 2nd facet, and reset'ing both. 2011-04-24 15:45:32 -04:00
Paul Makepeace a2fa25d4e4 Add tests for selection faceting for section {8} 2011-04-24 15:31:06 -04:00
Paul Makepeace c7b445e851 Add: selections to facets; row index to RefineRow; reference to sections of tutorial '{n}' into tests; {7} adding a selection to a facet 2011-04-24 15:07:49 -04:00
Paul Makepeace 26bc2030a2 Add get_rows() and supporting row classes. Add len() to engine for number of facets. Add test for Engine.add_facet() 2011-04-24 12:43:11 -04:00
Paul Makepeace 0586e55ea8 Move project creation into test superclass. 2011-04-23 15:33:21 -04:00
Paul Makepeace 0ba708ada2 Add get_version(), and get_models() that fills in .columns and .column_index. Remove dev comments for upload. 2011-04-23 12:49:18 -04:00
Paul Makepeace 20af589a96 Google Refine Python client library. Initial check-in: upload project; list projects; delete project; basic text faceting. Test data referred to by David Huynh's Refine tutorial at http://davidhuynh.net/spaces/nicar2011/tutorial.pdf 2011-04-23 00:00:10 -04:00