-
Notifications
You must be signed in to change notification settings - Fork 107
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
MM-55060 - Calls: Add PushTypeCalls for calls-specific push notifications #110
Conversation
Makefile
Outdated
@@ -23,7 +25,7 @@ ifeq ($(DIFF), 1) | |||
endif | |||
|
|||
PP_PKG=github.com/mattermost/mattermost-push-proxy/internal/version | |||
LDFLAGS="-X $(PP_PKG).gitVersion=$(GIT_VERSION) -X $(PP_PKG).gitCommit=$(GIT_HASH) -X $(PP_PKG).gitTreeState=$(GIT_TREESTATE) -X $(PP_PKG).buildDate=$(BUILD_DATE)" | |||
LDFLAGS="-X $(PP_PKG).gitVersion=$(GIT_VERSION) -X $(PP_PKG).buildHash=$(BUILD_HASH) -X $(PP_PKG).buildTagLatest=$(BUILD_TAG_LATEST) -X $(PP_PKG).buildTagCurrent=$(BUILD_TAG_CURRENT) -X $(PP_PKG).gitTreeState=$(GIT_TREESTATE) -X $(PP_PKG).buildDate=$(BUILD_DATE)" |
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.
Heads up that there are some changes to the Makefile here: #109.
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.
Thanks, merged and updated the Makefile.
# Conflicts: # Makefile
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.
Nicely done!
This approach solves the new plugin + new proxy + new app, but what about the other cases? For example what if the app is not up to date? Perhaps we should have a quick convo about this if you want me to clarify. In my mind, regardless of the combination of elements: server, proxy, plugin, app. The notification should work as was already introduced. Backwards compatibility needs to be kept to avoid bug reports |
@enahum Excellent point, overlooked that. Fixed (see: mattermost/mattermost#25405 (comment) ) for an explanation. Thank you! |
@cpoile thanks for the change.. now it seems to take care of the backwards compatibility |
@cpoile Is the |
@streamer45 Nope, but I did want to keep it so that it's there in previous versions if we ever do need it in the future. |
Summary
This is to support calls-specific push notifications, see also:
This exposes a
/version
route right beside the existing/root
route. It's not under the api because it's not part of the api (imo). I renamed thegit_hash
tobuild_hash
which is more accurate (esp considering we're also showing thegit_version
, which is the version of git, not of the proxy, so pretty confusing). I also shortened it to the short hash because there's no real reason to expose the full hash.The
/version
route will be requested once per calls plugin reload (in theonActivate
).This lets Calls be backward compatible with older push proxies and use correct typing in the future for calls push notification messages, which allows us to internationalize the call started push messages in calls v1.0.
I tagged Agniva on these because he was doing the push-proxy recently, but please review these too @enahum if you wish.
NOTE: will need to bump to 5.27.0 after this is merged for the Calls code to work.
Ticket Link