Conversation
Replaces the unbounded page_size={count} pattern that fetches ALL logs
in one request (causing OOM on large activations) with:
- Initial load: fetch newest 5000 logs, reverse for chronological display
- Polling: log_timestamp__gt for new logs every 5s while running
- Scroll-back: log_timestamp__lt for older history on scroll to top
Resolves: AAP-83306
Assisted by: Claude Opus 4.6
…ion form Shows a warning alert when DEBUG log level is selected, explaining the storage impact. Adds a store_debug_logs checkbox (visible only at DEBUG level) that controls whether DEBUG lines are persisted to the database. The checkbox resets to false when switching away from DEBUG. Resolves: AAP-84685 Assisted by: Claude Opus 4.6
Adds "Clear logs" button on the activation History tab (per-activation) and "Clear all logs" on the Activations list page (superuser only). Both show a confirmation dialog and display a toast with the deleted count. Resolves: AAP-84684 Assisted by: Claude Opus 4.6
Contributor
|
@B-Whitt — The following PR checks have failed:
Please address these failures. |
|
Contributor
|
@B-Whitt — SonarQube Quality Gate failed:
Please address the SonarQube findings. |
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.


Summary
page_size={count}with capped initial load (5000 newest, reversed for chronological), timestamp-based polling for new logs, and scroll-back for historystore_debug_logscheckbox to opt in to DB storage of DEBUG linesChanges
frontend/eda/rulebook-activations/ActivationInstancePage/ActivationInstanceEvents.tsx— rewrote log fetching with timestamp paginationfrontend/eda/rulebook-activations/RulebookActivationForm.tsx— DEBUG warning alert + store_debug_logs checkboxfrontend/eda/interfaces/EdaRulebookActivation.ts— addedstore_debug_logsto create typefrontend/eda/rulebook-activations/RulebookActivationPage/RulebookActivationHistory.tsx— per-activation clear logs buttonfrontend/eda/rulebook-activations/hooks/useRulebookActivationsActions.tsx— global clear all logs action (superuser only)Test Plan
npx tsc --noEmit --project frontend/eda/tsconfig.json)Dependencies
log_timestamp__gt/log_timestamp__ltfilters,store_debug_logsfield, and purge API endpointsJira
Resolves: AAP-83306, AAP-84685, AAP-84684
Parent: AAP-77938