-
Notifications
You must be signed in to change notification settings - Fork 127
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-507,699] Add Support for DM subscriptions for watchers and reporter #872
Conversation
…#1) * [MI-2088]:Add Support for DM subscriptions for watchers and reporters * [MI-2088]: Review Fixes 1. Improved the name of certain variable 2. Improved spacing * [MI-2088]:Revieww fixes 1.Changes the names of few variables 2.Improved code complexity * [MI-2088]: Review fixes done 1.Changed the name of few variables * [MI-2088]:fixed review fixes * [MI-2088]:fixed review fixes * [MI-2088]:fixed review fixes Co-authored-by: Kshitij Katiyar <kshitij.katiyar@brightscout.com>
Hello @Kshitij-Katiyar, Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here. |
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.
Hi! I'm Javi, from Mattermost (first week), I have a couple of comments, let me know what you think!
Thank you for the hard work! This is a tricky one! :-)
@Kshitij-Katiyar @Nityanand13 This is what I mean, I think changing the way we store the data in the struct would make us do much less code and this code would be easier to test. https://replit.com/@javaguirre/GH-507699#main.go Let me know what you think! |
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.
Let me know when you have an opinion on my approach! Thank you! :-)
@javaguirre Sorry for the late reply. Your approach seems good and now I am implementing the same. |
Thank you @Nityanand13 ! Let me know if you need anything! 👍 |
…struct so that the code can be easily tested (#6) * [MI-2088]:Add Support for DM subscriptions for watchers and reporters * [MI-2088]: Review Fixes 1. Improved the name of certain variable 2. Improved spacing * [MI-2088]:Revieww fixes 1.Changes the names of few variables 2.Improved code complexity * [MI-2088]: Review fixes done 1.Changed the name of few variables * [MI-2088]:fixed review fixes * [MI-2088]:fixed review fixes * [MI-2088]:fixed review fixes * [MI-2088]:Review fixes done 1.Changed the way to store assignee, mention, reporter and watching in struct so that the code can be easily tested * [MI-2088]: Review fixes done 1. Changed the name of various variables 2. Used constants everywhere Co-authored-by: Kshitij Katiyar <kshitij.katiyar@brightscout.com>
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.
Thank you! I really like the changes, I think it's much cleaner now.
I have some details to finish, let me know what you think!
Could you post a video on how to use this new change? Something like this so it's easier to QA. Thank you! |
Vedio link for this PR: |
Thank you very much @Nityanand13 ! Let me know when testing is done @Kshitij-Katiyar . 👍 |
@Nityanand13 Can't open the videos in any of the PRs, can you check the extension of the files and tell me what kind of video is so I can open it? Also If I could already open it online would be nice, with something like loom or whatever video Drive supports. Thank you very much! |
Vedio link for this PR:
|
The CI is failing @Nityanand13 , let me know if you can check it out! Thank you! |
I see the changes are in the other PR |
* [MI-2088]:Add Support for DM subscriptions for watchers and reporters * [MI-2088]: Review Fixes 1. Improved the name of certain variable 2. Improved spacing * [MI-2088]:Revieww fixes 1.Changes the names of few variables 2.Improved code complexity * [MI-2088]: Review fixes done 1.Changed the name of few variables * [MI-2088]:fixed review fixes * [MI-2088]:fixed review fixes * [MI-2088]:fixed review fixes * [MI-2088]:Review fixes done 1.Changed the way to store assignee, mention, reporter and watching in struct so that the code can be easily tested * [MI-2088]: Review fixes done 1. Changed the name of various variables 2. Used constants everywhere * [MI-2088]: Review fixes done 1. Added Test cases 2. Used booleans instead of pointer in RolesForDMNotification * [MI-2088]: Review fixes done 1. Modified test cases * [MI-2088]: Review fixes done 1. Self reviewed * [MI-2088]: Review fixes done 1. Changed the formatting 2. Changed the name of few variables 3. Improved code quality * [MI-2088]: Fixes CI errors * [MI-2088]: Review fixes done 1. Improved code quality * [MI-2088]: Review fixes done 1. Improved code quality * [MI-2088]: Review fixes done 1. Improved code quality Co-authored-by: Kshitij Katiyar <kshitij.katiyar@brightscout.com>
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 work on this @Kshitij-Katiyar! have a just a few questions here, and a request to remove changes unrelated to the purpose of the PR. Please let me know what you think 👍
server/issue.go
Outdated
Value: issue.ID, | ||
Label: issue.Name, | ||
}) | ||
issueTypes[index] = option{ |
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.
Are these changes relevant to the purpose of this PR? Also it seems we may introduce a bug here, since the continue
statement above will result in a null pointer on the frontend, since we are "skipping" over that index.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #872 +/- ##
==========================================
+ Coverage 30.14% 30.59% +0.44%
==========================================
Files 49 49
Lines 7467 7629 +162
==========================================
+ Hits 2251 2334 +83
- Misses 5027 5094 +67
- Partials 189 201 +12
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
* [MI-2088]:Add Support for DM subscriptions for watchers and reporters * [MI-2088]: Review Fixes 1. Improved the name of certain variable 2. Improved spacing * [MI-2088]:Revieww fixes 1.Changes the names of few variables 2.Improved code complexity * [MI-2088]: Review fixes done 1.Changed the name of few variables * [MI-2088]:fixed review fixes * [MI-2088]:fixed review fixes * [MI-2088]:fixed review fixes * [MI-2088]:Review fixes done 1.Changed the way to store assignee, mention, reporter and watching in struct so that the code can be easily tested * [MI-2088]: Review fixes done 1. Changed the name of various variables 2. Used constants everywhere * [MI-2088]: Review fixes done 1. Added Test cases 2. Used booleans instead of pointer in RolesForDMNotification * [MI-2088]: Review fixes done 1. Modified test cases * [MI-2088]: Review fixes done 1. Self reviewed * [MI-2088]: Review fixes done 1. Changed the formatting 2. Changed the name of few variables 3. Improved code quality * [MI-2088]: Fixes CI errors * [MI-2088]: Review fixes done 1. Improved code quality * [MI-2088]: Review fixes done 1. Improved code quality * [MI-2088]: Review fixes done 1. Improved code quality * [MI-2088]: Fixed CI errors * [MI-2088]: Review fixes done 1. Solved a bug of getting null pointer on frontend. 2. Improved code quality * [MI-2088]: Fixed CI errors * [MI-2088]: Review fixes done 1. Improved code quality * [MI-2088]: Reivew fixes done 1. Improved code quality Co-authored-by: Kshitij Katiyar <kshitij.katiyar@brightscout.com>
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
Hey, is there still something blocking this issue? I'd love to have the option to get notifications on tickets, that I watch. |
@Kshitij-Katiyar Can you please resolve the merge conflicts here? Thank you 👍 |
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
@mickmister sure resolving them. |
@DHaussermann This PR is ready for QA review |
@Kshitij-Katiyar I think we should tell the user why they received a notification. e.g. "because you are watching x" or "because you reported x" |
@AayushChaudhary0001 Would you be open to reviewing this PR? |
@Kshitij-Katiyar Heads up that there is a conflict to resolve. |
I'd like to reiterate this point. I think this would be a big help when using this feature |
This PR was very outdated, which is why we had to create a new one. All the changes from this PR are included in #1097, so we are closing this one. |
Summary
Issue