You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Prab-27 (via GitHub)" <gi...@apache.org> on 2025/07/28 07:01:00 UTC

Re: [PR] bugfix(airflowctl): Prevent BaseOperations to be a command and fix bugs [airflow]

Prab-27 commented on code in PR #53800:
URL: https://github.com/apache/airflow/pull/53800#discussion_r2234965691


##########
airflow-ctl/src/airflowctl/ctl/cli_config.py:
##########
@@ -348,10 +350,20 @@ def __init__(self, file_path: str | Path | None = None):
         self.commands_map = {}
         self.group_commands_list = []
         self.file_path = inspect.getfile(BaseOperations) if file_path is None else file_path
+        # Excluded Lists are in Class Level for further usage and avoid searching them
         # Exclude parameters that are not needed for CLI from datamodels
         self.excluded_parameters = ["schema_"]
         # This list is used to determine if the command/operation needs to output data
         self.output_command_list = ["list", "get", "create", "delete"]
+        self.exclude_operation_names = ["LoginOperations", "VersionOperations", "BaseOperations"]
+        self.exclude_method_names = [
+            "error",
+            "__init__",
+            "__init_subclass__",

Review Comment:
   Do we also need to add `execute_list` method here, or is it not required in this context?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org