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

added configurable device id parsing #228

Closed
wants to merge 2 commits into from
Closed

Conversation

kristinapathak
Copy link
Contributor

@kristinapathak kristinapathak commented Jul 28, 2020

fixes #222

uses the new wrp-listener library:
https://github.com/xmidt-org/wrp-listener/tree/main/wrpParser

- moved creation of the device ID parser from configuration to its
  own function, called from the main function.
- added log statements for non-critical problems such as parsing a
  message failing or part of setting up the parser with configuration
  failing.
- added helpful errors instead of placeholders.
- started on unit tests; for the new function, added an inital
  skeleton of cases I plan to test.
@schmidtw
Copy link
Member

schmidtw commented Aug 4, 2020

@kristinaspring and I talked about the changes & we think the changes bring to light a few important issues that she highlights in issue #229 . I don't think Caduceus should be in the business of needing to do "smart parsing" of the wrp locators used as the wrp.source / dest fields to figure out the device id. It unfortunately has stepped down that path, but we should reconsider if there is a better way to achieve the desired outcome versus this approach.

@schmidtw schmidtw closed this Aug 4, 2020
@kristinapathak kristinapathak deleted the device-id branch March 18, 2021 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Device isn't always the Source in the WRP
3 participants