-
Notifications
You must be signed in to change notification settings - Fork 16
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
Calculation of widget using maps API #658
Merged
VictorVelarde
merged 47 commits into
master
from
feature/sc-304698/backend-based-widget-calculation-using-spatialfilter
May 18, 2023
Merged
Changes from 18 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
8260b99
Removed dead code
ebdd99c
Changed behavior of getGeometryToIntersect
61777e8
Refactor: reduced unneeded widget calculation
bb7cc40
Refactor: getGeometryToIntersect returns a Geometry
a327add
Support for spatialFilter param in API call
04bae81
Support for remote widgets
1d3bfb3
Remote calculation enabled for Formula
863827d
Remote calculation enabled for Category
3b8c7e4
Remote calculation enabled for Histogram
de93aba
Remote calculation enabled for Bar
8700698
Remote calculation enabled for Pie
fb815fe
Remote calculation enabled for Range
b6d0241
Tests
ea023b9
Remote calculation enabled for TimeSeries
f10b102
Merge branch 'master' into feature/sc-304698/backend-based-widget-cal…
32f47cc
Remote calculation controlled by Feature Flag
9cb3f3b
Removed debug logging
4607396
Changed the feature flag to `2023-remote-widgets`
0901ae8
Prepare changelog for alpha
VictorVelarde 2fe5fc9
v2.1.0-alpha.0
VictorVelarde 49f912b
Merge branch 'master' into feature/sc-304698/backend-based-widget-cal…
5682c11
Fix
18b4837
v2.1.0-alpha.2
VictorVelarde d56168d
Fix
cdf71ef
v2.1.0-alpha.3
VictorVelarde 3f14aeb
react-redux: export setViewPort and setViewStateDirect
zbigg 1d0de4a
v2.1.0-alpha.4
zbigg e211ce5
Fixed "no data available at this zoom level"
4a424e7
Merge branch 'master' into feature/sc-304698/backend-based-widget-cal…
ede8f91
v2.1.0-alpha.5
zbigg 42e0898
Fix normalizeObjectKeys for null/undefined values
dca0727
Support for NoData in FormulaWidget
2033236
Fix NoData for HistogramWidget
a5e0fb9
Merge branch 'master' into feature/sc-304698/backend-based-widget-cal…
354dbe3
v2.1.0-alpha.7
VictorVelarde 3ff12ad
Optimized viewport wrapping the globe (fix 314403)
66a5add
v2.0.3-alpha.1
VictorVelarde 021ccf7
Partial revert of wrapping the globe optimization
df14fa4
Minor optimization
b65da53
Merge branch 'master' into feature/sc-304698/backend-based-widget-cal…
VictorVelarde 3c50889
v2.0.3-alpha.2
VictorVelarde 6fa38d8
Aligning peer dependencies
756e46d
Switch to quadbin 0.1.9
c96c6cd
Refactor geo functions in their own file
6e3652c
Fixed warnings
72831a1
Merge branch 'master' into feature/sc-304698/backend-based-widget-cal…
VictorVelarde 0c18699
Prepare changelog for landing
VictorVelarde File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
export enum Flags { | ||
REMOTE_WIDGETS = '2023-remote-widgets' | ||
} | ||
export function setFlags(flags: Record<string, any> | string[]): void | ||
export function clearFlags(): void | ||
export function hasFlag(flag: string): boolean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can't get much better because you have to measure size of
GET
url few lines above and that must have proper url as input.(btw, it should create proper URL first, measure and test and not rely of more less accourate assumptions that
JSON.stringify(queryParams).
is same length asnew URLSearchParams(queryParams).toString()
but that's other story)This is done correctly in
getStats
albeit it's not much more readable.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll try to introduce an utility function for this, in a later PR.