Log AI settings clearup into activity log#4449
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the activity logging system to track “clearing” a user’s AI configuration as a new activity type, wiring it through the backend activity catalog, activity log type allowlist, and frontend activity-type configuration/tests.
Changes:
- Add a new activity type (
ai_configuration_deletion) to represent clearing AI configuration and include it in user-management activity type lists. - Map
AIConfigurationController.clear_ai_configuration(204) to the new activity type in the backend activity catalog. - Add frontend activity-type constant/config and update related JS/Elixir tests to include the new type.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| test/trento/activity_logging/activity_catalog_test.exs | Extends activity catalog expectations and adds a scenario for detecting clear-AI-config activity. |
| test/trento/activity_log_test.exs | Updates inclusion/exclusion tests to account for the new activity type. |
| test/trento_web/controllers/v1/activity_log_controller_test.exs | Updates the user-management activity type list used by controller tests. |
| lib/trento/activity_logging/activity_catalog.ex | Adds connection activity mapping for clear_ai_configuration → :ai_configuration_deletion (204). |
| lib/trento/activity_log.ex | Adds "ai_configuration_deletion" to the user-management log type exclusion list. |
| assets/js/lib/model/activityLog.test.js | Updates frontend model tests to include the new activity type. |
| assets/js/lib/model/activityLog.js | Adds frontend constant and UI config entry for ai_configuration_deletion. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
antgamdia
approved these changes
Jul 2, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
05e6cde to
2694ff9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR makes sure that clearing up AI settings is tracked in the activity log.
Follow up:
How was this tested?
Automated and IRL.