-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Differentiated dimension-types #113
Commits on Oct 30, 2018
-
Configuration menu - View commit details
-
Copy full SHA for c38a066 - Browse repository at this point
Copy the full SHA c38a066View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e2fad6 - Browse repository at this point
Copy the full SHA 7e2fad6View commit details -
cube: make CrunchCube._all_dimensions private
* Rename CrunchCube.all_dimensions to ._all_dimensions and move it to down to the implementation method section of the class. * Update all internal references. * Update references in tests.
Configuration menu - View commit details
-
Copy full SHA for 828549e - Browse repository at this point
Copy the full SHA 828549eView commit details -
cube: remove dead CrunchCube.ca_dim_ind
CrunchCube.ca_dim_ind is not called by any other part of cr.cube or by current table-writer. Remove it as it will be made obsolete by other factoring.
Configuration menu - View commit details
-
Copy full SHA for fbe683a - Browse repository at this point
Copy the full SHA fbe683aView commit details -
cube: make CrunchCube.col_direction_axis private
CrunchCube.col_direction_axis is not called outside cr.cube.crunch_cube.
Configuration menu - View commit details
-
Copy full SHA for e060402 - Browse repository at this point
Copy the full SHA e060402View commit details -
cube: make CrunchCube.data private
CrunchCube.data is used only internally to the CrunchCube class.
Configuration menu - View commit details
-
Copy full SHA for 8a49d08 - Browse repository at this point
Copy the full SHA 8a49d08View commit details -
cube: make CrunchCube.flat_values private
CrunchCube.flat_values is only used internally by CrunchCube and is not a required interface method.
Configuration menu - View commit details
-
Copy full SHA for 1978f4c - Browse repository at this point
Copy the full SHA 1978f4cView commit details -
cube: make CrunchCube.prune_indices private
CrunchCube.prune_indices is not used outside CrunchCube.
Configuration menu - View commit details
-
Copy full SHA for afe5478 - Browse repository at this point
Copy the full SHA afe5478View commit details -
cube: make .valid_indices_with_selections private
CrunchCube.valid_indices_with_selections is not required outside CrunchCube. Make it private.
Configuration menu - View commit details
-
Copy full SHA for 1b2afe4 - Browse repository at this point
Copy the full SHA 1b2afe4View commit details -
dim: extract DIMENSION_TYPE enumeration
* Define DIMENSION_TYPE enumeration, defining all distinct types, even though current Dimension.dimension_type cannot differentiate all of them yet. * Change each use of `str` dimension-type key in code and tests to actual DIMENSION_TYPE member. * Remove some cruft from Dimension.dimension_type to bring it consistent with current cube response form. * Update a legacy fixture to all now-required subtype-class.
Configuration menu - View commit details
-
Copy full SHA for f695725 - Browse repository at this point
Copy the full SHA f695725View commit details -
cube: parameterize CrunchCube unit tests
Use pytest parameterized fixtures to gather test cases into a single test plus a parameterized fixture. This clarifies the test and greatly shortens the test file making it easier to understand and maintain.
Configuration menu - View commit details
-
Copy full SHA for 10a93ad - Browse repository at this point
Copy the full SHA 10a93adView commit details -
dim: add xfail integration test to drive TDD
Add integration tests to drive test-driven development of dimension collections objects, including the core aspect of dimension type discovery. Along the way: * Normalize CAT_X_CAT fixture to allow uniform access to result dict. * Fix unit test that depended on CAT_X_CAT being a shojified cube response.
Configuration menu - View commit details
-
Copy full SHA for c481b8f - Browse repository at this point
Copy the full SHA c481b8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 94a0ebc - Browse repository at this point
Copy the full SHA 94a0ebcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b9f479 - Browse repository at this point
Copy the full SHA 4b9f479View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6425eb9 - Browse repository at this point
Copy the full SHA 6425eb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7538608 - Browse repository at this point
Copy the full SHA 7538608View commit details -
Configuration menu - View commit details
-
Copy full SHA for 54b476e - Browse repository at this point
Copy the full SHA 54b476eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f0d08d5 - Browse repository at this point
Copy the full SHA f0d08d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for fc065fb - Browse repository at this point
Copy the full SHA fc065fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c76720 - Browse repository at this point
Copy the full SHA 3c76720View commit details -
Configuration menu - View commit details
-
Copy full SHA for 252466f - Browse repository at this point
Copy the full SHA 252466fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e036050 - Browse repository at this point
Copy the full SHA e036050View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8bc449 - Browse repository at this point
Copy the full SHA b8bc449View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7cc9814 - Browse repository at this point
Copy the full SHA 7cc9814View commit details -
Configuration menu - View commit details
-
Copy full SHA for eea9c34 - Browse repository at this point
Copy the full SHA eea9c34View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ad3053 - Browse repository at this point
Copy the full SHA 6ad3053View commit details -
Configuration menu - View commit details
-
Copy full SHA for 903dcce - Browse repository at this point
Copy the full SHA 903dcceView commit details -
Configuration menu - View commit details
-
Copy full SHA for fc5f12d - Browse repository at this point
Copy the full SHA fc5f12dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 355cb48 - Browse repository at this point
Copy the full SHA 355cb48View commit details -
dim: integrate new AllDimensions implementation
* Move NewDimension methods into Dimension, replacing old implementations. * Update CrunchCube dimensions methods to use new dimension collections. * Update CrunchCube and Dimension tests as required. * Mark newly failing tests xfail for individual resolution in following commits.
Configuration menu - View commit details
-
Copy full SHA for caa5424 - Browse repository at this point
Copy the full SHA caa5424View commit details -
cube: remimplement CrunchCube.is_univariate_ca
With the new fully-differentiated dimension types, a CA dimension pair has a CA_CAT dimension where it used to have an (undifferentiated) CAT dimension.
Configuration menu - View commit details
-
Copy full SHA for 821a37d - Browse repository at this point
Copy the full SHA 821a37dView commit details -
cube: reimplement CrunchCube.univariate_ca_main_axis
Main axis of univariate CA is now CA_CAT type where before it was undifferentiated CAT type.
Configuration menu - View commit details
-
Copy full SHA for b671c3d - Browse repository at this point
Copy the full SHA b671c3dView commit details -
test: rework CrunchCube.dimensions integration test
Move CrunchCube.dimensions integration test to test_crunch_cube.py and update it to reflect differentiated dimension type for CA_CAT.
Configuration menu - View commit details
-
Copy full SHA for d8db2b5 - Browse repository at this point
Copy the full SHA d8db2b5View commit details -
test: rework logical-univariate integration test
* Canonicalize unpunctuated logical-univariate JSON fixture. * Move test to CrunchCube integration test module since it exercises CrunchCube methods. * Test requires DIMENSION_TYPE.LOGICAL instead of CATEGORICAL now that categorical dimension types are differentiated.
Configuration menu - View commit details
-
Copy full SHA for 5562c9b - Browse repository at this point
Copy the full SHA 5562c9bView commit details -
test: rework cat-x-logical test
JSON fixture named LOGICAL_X_CAT turns out to have CAT_X_LOGICAL dimensions. Canonicalize and rename that JSON fixture and move test to cube integration test module since that's its entry point. Use LOGICAL dimension-type to match now differentiated category type.
Configuration menu - View commit details
-
Copy full SHA for 159e9d1 - Browse repository at this point
Copy the full SHA 159e9d1View commit details -
rfctr: remove CrunchCube.is_mr_selections()
CrunchCube.is_mr_selections() can now be replaced by `dimension.dimension_type == DT.MR_CAT`. Remove .is_mr_selections() and replace its usage with that snippet.
Configuration menu - View commit details
-
Copy full SHA for 6ed25b1 - Browse repository at this point
Copy the full SHA 6ed25b1View commit details -
rfctr: remove Dimension.is_selections
Differentiated dimension-types make this API property unnecessary and making selection types explicit in client code makes it easier to reason about.
Configuration menu - View commit details
-
Copy full SHA for 34aa402 - Browse repository at this point
Copy the full SHA 34aa402View commit details -
rfctr: remove CrunchCube.mr_selections_indices
CrunchCube.mr_selections_indices is unused and should not be required as an API property. Remove it.
Configuration menu - View commit details
-
Copy full SHA for b3d883d - Browse repository at this point
Copy the full SHA b3d883dView commit details -
Dimension.alias is no longer used. Remove it on YAGNI rationale.
Configuration menu - View commit details
-
Copy full SHA for 4f3461b - Browse repository at this point
Copy the full SHA 4f3461bView commit details -
cube: make CrunchCube.dim_types immutable
Returning a mutable type on an @lazyproperty is dangerous because it permits the caller to change the contents which would be returned to the next caller. Make CrunchCube.dim_types return a tuple rather than a list.
Configuration menu - View commit details
-
Copy full SHA for b374ec1 - Browse repository at this point
Copy the full SHA b374ec1View commit details -
Configuration menu - View commit details
-
Copy full SHA for c7073c9 - Browse repository at this point
Copy the full SHA c7073c9View commit details