-
Notifications
You must be signed in to change notification settings - Fork 674
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
MF-785 - Change CanAccess to CanAccessByKey #894
Conversation
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
@nwneisen great initiative. However this change will probably impact Aedes and VerneMQ MQTT adapters, as they depend on protobuf (which was changed). Can you please verify if this is the case, and do the necessary changes over there as well (at least for Aedes, and I can do Erlang stuff for VerneMQ later). |
@nwneisen Also, please generate |
@dusanb94 these seem to be commited. Also I double-checked that Verne does not use However, I think that Aedes calls need to be adjusted. |
On double-checking PR Aedes code seems to be handled as well. I have good impression about this PR ;). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@nwneisen I tried updating your branch via GitHUb UI button (as you have maintainer approvals, and we would like to merge this PR). However, CI is falling - probably because wrong protoc version. Can you try updating the branch manually to see if we can fix this issue? Our CI script seems to use this version of @dusanb94 can we take a look at bumping this |
Codecov Report
@@ Coverage Diff @@
## master #894 +/- ##
==========================================
- Coverage 84.58% 84.54% -0.05%
==========================================
Files 74 74
Lines 4879 4879
==========================================
- Hits 4127 4125 -2
- Misses 511 513 +2
Partials 241 241
Continue to review full report at Codecov.
|
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
@drasko I checked my protoc version and I was indeed on 3.9.1. It looks like the build is now successful and I just needed to push with a signed commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Merged! Thanks @nwneisen! |
* Change CanAccess to CanAccessByKey for things Signed-off-by: Nick Neisen <nwneisen@gmail.com> * Change CanAccess in remaining occurances Signed-off-by: Nick Neisen <nwneisen@gmail.com> * Regenerate generated files Signed-off-by: Nick Neisen <nwneisen@gmail.com> * Generate pb.go files with protoc 3.6.1 Signed-off-by: Nick Neisen <nwneisen@gmail.com>
What does this do?
Change
CanAccess
code to useCanAccessByKey
Which issue(s) does this PR fix/relate to?
Resolves #785
List any changes that modify/break current functionality
Endpoint
/channels/<channel id>/access
was changed to/channels/<channel id>/access-by-key
. This could cause issues if it was being access outside of the SDK. It didn't seem to be exposed.Have you included tests for your changes?
No new tests were created. Current tests were verified to still be passing.
Did you document any new/modified functionality?
No, new functionality was not added and this endpoint is not documented.
Notes