diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f9adb54..fc990acb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,42 @@ ### Upcoming + +#### Enhancements + - Improved chart colors in the UI + - The OD reading CLI has a new option, `--snapshot`, that will start the job, take a single reading, and exit. + - A new CLI for pumps: `pio run pumps`. Add pumps as options: + ``` + pio run pumps --media 1 --waste 2 + ``` + will add 1ml of media, and remove 2ml. The order is important! You can specify the same pump many times: + ``` + pio run pumps --waste 2 --media 1 --waste 2 + ``` + - support for ?? + + +#### Web API changes + + - GET `/unit_api/jobs/running/` introduced + +#### Breaking changes + - plugins should migrate from `click_some_name` to autodiscover plugins, to importing `run`. Example: + ``` + import click + from pioreactor.cli.run import run + ... + + + @run.command("my_name") + @click.option("--my_option") + def my_name(my_option): + ... + ``` + + +#### Bug fixes + - fixed ui not showing 3p calibrations - experiment profiles start now use the unit_api directly. I think this mitigates the huey workers stampeding on each other when try to start many jobs. - - improved chart colors in the UI - - /jobs/running/ - - od_reading snapshot ### 25.1.21 diff --git a/pioreactor/cli/run.py b/pioreactor/cli/run.py index e93fe92c..68591c00 100644 --- a/pioreactor/cli/run.py +++ b/pioreactor/cli/run.py @@ -59,10 +59,12 @@ def run() -> None: run.add_command(click_od_blank) run.add_command(click_self_test) -# TODO: this only adds to `pio run` - what if users want to add a high level command? Examples? for plugin in plugin_management.get_plugins().values(): for possible_entry_point in dir(plugin.module): if possible_entry_point.startswith("click_"): + print( + "The `click` API is deprecated and will stop working in the future. You should update your plugins." + ) run.add_command(getattr(plugin.module, possible_entry_point)) if am_I_leader():