Rishabh00b opened a new pull request, #76698:
URL: https://github.com/apache/airflow/pull/76698

   Add airflowctl `eventlogs list` and `eventlogs get` commands.
   
   The API serves the audit log through `/eventLogs`, but airflowctl had no 
command to read it, so seeing who did what to a Dag, run or task meant calling 
the REST API by hand.
   
   - `eventlogs list` accepts `--dag-id`, `--task-id`, `--run-id`, `--event`, 
`--owner`, `--before`, `--after`, `--limit` (default 100), `--offset` and 
`--order-by`. Unset filters are not sent.
   - `eventlogs get <event_log_id>` returns one entry.
   - The commands are generated from the new `EventLogsOperations`; help texts, 
the help images and their hashes are updated, and both commands are added to 
the integration test list.
   
   Checks run: the airflow-ctl unit tests (new tests cover the request path and 
every query parameter), the help-text and command-coverage scripts, ruff and 
mypy on the changed files. The integration tests and the breeze-based hooks 
were not run locally (no Docker); the help images were generated with the same 
rendering as the committed ones.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (Claude Code)
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

  • [PR] Add airflowctl eventlogs... Rishabh00b (via GitHub) via commits

Reply via email to