-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
🪟 🧹 Add cron string to segment calls, remove outdated schedule
property use
#17672
Conversation
… return value format
…irbytehq/airbyte into teal/remove-schedule-property-from-api
onStatusUpdating={onStatusUpdating} | ||
disabled={!allowSync} | ||
connection={connection} | ||
frequencyType={getFrequencyType(connection.scheduleData?.basicSchedule)} |
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 can be figured out directly in the child component from the connection object.
#15609 tracks converting the child component to use the service and remove the need to send connection
as a prop at 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.
Code LGTM. I assume Natalie was good w/ this change to analytics?
Yes @krishnaglick I ran it past @nataliekwong in Slack! |
…erty use (airbytehq#17672) * update segment schedule frequency calls to include cron string, unify return value format * remove unused frequencyType prop * cleanup * rename and move util
What
This updates the code still using the
connection.schedule
property for an analytics call (and only for that analytics call). We also had a few different formats that we were sendingfrequency
data.Now, all frequency data is sent as either:
I did leave the dropdown analytics call as it was since that call seemed focused specifically on what a user chooses from the dropdown.
How
Updated the schedule util to produce human readable strings from the
scheduleData
object. Utilize this method in the analytics calls.Recommended reading order
util.tsx
Note:
After this, we will be able to fully remove the
schedule
property fromWebBackendConnectionRead
🚨 User Impact 🚨
None