github-actions[bot] opened a new pull request, #77413:
URL: https://github.com/apache/airflow/pull/77413

   * UI: Page the audit log without counting every event
   
   On busy installs the Audit Log page took tens of seconds to load, because
   every page counted the whole log table and then skipped rows with OFFSET.
   The Task Instances and Dag Runs lists already avoid that with cursor
   pagination, so the audit log now pages the same way, and it skips the
   count entirely since the page only needs to know whether more rows exist.
   
   The date filter is labeled When because it filters the When column, not
   a logical date.
   
   Co-Authored-By: Claude <[email protected]>
   
   * UI: Open a switched task or run on the first page of its table
   
   A table cursor only points into the list it came from. Carrying it to
   another task, run or map index opened that view partway through a list
   the user never paged, with no sign anything was skipped.
   
   Co-Authored-By: Claude <[email protected]>
   
   * Keep the audit log cursor on the stored owner name
   
   The response builder replaces an empty owner_display_name with the owner on
   the row itself, so cursors built afterwards pointed at a value the database
   never sorted on, and paging by owner_display_name never ended.
   
   Co-Authored-By: Claude <[email protected]>
   
   * Show a capped event count in the audit log
   
   Clients reading total_entries keep getting an integer in cursor mode, so the
   response change stays additive, and the count stops at the cap instead of
   reading the whole log table.
   
   Co-Authored-By: Claude <[email protected]>
   
   * Reject cursor pages sorted by the event's extra payload
   
   A cursor carries the row's sort values, so sorting by the unbounded extra
   text could produce tokens too long to send back, and MySQL orders TEXT by a
   prefix only, so keyset pages could skip or repeat rows.
   
   Co-Authored-By: Claude <[email protected]>
   
   ---------
   (cherry picked from commit 5288c678669e81049f5b1a28800e2ee3c71a8f96)
   
   Co-authored-by: Brent Bovenzi <[email protected]>
   Co-authored-by: Claude <[email protected]>


-- 
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] [v3-4-test] Audit Log cu... github-actions[bot] (via GitHub) via commits

Reply via email to