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

Normalization functions for mask/viewports #680

Merged

Conversation

stefano-xy
Copy link
Contributor

Description

Shortcut: https://app.shortcut.com/cartoteam/story/314403/formula-and-histogram-widgets-viewport-mode-is-not-displaying-data-with-zoom-0-bq-check-this-one

This normalizes the spatial filter before sending it to the API for remote calculation

@shortcut-integration
Copy link

Comment on lines +3 to +5
import union from '@turf/union';
import { getType } from '@turf/invariant';
import { polygon, multiPolygon } from '@turf/helpers';
Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, it sounds like we should add those as peerDependencies in react-core, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't we have them already?

@coveralls
Copy link
Collaborator

coveralls commented May 22, 2023

Pull Request Test Coverage Report for Build 5077682259

  • 36 of 39 (92.31%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 72.309%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/react-core/src/utils/geo.js 36 39 92.31%
Totals Coverage Status
Change from base Build 5071011434: 0.3%
Covered Lines: 2082
Relevant Lines: 2655

💛 - Coveralls

Copy link
Contributor

@VictorVelarde VictorVelarde left a comment

Choose a reason for hiding this comment

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

Overall LGTM, just drop a line into CHANGELOG and manage new deps, and we'll go ahead with it @ragazzojp

@stefano-xy stefano-xy self-assigned this May 24, 2023
@stefano-xy stefano-xy requested a review from VictorVelarde May 24, 2023 08:38
Copy link
Contributor

@VictorVelarde VictorVelarde left a comment

Choose a reason for hiding this comment

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

👍🏻

@VictorVelarde VictorVelarde merged commit f3fa447 into master May 25, 2023
@VictorVelarde VictorVelarde deleted the bug/sc-314403/formula-and-histogram-widgets-viewport-mode branch May 25, 2023 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants