Skip to content

In-Memory Subscriber functionality#52

Merged
neelam-kushwah merged 4 commits intoeclipse-uprotocol:mainfrom
neelam-kushwah:subscriber
Jul 16, 2024
Merged

In-Memory Subscriber functionality#52
neelam-kushwah merged 4 commits intoeclipse-uprotocol:mainfrom
neelam-kushwah:subscriber

Conversation

@neelam-kushwah
Copy link
Contributor

@neelam-kushwah neelam-kushwah commented Jul 11, 2024

  • Added in-memory subscriber functionality.
  • Implemented API to check if a URI contains a wildcard.
  • Fixed bug in In-MemoryRpcClient.
  • Simplified mock transport class by removing complex logic, focusing on unit test requirements.
  • Updated README files
  • Added test cases to improve code coverage to 98%

#53 , #54

Implemented the client-side functionality for the uSubscription service communication, enabling the ability to subscribe and unsubscribe to topics. This update also manages various subscription states and handles subscription change notifications
@github-actions
Copy link

Code coverage report is ready! 📈

@neelam-kushwah neelam-kushwah marked this pull request as draft July 11, 2024 20:35
@github-actions
Copy link

Code coverage report is ready! 📈

@github-actions
Copy link

Code coverage report is ready! 📈

@github-actions
Copy link

Code coverage report is ready! 📈

@matthewd0123 matthewd0123 force-pushed the subscriber branch 2 times, most recently from 69f3d80 to e0b40df Compare July 11, 2024 21:36
@github-actions
Copy link

Code coverage report is ready! 📈

@github-actions
Copy link

Code coverage report is ready! 📈

@github-actions
Copy link

Code coverage report is ready! 📈

@neelam-kushwah neelam-kushwah marked this pull request as ready for review July 11, 2024 23:27
@neelam-kushwah neelam-kushwah force-pushed the subscriber branch 6 times, most recently from cc3fbfa to 2d52c2d Compare July 12, 2024 00:09
@github-actions
Copy link

Code coverage report is ready! 📈

@github-actions
Copy link

Code coverage report is ready! 📈

self.notification_handler: UListener = MyNotificationListener(self.handlers)
self.is_listener_registered = False
service_descriptor = usubscription_pb2.DESCRIPTOR.services_by_name["uSubscription"]
self.notification_uri = UriFactory.from_proto(service_descriptor, 0x8000)
Copy link
Contributor

Choose a reason for hiding this comment

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

Fine for now probably, but would be good I think not to have these vals hardcoded

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do it later as it requires parsing the proto

Copy link
Contributor

Choose a reason for hiding this comment

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

cool

Copy link
Contributor

@matthewd0123 matthewd0123 left a comment

Choose a reason for hiding this comment

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

LGTM!

@matthewd0123
Copy link
Contributor

Opened #55 to handle in a future PR

Copy link

@ankitmehta03 ankitmehta03 left a comment

Choose a reason for hiding this comment

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

Update Readme to remove examples showing uTransport = MagicMock, instead we can specify a comment saying "uTransport instance"

@github-actions
Copy link

Code coverage report is ready! 📈

Modified test cases, update READMEs and added examples to the README files
@neelam-kushwah neelam-kushwah force-pushed the subscriber branch 2 times, most recently from 486d19b to b78f750 Compare July 16, 2024 15:55
@github-actions
Copy link

Code coverage report is ready! 📈

@github-actions
Copy link

Code coverage report is ready! 📈

@github-actions
Copy link

Code coverage report is ready! 📈

Copy link

@ankitmehta03 ankitmehta03 left a comment

Choose a reason for hiding this comment

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

Approved for ReadMe docs

Copy link

@stevenhartley stevenhartley left a comment

Choose a reason for hiding this comment

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

Minor comments but nothing to hold off the merge

@@ -0,0 +1,157 @@
= uProtocol Communication Layer

Choose a reason for hiding this comment

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

Suggested change
= uProtocol Communication Layer
= uProtocol Communication Layer (uP-L2)

@neelam-kushwah neelam-kushwah merged commit 7ac8b2f into eclipse-uprotocol:main Jul 16, 2024
@neelam-kushwah neelam-kushwah self-assigned this Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Add Api to check for wildcard URIs Implement in-memory subscriber functionality

4 participants