Skip to content

fix: fix audit log search #16944

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 15, 2025
Merged

fix: fix audit log search #16944

merged 1 commit into from
Mar 15, 2025

Conversation

aslilac
Copy link
Member

@aslilac aslilac commented Mar 14, 2025

this recently added early return means that any "invalid" query (including a partial one while typing) will entirely crash the audit logs page. the parsing logic on the backend is incredibly strict currently, and so trying to type anything into the search bar will break the entire page.

there is logic in the AuditPageView component that is supposed to render this error value, and that will do so without removing the search bar from the page. we can just let that code do what it's supposed to, and don't need to do any handling here.

@aslilac aslilac added the hotfix PRs only. Harmless small change. Only humans may set this. label Mar 14, 2025
Copy link

@cdr-bot cdr-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is a hotfix and has been automatically approved.

  • ✅ Base is main or release branch
  • ✅ Has hotfix label
  • ✅ Head is from coder/coder
  • ✅ Less than 100 lines

@aslilac aslilac merged commit f01ee96 into main Mar 15, 2025
34 checks passed
@aslilac aslilac deleted the lilac/fix-audit-page branch March 15, 2025 00:05
@github-actions github-actions bot locked and limited conversation to collaborators Mar 15, 2025
@stirby
Copy link
Collaborator

stirby commented Mar 15, 2025

/cherry-pick release/2.20

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
hotfix PRs only. Harmless small change. Only humans may set this.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants