Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add gtxmessaging Notification Support #4481
Add gtxmessaging Notification Support #4481
Changes from 3 commits
0e7ef54
ac109d0
a028373
a5742d8
b29cf1e
24e2491
7696e7e
7ce1cd7
3a2c001
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
What is returned in the
message-status
field?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.
E.g.
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.
I think a message should only be marked as successfully sent iff
response["message-status"] === "OK"
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.
Again, I aligned my implementation with the other existing notification providers in uptime kuma. The ones I checked all discard the results from the API provider. E.g.
I appreciate your thoroughness but begin to wonder why things that seem to be totally ok in other providers are not ok in this one.
I can add a check for the message status. However the API documentation doesn't state which values can be returned for
message-status
. I could only return a message relaying the message-status. Without knowing the possible values we run the risk of reporting false-positives (e.g messages could be queued up resulting in status likeDELAYED
orQUEUED
).If you insist I will add the check. I personally see no need at this time since the API documentation doesn't describe error cases with an HTTP 200 response. I tested with invalid phone numbers. These also return HTTP 200 with message status
OK
.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.
This depends on the thoroughness of the code review.
The review comments you in an OSS project might not always reflect the current state of the code (while useful for the initial draft of a PR), but rather the level of software-quality the project wants to be at.
Here this came up because I looked at the API docs and saw that 200 might not indicate success as normally thought.