-
Notifications
You must be signed in to change notification settings - Fork 42
Notifications #79
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
Notifications #79
Conversation
jonbartels
left a comment
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.
Add .vscode and .project to .gitignore
Thank you for the PR!
|
I've cleaned up the code and added tests. I've drafted a PR to @kelaompachai 's main. |
|
I rebased to get rid of the out-of-scope commits that had to do with .project, .vscode, .gitignore. |
jonbartels
left a comment
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.
Several Java 8 compatibility issues.
server/test/com/mirth/connect/client/core/ConnectServiceUtilTest.java
Outdated
Show resolved
Hide resolved
server/src/com/mirth/connect/client/core/ConnectServiceUtil.java
Outdated
Show resolved
Hide resolved
server/src/com/mirth/connect/client/core/ConnectServiceUtil.java
Outdated
Show resolved
Hide resolved
server/src/com/mirth/connect/client/core/ConnectServiceUtil.java
Outdated
Show resolved
Hide resolved
|
I'm out of gas trying to merge correctly. I have java 8 compatible code sitting on this commit. I'd appreciate help, otherwise it's dead on the vine. |
|
I got rogin's java 8 compatible code working on my machine and pushed it up into this pr. |
|
I did have to manually edit the server/.classpath file to get it to work. |
server/src/com/mirth/connect/client/core/ConnectServiceUtil.java
Outdated
Show resolved
Hide resolved
|
I did some testing on Saturday.
Correction needed - there are no notifications to show, then do not show the notification popup.
Links are clickable This test case passed this is the main workflow. GJ! Improvement requested:
Is that data included in the payload returned from git or would it require a second fetch? |
|
The most recent commit should address the requested more data improvement. |
|
I pushed changes to not show the dialog when there are no notifications |
server/src/com/mirth/connect/client/core/ConnectServiceUtil.java
Outdated
Show resolved
Hide resolved
server/src/com/mirth/connect/client/core/ConnectServiceUtil.java
Outdated
Show resolved
Hide resolved
server/test/com/mirth/connect/client/core/ConnectServiceUtilTest.java
Outdated
Show resolved
Hide resolved
|
Brainstorming idea on a commit. Maybe it's over designing, but I noticed the branding branch and refactored the release URL to |
I figured it was out of scope for this PR, but at some point I'd like to make a plugin interface for notification suppliers, and this could become a reference implementation. I know there have been requests in the past for people to be able to create their own notifications to send to their users and may prefer a notification source other than github releases. I didn't want those ideas to slow progress on this PR, which I think does a fine job of filling a short-term need. |
|
The implementation looks quite impressive and massive kudos to @kelaompachai for building it! But there's one but I'm having a hard time overlooking. Another thing I see little value in is having the notifications version-specific. In my opinion we don't really have that much notifications and info specific to a single version that this more useful than it is complex. |
- Added library java-semver-0.10.2.jar for version parsing and comparison. - Refactored to use streams and added tests - No longer calls a self-hosted service, so active extensions are no longer provided as part of the request. Co-authored-by: Richard Ogin <rogin@users.noreply.github.com> Co-authored-by: Jon Bartels <jon.bartels@teladochealth.com> Co-authored-by: Tony Germano <tony@germano.name> Signed-off-by: kelaompachai <141376761+kelaompachai@users.noreply.github.com> Signed-off-by: Richard Ogin <rogin@users.noreply.github.com> Signed-off-by: Tony Germano <tony@germano.name> Issue: #24
|
I rebased this PR, made some changes, and then squashed it.
|
gibson9583
left a comment
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


Update client notifications to pull from github Release API
longer provided as part of the request.