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

migrate: find+replace Calculate output prop with fn #4083

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jessicamcinchak
Copy link
Member

@jessicamcinchak jessicamcinchak commented Dec 17, 2024

Copy link

github-actions bot commented Dec 17, 2024

Pizza

Deployed 832dd4c to https://4083.planx.pizza.

Useful links:

@jessicamcinchak
Copy link
Member Author

@@ -19,7 +19,6 @@ export const getFlowSchema = async (flowId: string) => {
planx_variable:
nodeData.data?.fn ||
nodeData.data?.val ||
nodeData.data?.output ||
Copy link
Member Author

@jessicamcinchak jessicamcinchak Dec 17, 2024

Choose a reason for hiding this comment

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

This is a key benefit - we only need to account for nodeData.data?.fn when getting a flow's "schema" ✔️

@@ -9,7 +9,6 @@ const generalData: SearchFacets = ["data.fn", "data.val"];
const fileUploadAndLabelData: SearchFacets = ["data.fileTypes.fn"];

const calculateData: SearchFacets = [
"data.output",
Copy link
Member Author

@jessicamcinchak jessicamcinchak Dec 17, 2024

Choose a reason for hiding this comment

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

This is another key benefit - data.output is now simply picked up by generalData search facets ✔️

@jessicamcinchak jessicamcinchak marked this pull request as ready for review January 6, 2025 15:38
@jessicamcinchak jessicamcinchak requested a review from a team January 6, 2025 15:38
Copy link
Contributor

@RODO94 RODO94 left a comment

Choose a reason for hiding this comment

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

Worked through the Calculate comp and the code in your branch and couldn't find any more refs to .output and looks like you got all the right fields changed.

Only comment I have is on that merge conflict, to do with the autocomplete data fields work, imagine we would want to take in that change into this PR?

@jessicamcinchak
Copy link
Member Author

jessicamcinchak commented Jan 6, 2025

@RODO94 now rebased to main and rebuilding - sorry about that lingering file conflict 👍

@jessicamcinchak jessicamcinchak changed the title wip: find+replace Calculate output prop with fn migrate: find+replace Calculate output prop with fn Jan 6, 2025
Copy link
Contributor

@RODO94 RODO94 left a comment

Choose a reason for hiding this comment

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

Sick! Thanks so much

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.

2 participants