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

fix: allow namespaces with slashes #631

Conversation

connorsmith256
Copy link
Contributor

@connorsmith256 connorsmith256 commented Sep 7, 2023

Feature or Problem

This PR fixes a bug where we implicitly assumed namespaces wouldn't contain slashes. However, since call aliases can be defined by users, and our own examples include slashes in call aliases, this assumption is violated.

Instead, we assume the operation string Interface.Method won't contain slashes, and split from the right

Related Issues

Release Information

0.78.0-rc6

Consumer Impact

Users can now invoke actors via call aliases that include slashes

Testing

Built on platform(s)

  • x86_64-linux
  • aarch64-linux
  • x86_64-darwin
  • aarch64-darwin
  • x86_64-windows

Tested on platform(s)

  • x86_64-linux
  • aarch64-linux
  • x86_64-darwin
  • aarch64-darwin
  • x86_64-windows

Unit Test(s)

Updated tests to use a call alias with a slash

Acceptance or Integration

Manual Verification

Manually tested actor-to-actor calls with aliases which include a slash (pingpong example)

Signed-off-by: Connor Smith <connor.smith.256@gmail.com>
@connorsmith256 connorsmith256 merged commit 1829b27 into wasmCloud:main Sep 7, 2023
20 checks passed
@connorsmith256 connorsmith256 deleted the fix/allow-namespaces-with-slash branch September 7, 2023 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants