-
Notifications
You must be signed in to change notification settings - Fork 25
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
[GH-53] Accept or decline meetings from the notification message #79
Conversation
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.
Great job @larkox! I have some non-blocking requests
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-branch |
@DHaussermann in order to test this:
|
@larkox I don't see the expected for
I redeployed after the merge in from Master earlier. Please advise on further isolation steps. |
@DHaussermann It feels weird. It is working for me, but just after a while after creating the subscription. It feels like sometimes MS just do not send the notification (no apparent reason). @mickmister have you encountered this before? Any idea about this? |
It has happened to me several times before; but if it's happening now @DHaussermann should be able to retry; or we can do a zoom with @larkox or me and debug online. |
Another side note, the subscriptions right now have a short lifetime (made bigger in a different PR if I am not mistaken). Make sure you have an active subscription by typing |
@larkox Your suspicion above was correct that deliveries will not start right away. Also seem like if I wait over 15 min the subscription is gone so it was hard to see this work. (I am aware of Lev's PR to extend and renew them) That being said maybe we could still connect on this. I can get the the event message when it is first sent but for a 1st pass - I see some other issues. |
@DHaussermann I tracked down several of the problems.
I found out that the delays also happen with the updates. You must see a call in ngrok (or any other traffic log of the server) to
The first one should be accepted. Subsequent changes are not accepted due to Microsoft changing the id of the event. The only solution for this would imply several changes and bad user experience in my opinion, so I will make so once you have decided something, you cannot change it in Mattermost.
The formatting of these messages is not on the scope of this PR. |
…o an event after responding with post action
Codecov Report
@@ Coverage Diff @@
## master #79 +/- ##
==========================================
+ Coverage 25.31% 25.71% +0.40%
==========================================
Files 61 62 +1
Lines 2303 2329 +26
==========================================
+ Hits 583 599 +16
- Misses 1654 1664 +10
Partials 66 66
Continue to review full report at Codecov.
|
@larkox I'm afraid I don't have much info to add about these 2 issues.
I am also noticing another issue which may be the same as what I'm seeing in 1. For some reason, only the 1st event invite is delivering an event to me in a DM. In the past I saw this and assumed it was caused by the subscription time to live. But, now I think I'm seeing an issue which may also explain why I'm not getting event updated DMs. Can you try and repo this...
Please advise on next steps for this. Maybe we could set a time to connect if we aren't seeing the same results. |
@DHaussermann Sorry for a superficial comment in a hurry. I think only some of the event updates trigger subscription messages in MSGraph. I am 100% sure that changing the time of the event does, but I am pretty sure that editing the details does not. Have not looked for the detailed documentation on what changes are broadcast. |
@larkox just a heads-up I'll need to redeploy and test this again. I'll let you know if I see any change. |
@DHaussermann I found the error with the reply to the events. It should be fixed now. It might be related to the other error of new events not showing, but I am not really sure about that. It feels like notifications come from Microsoft at different speeds (I made one event, received nothing, I made a second event, received the second, and shortly after I received the first). There is not much we can do on that front, apparently. Nevertheless, it is working on my end, so whenever you are going to give it another run, ping me and I can see if there is anything different in your environment that might make this happen. |
@larkox I have tested this again. Yes I am also seeing that the events DMs are no delivered reliably. If I create several invites in a row, they are not delivered at the same time or chronologically. ~~I still have not seen a DM for an event update though. ~~ |
@larkox quick follow-up I do see updates working! They were all delivered at once about 10 minutes later. Last question on this PR - Selecting anything other than |
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.
Tested and passed
I believe everything in the scope of this PR is now working.
- Event invite are received
- Event updates are received
- All acceptance statuses can be used successful and are correctly reflected in MS Calendar
- There is one reaming issue that acceptance status cannot be changed afterwards. @larkox has provided an explanation
The first one should be accepted. Subsequent changes are not accepted due to Microsoft changing the id of the event. The only solution for this would imply several changes and bad user experience in my opinion, so I will make so once you have decided something, you cannot change it in Mattermost.
I have created #91 to follow-up on possible solutions for this.
LGTM!
Summary
Improve the behaviour for accepting or declining meetings, and improve the behaviour of notifications.
Ticket Link
#53