<#9627 refactor: Use pattern matching to update th...
# meltano-repo-activity
g
#9627 refactor: Use pattern matching to update the schedule in `meltano schedule set` Pull request opened by edgarrmondragon ## Description ## Related Issues • Closes #XXXX ## Summary by Sourcery Refactor the
meltano schedule set
command to use Python 3.10 pattern matching for updating schedules and simplify the update logic Enhancements: • Use match-case pattern matching to update JobSchedule and ELTSchedule in place instead of separate helper functions • Remove the legacy
_update_job_schedule
and
_update_elt_schedule
functions and eliminate the old
Schedule
import • Introduce a
TransformMode
type alias for the
--transform
CLI parameter Tests: • Add assertions in CLI tests to verify schedule instance types and updated properties • Update test type annotations for clarity meltano/meltano