Skip to content
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

New 'getHeuristic' getter for phase 2 store refactor #342

Merged
merged 4 commits into from
Feb 3, 2023

Conversation

jarmoza
Copy link
Contributor

@jarmoza jarmoza commented Feb 2, 2023

This completes #266.

  1. getter getHeuristic returns the transformationHeuristic assigned to a particular column in dataDictionary.annotated. If the given column has no transformationHeuristic key, a blank string is returned
  2. Unit tests in store-getter-getHeuristic.cy.js test for both of the above scenarios.
  3. The naming of the getter is updated in the annot-continuous-values component, getActiveHeuristic -> getHeuristic. The reasoning here is that 'active' referred to the operative heuristic for a particular category, and now that heuristics can vary across columns this is no longer the case.

Moves us one step closer to #336.

@jarmoza jarmoza added annotation page data store maint:refactor Simplifying or restructuring existing code or documentation. labels Feb 2, 2023
@jarmoza jarmoza requested a review from surchs February 2, 2023 21:53
Copy link
Contributor

@surchs surchs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great @jarmoza! I left one suggestion for the name of the test group, see if that fits.

cypress/unit/store-getter-getHeuristic.cy.js Outdated Show resolved Hide resolved
cypress/unit/store-getter-getHeuristic.cy.js Show resolved Hide resolved
Co-authored-by: Sebastian Urchs <surchs@users.noreply.github.com>
@jarmoza jarmoza merged commit 6e29192 into dev_components_talk_to_store_directly Feb 3, 2023
@jarmoza jarmoza deleted the jarmoza-266 branch February 3, 2023 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
annotation page data store maint:refactor Simplifying or restructuring existing code or documentation.
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants