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

feat(network): Improve StreamPartitionInfo compatibility #2790

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

teogeb
Copy link
Contributor

@teogeb teogeb commented Oct 4, 2024

Improve backwards compatibility for StreamPartitionInfo. The format for contentDeliveryLayerNeighbors field was changed in #2738.

Open questions

  • Should we populate real data to the deprecatedContentDeliveryLayerNeighbors field to achieve better compatibility? With the current approach caller checks the version number and decides which field to read.

Copy link

linear bot commented Oct 4, 2024

@github-actions github-actions bot added the network Related to Network Package label Oct 4, 2024
@teogeb teogeb force-pushed the improve-NET-1312-compatibility branch from d46ddef to 79f594c Compare October 4, 2024 14:24
@teogeb teogeb requested review from juslesan and harbu October 4, 2024 15:41
Copy link
Contributor

@juslesan juslesan left a comment

Choose a reason for hiding this comment

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

Could populate the deprecated field aswell, but as far as I know the crawler and a debugging script used to check if a peer is online are the only use cases for the endpoint at the moment.

@teogeb teogeb merged commit b85e1fe into main Oct 7, 2024
24 checks passed
@teogeb teogeb deleted the improve-NET-1312-compatibility branch October 7, 2024 09:05
teogeb added a commit to streamr-dev/stream-metrics-index that referenced this pull request Oct 28, 2024
## Changes

- The `NodeInfo` format has changed (streamr-dev/network#2738, streamr-dev/network#2790)
  - we normalize the info in `NetworkNodeFacade`
  - the type of `NormalizedNodeInfo` is quite complex, but it will be simpler when we export new helper types from `trackerless-network` (streamr-dev/network#2822, not yet released)
- Using renamed converted functions, e.g. `getNodeIdFromPeerDescriptor` to `toNodeId`

## Future improvements

- Use these types: streamr-dev/network#2822
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
network Related to Network Package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants