Skip to content

Add loaded status by root network - #1072

Open
ghazwarhili wants to merge 8 commits into
mainfrom
add-loaded-status-by-root-network
Open

Add loaded status by root network#1072
ghazwarhili wants to merge 8 commits into
mainfrom
add-loaded-status-by-root-network

Conversation

@ghazwarhili

@ghazwarhili ghazwarhili commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

PR Summary

NetworkLoadStatus enum (LOADED, LOADING, UNLOADED) and a network_load_status column on root_network (migration, default LOADED for existing rows)
Two new supervision endpoints:

  • GET /supervision/studies/loaded — study is returned if at least one of its root networks is LOADED
  • GET /supervision/studies/unloaded — study is returned only if all of its root networks are UNLOADED

invalidateStudyRootNetwork gained a skipElementUpdatedNotification parameter, letting a caller unbuild/clean up a root network without firing the element.update notification that bumps lastModificationDate in directory-server

new root network -> LOADED ==> Entity default set once the network import has actually succeeded
LOADED/UNLOADED -> LOADING ==> recreateNetwork (reopening a study whose network was unloaded)
LOADING -> LOADED ==> Async case-import success (ConsumerService, NETWORK_RECREATION)
LOADING -> UNLOADED ==> Case-import failure
LOADED -> UNLOADED ==> invalidateStudyRootNetwork

DELETE /supervision/studies/{id}/invalidate -> for each root network: unbuild all nodes, delete the network from network-store, networkLoadStatus -> UNLOADED, called with skipElementUpdatedNotification=true so no element.update message is sent lastModificationDate in directory-server is untouched

GET /supervision/studies/unloaded will now include this study once every root network is UNLOADED

@coderabbitai

coderabbitai Bot commented Aug 25, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 5e099c5a-3eac-46a1-9cc0-6083ff7d3bc1

Warning

Your free Security trial is over. An organization admin can activate billing to continue.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
72.2% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant