Closed evrose54 closed 1 week ago
Good issue. Thank you, @evrose54.
Here is the original conversation regarding this issue, though some took place in an actual conversation.
For option 3 above, we could add --procflow
to the top-level parser, then use parser.parse_known_args()
to collect it before continuing to add subparsers. I think this would probably need to be done in GeoipsCLI.__init__()
.
Another option that occurred to me is to separate geoips run
and another subcommand, geoips run-legacy
where geoips run
would call the order-based procflow and geoips run-legacy
would allow calling the other procflows.
We have a working option for this now, but I think we just want to discuss whether the CLI flags for this are correct.
This was handled in #465. Closing. Will discuss if current solution is appropriate when going over the CLI next week.
Requested Update
Description
All GeoIPS / supporting GeoIPS Plugin Packages use some combination of
run_procflow ... --procflow <procflow_name>
ordata_fusion_procflow ... --procflow data_fusion
to produce their outputs. With the new updates of #455, we have changed this functionality withgeiops run <procflow_name>
. We've added code to support the aforementioned legacy calls, but it's more of a workaround than anything else.We should discuss exactly how we want to support normal
geoips run
calls andlegacy procflow
calls for the future, until we have theorder_based
procflow functional. There are a few options @jsolbrig and I have discussed for how to handle this (handled in a separate PR from #455 as this will require a decent amount of refactoring):—procflow
ingeoips run
calls. If provided:GeoipsRun<procflow_name>
command class.geoips run
:—procflow
(maybe others)geoips run config_based / data_fusion / single_source
order_based
procflow when supported.Background and Motivation
This came from a conversation about #455.
Alternative Solutions
Leave the code as is (that's what we're doing now but we need to address this eventually).
Code to demonstrate issue
geoips/commandline/commandline_interface.py:support_legacy_procflows
geoips/commandline/geoips_run.py