-
Notifications
You must be signed in to change notification settings - Fork 2
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
migrate: find+replace DrawBoundary dataFieldBoundary
prop to fn
and remove dataFieldArea
prop
#4085
base: main
Are you sure you want to change the base?
Conversation
dataFieldBoundary
to fn
and remove dataFieldArea
propdataFieldBoundary
prop to fn
and remove dataFieldArea
prop
value={formik.values.dataFieldArea} | ||
onChange={formik.handleChange} | ||
value={formik.values.fn} | ||
disabled |
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.
This file is a good summary / convergence point of main significant changes throughout:
- Only support a single editor-facing data field prop (rather than two data fields)
- Many data fields (eg area in m2 & ha) can still be captured in passport/breadcrumbs by
handleSubmit
, but editor's don't need to be concerned with naming of those
- Many data fields (eg area in m2 & ha) can still be captured in passport/breadcrumbs by
- Change the underlying prop name for the data field so it's picked up in graph styling, search facets by default
- Disable the data field input similar to PlanningConstraints & Pay as it's actually very important for integrations that it's called exactly this
- Change the actual data field value prefix from
property.
toproposal.
to better align to schema
dataFieldBoundary
prop to fn
and remove dataFieldArea
propdataFieldBoundary
prop to fn
and remove dataFieldArea
prop
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.
Looks good to me, I really like these changes! Thanks so much for putting this together.
Couldn't see any mistakes in the changes or any overlooked changes.
Queueing up per migration plan: https://docs.google.com/spreadsheets/d/1Vtxp5BLweDPDooQoNhgOCYjCIBPRYIcOuyArGJRqOkI/edit?gid=0#gid=0
Planx-core counterpart here theopensystemslab/planx-core#594