NASA-AMMOS / aerie-cli

An unofficial CLI for interacting with Aerie planning software
MIT License
3 stars 4 forks source link

Ability to Upload Scheduling Goals to All Plans with Mission Model ID #70

Open zgoldberg22 opened 1 year ago

zgoldberg22 commented 1 year ago

Addresses #69

Updated scheduling "upload" method such that if you do not have to specify the plan-id, the scheduling goals will upload to each plan in the specified model.

cartermak commented 1 year ago

Since there are already so many queries in this class, I might suggest you use an existing query instead of adding get_all_activity_plans_by_model. You can filter the results from list_all_activity_plans in the scheduling command, for example:

for plan in filter(lambda p: p.model_id == model_id, aerie_client.list_all_activity_plans()):
    plan_id = plan.id
    # etc.