Skip to content

fix(audit-logs): support agentic workflow targets - #2859

Merged
RemiBonnet merged 3 commits into
stagingfrom
fix/agentic-workflow-audit-logs-staging
Aug 11, 2026
Merged

fix(audit-logs): support agentic workflow targets#2859
RemiBonnet merged 3 commits into
stagingfrom
fix/agentic-workflow-audit-logs-staging

Conversation

@RemiBonnet

Copy link
Copy Markdown
Member

Summary

Issue: N/A — regression found on AWS tests

Fix the organization audit log view and target filter when agentic workflow events are returned.

  • Update qovery-typescript-axios to 1.1.947, which exposes OrganizationEventTargetType.AGENTIC_WORKFLOW.
  • Treat agentic workflow targets as typed services and link them to their service overview.
  • Add agentic workflows to the hierarchical target dropdown: project → environment → workflow.
  • Gracefully render unsupported future target types as plain text instead of crashing the entire audit log view.
  • Add regression coverage for agentic workflow rendering, unknown target types, and dropdown navigation.

Root cause: the backend returned AGENTIC_WORKFLOW audit targets before that value was available in the generated TypeScript client enum. The row renderer assumed every runtime target type existed in its link-renderer map, while the hierarchical dropdown did not classify agentic workflows as services.

This PR reapplies the fix directly on staging after #2858 was merged into feat/agentic-workflow-ui-updates.

Screenshots / Recordings

Not applicable — behavior-only crash and filter fix.

Testing

  • Changes tested locally in the relevant Console's pages and Storybooks
  • yarn test or yarn test -u (if you need to regenerate snapshots)
  • yarn format
  • yarn lint

Validation details:

  • Targeted audit-log tests: 23 passed.
  • ESLint: no errors; existing warnings only.
  • git diff --check: passed.
  • Diff verified against origin/staging: six expected files only.

PR Checklist

  • I followed naming, styling, and TypeScript rules (see .cursor/rules)
  • I performed a self-review (diff inspected, dead code removed)
  • I titled the PR using Conventional Commits with a scope when possible (e.g. feat(service): add new Terraform service) - required for semantic-release
  • I only kept necessary comments, written in English (watch for useless AI comments)
  • I involved a designer to validate UI changes if I am not a designer
  • I covered new business logic with tests (unit)
  • I confirmed CI is green (Codecov red can be accepted)
  • I reviewed and executed locally any AI-assisted code

@RemiBonnet

Copy link
Copy Markdown
Member Author

Qovery Preview

Qovery can create a Preview Environment for this PR.
To trigger its creation, please post a comment with one of the following command.

Command Blueprint environment
/qovery preview cc1de7de-94e5-40f8-8e45-bc8986d9dfec storybook
/qovery preview 964984c5-fba6-4371-88d3-a5daf99642ab test-prod
/qovery preview 28c47145-c8e7-4b9d-8d9e-c65c95b48425 staging
/qovery preview {all|UUID1,UUID2,...} To preview multiple environments

This comment has been generated from Qovery AI 🤖.
Below, a word from its wisdom :

There is no better time than now, better future does not exist

@nx-cloud

nx-cloud Bot commented Aug 11, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit beb0dfd

Command Status Duration Result
nx run console:build --parallel=3 --configurati... ✅ Succeeded 1m 8s View ↗
nx affected --target=test --parallel=3 --config... ✅ Succeeded 3m 19s View ↗
nx affected --target=lint --parallel=3 ✅ Succeeded 3m 29s View ↗
nx-cloud record -- yarn nx format:check ✅ Succeeded 6s View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-08-11 12:48:42 UTC

@RemiBonnet
RemiBonnet marked this pull request as ready for review August 11, 2026 12:41
@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 61.11111% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 47.65%. Comparing base (24648e0) to head (beb0dfd).

Files with missing lines Patch % Lines
...ture/src/lib/utils/target-type-selection-utils.tsx 46.15% 7 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           staging    #2859      +/-   ##
===========================================
- Coverage    47.68%   47.65%   -0.04%     
===========================================
  Files         1213     1278      +65     
  Lines        26336    27547    +1211     
  Branches      7855     8042     +187     
===========================================
+ Hits         12559    13128     +569     
- Misses       11642    12190     +548     
- Partials      2135     2229      +94     
Flag Coverage Δ
unittests 47.65% <61.11%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@RemiBonnet
RemiBonnet merged commit d94870d into staging Aug 11, 2026
7 checks passed
@RemiBonnet
RemiBonnet deleted the fix/agentic-workflow-audit-logs-staging branch August 11, 2026 12:51
@RemiBonnet

Copy link
Copy Markdown
Member Author

🎉 This PR is included in version 1.335.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants