Add loaded status by root network - #1072
Open
ghazwarhili wants to merge 8 commits into
Open
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 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. Comment |
|
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.


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:
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