feat: Persist and expose TssData#2492
Open
berryware wants to merge 15 commits intohiero-ledger:mainfrom
Open
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 10 |
TIP This summary will be updated as you push new changes. Give us feedback
041d220 to
020f8bc
Compare
72efadd to
7b06a44
Compare
- implement the interface on BlockNodeApp - add ApplicationStateFacility to the init() call on BlockNodePlugin - modify the tests to use the new init parameter. - have the BlockNodeApp call onContextUpdate for all plugins when it receives a call to updateTssData ____________________________________________________________________ Signed-off-by: berryware <231598+berryware@users.noreply.github.com> # Conflicts: # block-node/app/src/main/java/org/hiero/block/node/app/BlockNodeApp.java # block-node/app/src/testFixtures/java/org/hiero/block/node/app/fixtures/plugintest/PluginTestBase.java # block-node/block-access-service/src/main/java/org/hiero/block/node/access/service/BlockAccessServicePlugin.java # block-node/facility-messaging/src/main/java/org/hiero/block/node/messaging/BlockMessagingFacilityImpl.java # block-node/facility-messaging/src/test/java/org/hiero/block/server/messaging/BlockItemTest.java # block-node/facility-messaging/src/test/java/org/hiero/block/server/messaging/BlockNotificationTest.java # block-node/facility-messaging/src/test/java/org/hiero/block/server/messaging/DynamicBlockItemTest.java # block-node/facility-messaging/src/test/java/org/hiero/block/server/messaging/FacilityExceptionTest.java # block-node/facility-messaging/src/test/java/org/hiero/block/server/messaging/TestConfig.java # block-node/stream-publisher/src/test/java/org/hiero/block/node/stream/publisher/LiveStreamPublisherManagerTest.java # Conflicts: # block-node/server-status/src/test/java/org/hiero/block/node/server/status/ServerStatusDetailServicePluginTest.java # block-node/spi-plugins/src/test/java/org/hiero/block/node/spi/BlockNodePluginTest.java # Conflicts: # block-node/blocks-file-recent/src/main/java/org/hiero/block/node/blocks/files/recent/BlockFileRecentPlugin.java
- add interface ApplicationStateFacility - modify BlockNodePlugin.init() to accept an ApplicationStateFacility - modify BlockNodeApp to implement ApplicationStateFacility - modify BlockNodeApp to update all the plugins when TssData is received - update all the tests with the new init() parameter - add TssBootstrapConfig ____________________________________________________________________ Signed-off-by: berryware <231598+berryware@users.noreply.github.com>
____________________________________________________________________ Signed-off-by: berryware <231598+berryware@users.noreply.github.com>
- add tests to TssBootstrapPluginTest to test the loading of TssData from TssBootstrapConfig ____________________________________________________________________ Signed-off-by: berryware <231598+berryware@users.noreply.github.com>
- add new fields to the tests ____________________________________________________________________ Signed-off-by: berryware <231598+berryware@users.noreply.github.com>
- uodated some tests ____________________________________________________________________ Signed-off-by: berryware <231598+berryware@users.noreply.github.com>
- get BlockFileRecentPlugin compiling again ____________________________________________________________________ Signed-off-by: berryware <231598+berryware@users.noreply.github.com>
…h plugin. Don't add until it is used. ____________________________________________________________________ Signed-off-by: berryware <231598+berryware@users.noreply.github.com>
- add tests for onUpdateContextUpdate ____________________________________________________________________ Signed-off-by: berryware <231598+berryware@users.noreply.github.com>
____________________________________________________________________ Signed-off-by: berryware <231598+berryware@users.noreply.github.com>
____________________________________________________________________ Signed-off-by: berryware <231598+berryware@users.noreply.github.com>
- load the persisted data before initializing the plugins - perist the TssData when updateTssData is called ____________________________________________________________________ Signed-off-by: berryware <231598+berryware@users.noreply.github.com>
- update the java docs ____________________________________________________________________ Signed-off-by: berryware <231598+berryware@users.noreply.github.com>
0c275dd to
d1b3e6c
Compare
____________________________________________________________________ Signed-off-by: berryware <231598+berryware@users.noreply.github.com>
…sData ____________________________________________________________________ Signed-off-by: berryware <231598+berryware@users.noreply.github.com>
Codecov Report❌ Patch coverage is @@ Coverage Diff @@
## main #2492 +/- ##
============================================
+ Coverage 81.27% 81.39% +0.12%
- Complexity 1512 1522 +10
============================================
Files 139 141 +2
Lines 7131 7204 +73
Branches 754 758 +4
============================================
+ Hits 5796 5864 +68
- Misses 1010 1014 +4
- Partials 325 326 +1
... and 2 files with indirect coverage changes 🚀 New features to boost your workflow:
|
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.
Reviewer Notes
Related Issue(s)
Closes #2297
Closes #2298
Closes #1947