Skip to content

Update instances stale state redux#4446

Open
arbulu89 wants to merge 4 commits into
mainfrom
update-instances-stale-state-redux
Open

Update instances stale state redux#4446
arbulu89 wants to merge 4 commits into
mainfrom
update-instances-stale-state-redux

Conversation

@arbulu89

@arbulu89 arbulu89 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Description

Update redux store application and database instances from broadcasted messages.
And i have added the backend events in the activity log list to be displayed properly as well (the severity still needs to be changed).

How was this tested?

UT

Documentation changes

No

@arbulu89 arbulu89 added the enhancement New feature or request label Jul 2, 2026
@arbulu89 arbulu89 requested a review from Copilot July 2, 2026 07:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the frontend Redux state to react to newly broadcast “stale” events for application/database instances, and extends the Activity Log model so new backend activity types render with proper labels/messages.

Changes:

  • Add Redux slice actions + saga watchers/handlers to update stale_at for application and database instances.
  • Add reducer unit tests for the new stale_at update actions.
  • Add new Activity Log type mappings for “data marked stale / in sync”.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
assets/js/state/sapSystems.test.js Adds reducer test for updating stale_at on application instances.
assets/js/state/sapSystems.js Adds updateApplicationInstanceStaleAt action + new stale-change event constant/action.
assets/js/state/sagas/sapSystems.js Adds saga handler + watcher for APPLICATION_INSTANCE_STALE_CHANGED.
assets/js/state/sagas/databases.js Adds saga handler + watcher for DATABASE_INSTANCE_STALE_CHANGED.
assets/js/state/sagas/channels.js Registers new broadcast event names to dispatch stale-change actions.
assets/js/state/databases.test.js Adds reducer test for updating stale_at on database instances.
assets/js/state/databases.js Adds updateDatabaseInstanceStaleAt action + new stale-change event constant/action.
assets/js/lib/test-utils/factories/sapSystems.js Updates application instance factory fields and adds stale_at.
assets/js/lib/test-utils/factories/databases.js Updates database instance factory fields and adds stale_at.
assets/js/lib/model/activityLog.js Adds Activity Log config for new “data marked stale / in sync” activity types.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread assets/js/lib/test-utils/factories/sapSystems.js
Comment thread assets/js/lib/test-utils/factories/databases.js
Comment thread assets/js/state/sagas/sapSystems.js
Comment thread assets/js/state/sagas/databases.js
@arbulu89 arbulu89 force-pushed the update-instances-stale-state-redux branch from ce3ad8e to 8b470d4 Compare July 2, 2026 07:53
@arbulu89 arbulu89 force-pushed the update-instances-stale-state-redux branch from 8b470d4 to 26c97ce Compare July 2, 2026 09:01
@arbulu89 arbulu89 requested a review from skrech July 2, 2026 10:21
@arbulu89 arbulu89 marked this pull request as ready for review July 2, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

2 participants