Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Conversation

@whitdog47
Copy link
Contributor

This pull request introduces the capability to log and view create and update events associated with signal definitions. This enhancement allows users to track changes and updates to signals over time, providing greater transparency and traceability.

Key Changes

  • Database Schema Update:

    • Added a new column signal_id to the event table to establish a relationship between events and signals.
    • Created a foreign key constraint to ensure referential integrity.
  • Model Updates:

    • Updated the Event and Signal models to include relationships for tracking events.
  • Service Enhancements:

    • Introduced log_signal_event function to log events related to signal creation and updates.
    • Modified create and update functions in the signal service to log events whenever a signal is created or updated.
  • API Changes:

    • Updated the create_signal and update_signal endpoints to include the current user, enabling event logging with user context.
  • Frontend Additions:

    • Added a new HistoryViewer.vue component to display the timeline of events for a signal.
    • Integrated the history viewer into the signal table, allowing users to view the history of a signal directly from the table interface.

Sample screenshot

Screenshot 2025-02-02 at 9 57 33 PM

@whitdog47 whitdog47 added the enhancement New feature or request label Feb 3, 2025
@whitdog47 whitdog47 requested a review from wssheldon February 3, 2025 17:23
@whitdog47 whitdog47 self-assigned this Feb 3, 2025
@whitdog47 whitdog47 merged commit cdebb4a into main Feb 3, 2025
9 checks passed
@whitdog47 whitdog47 deleted the enhancement/event-signal-log branch February 3, 2025 18:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants