Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add schema registry and migrator components #9710

Open
wants to merge 37 commits into
base: main
Choose a base branch
from

Conversation

kselveliev
Copy link
Contributor

@kselveliev kselveliev commented Nov 5, 2024

Description:
This PR adds subcomponents needed for reusable services -
ServicesRegistryImpl, SchemaRegistryImpl and ServiceMigratorImpl components

This PR adds:
ServicesRegistryImpl class similar to FakeServicesRegistry in services + unit tests
SchemaRegistryImpl class similar to FakeSchemaRegistry in services + unit tests
ServiceMigratorImpl class similar to FakeServiceMigrator in services + unit tests

Related issue(s):

Fixes #9260

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@kselveliev kselveliev requested a review from a team as a code owner November 5, 2024 14:33
@kselveliev kselveliev self-assigned this Nov 5, 2024
@kselveliev kselveliev added the web3 Area: Web3 API label Nov 5, 2024
@steven-sheehy steven-sheehy added the enhancement Type: New feature label Nov 5, 2024
@steven-sheehy steven-sheehy added this to the 0.118.0 milestone Nov 5, 2024
@steven-sheehy steven-sheehy changed the title 09260- Add schema registry and migrator components Add schema registry and migrator components Nov 5, 2024
@@ -50,7 +50,7 @@ public SelfNodeInfo selfNodeInfo() {
@Nonnull
@Override
public List<NodeInfo> addressBook() {
throw new UnsupportedOperationException("Address book is not supported.");
return List.of(mockSelfNodeInfo());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This method will be used when we build the state. That is why this change is in the PR

kselveliev and others added 7 commits November 8, 2024 17:15
Signed-off-by: Kristiyan Selveliev <[email protected]>
Signed-off-by: Bilyana Gospodinova <[email protected]>
Signed-off-by: Bilyana Gospodinova <[email protected]>
Signed-off-by: Bilyana Gospodinova <[email protected]>
Signed-off-by: Bilyana Gospodinova <[email protected]>
Signed-off-by: Bilyana Gospodinova <[email protected]>
Signed-off-by: Bilyana Gospodinova <[email protected]>
Signed-off-by: Bilyana Gospodinova <[email protected]>
Signed-off-by: Bilyana Gospodinova <[email protected]>
@steven-sheehy steven-sheehy modified the milestones: 0.118.0, 0.119.0 Nov 11, 2024
Signed-off-by: Bilyana Gospodinova <[email protected]>
Signed-off-by: Bilyana Gospodinova <[email protected]>
Signed-off-by: Bilyana Gospodinova <[email protected]>
Signed-off-by: Bilyana Gospodinova <[email protected]>
Signed-off-by: Bilyana Gospodinova <[email protected]>
Signed-off-by: Bilyana Gospodinova <[email protected]>
Signed-off-by: Bilyana Gospodinova <[email protected]>
Signed-off-by: Bilyana Gospodinova <[email protected]>
Signed-off-by: Bilyana Gospodinova <[email protected]>
Signed-off-by: Bilyana Gospodinova <[email protected]>
Signed-off-by: Bilyana Gospodinova <[email protected]>
Signed-off-by: Bilyana Gospodinova <[email protected]>
Signed-off-by: Bilyana Gospodinova <[email protected]>
Base automatically changed from 09259-state-implementation to main November 15, 2024 16:06
Copy link

codecov bot commented Nov 15, 2024

Codecov Report

Attention: Patch coverage is 97.93814% with 2 lines in your changes missing coverage. Please review.

Project coverage is 92.27%. Comparing base (8a78609) to head (7feac7d).

Files with missing lines Patch % Lines
...rror/web3/state/components/SchemaRegistryImpl.java 96.42% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9710      +/-   ##
============================================
- Coverage     92.35%   92.27%   -0.09%     
- Complexity     7635     7766     +131     
============================================
  Files           927      948      +21     
  Lines         32085    32437     +352     
  Branches       4083     4113      +30     
============================================
+ Hits          29632    29930     +298     
- Misses         1496     1543      +47     
- Partials        957      964       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Kristiyan Selveliev <[email protected]>
Signed-off-by: Kristiyan Selveliev <[email protected]>
Signed-off-by: Kristiyan Selveliev <[email protected]>
Copy link

sonarcloud bot commented Nov 15, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Type: New feature web3 Area: Web3 API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add needed subcomponents for State initialization
3 participants