-
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
FormulaWidget: implement new custom operation mechanism #699
FormulaWidget: implement new custom operation mechanism #699
Conversation
This pull request has been linked to Shortcut Story #320253: Implement new custom operation mechanism in FormulaWidget in C4R. |
Pull Request Test Coverage Report for Build 5389020875
💛 - Coveralls |
bab0af3
to
23c9607
Compare
Visit the preview URL for this PR (updated for commit 96edcda): https://cartodb-fb-storybook-react-dev--pr699-feature-sc-32025-nu2uo8ng.web.app (expires Tue, 04 Jul 2023 11:15:16 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 517cc4d31d7e09cf277774e034094b67c301cd4c |
CHANGELOG.md
Outdated
@@ -2,6 +2,9 @@ | |||
|
|||
## Not released | |||
|
|||
- Formula widget supports custom aggregation expression [699](https://github.com/CartoDB/carto-react/pull/699) | |||
- Fix executeModel get url calculation [699](https://github.com/CartoDB/carto-react/pull/699) |
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.
fix... affecting what part of widgets? all?
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.
yes, it's for all remote-mode & global widgets
@@ -95,15 +103,17 @@ export default function useWidgetFetch( | |||
spatialFilter: geometryToIntersect | |||
}) | |||
.then((data) => { | |||
onStateChange?.({ state: WidgetStateType.Success, data }); |
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.
Nice and convenient
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.
LGTM @zbigg
e9f8f90
to
f876afa
Compare
f876afa
to
e76ac3d
Compare
…sc-320253/implement-new-custom-operation-mechanism
Description
Shortcut: https://app.shortcut.com/cartoteam/story/320253/implement-new-custom-operation-mechanism-in-formulawidget-in-c4r
FormulaWidget support for
'custom'
aggregation expression passed asoperationExp
and newonStateChange
callbackInternal: useWidgetFetch support for
onStateChange
callbackType of change
Acceptance
N/A
Basic checklist