-
Notifications
You must be signed in to change notification settings - Fork 132
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-626]: Supported filtering on comment visibility for subscriptions #894
base: master
Are you sure you want to change the base?
Conversation
#18) * [MI-2337]: Supported filtering on comment visibility for subscriptions * [MI-2337]: Review fixes done 1. Improved code quality 2. Improved quality of comments * [MI-2337]: Review fixes done 1. Improved code quality 2. Changed few names * [MI-2337]: Review fixes done 1. Improved code quality * [MI-2337]: Review fixes done 1. Improved code quality 2. Improved comments quality * [MI-2337]: Review fixes done 1. Improved code quality * [MI-2384]: Converted class component to functional component of Comment visibility filter (#20) * [MI-2384]: Converted class component to functional component of comment visibility filter * [MI-2384]: Review fixes done 1. Improved code quality 2. Fixed lint errors * [MI-2384]: Review fixes done 1. Improved code quality * [MI-2384]: Logged the error properly
Hello @Nityanand13, 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. |
server/client.go
Outdated
@@ -252,6 +255,18 @@ type AutoCompleteResult struct { | |||
Results []Result `json:"results"` | |||
} | |||
|
|||
type Item struct { |
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's Item? We can find a more relevant name I 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.
Now I have changed this to GroupItem
. It indicates the individual group.
server/client.go
Outdated
Name string `json:"name"` | ||
} | ||
|
||
type Group struct { |
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.
Is this a UserGroup?
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.
or VisibilityUserGroup? Is this group being used for anything else?
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.
Now I have changed this to GroupsInfo
.It indicate all the groups to which a commentator belongs to.
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.
How about JiraUserGroupCollection
for the collection and JiraUserGroup
for the singular group?
1. Made a constant 2. Improved code quality 3. Changed few names
* [MI-2337]: Supported filtering on comment visibility for subscriptions * [MI-2337]: Review fixes done 1. Improved code quality 2. Improved quality of comments * [MI-2337]: Review fixes done 1. Improved code quality 2. Changed few names * [MI-2337]: Review fixes done 1. Improved code quality * [MI-2337]: Review fixes done 1. Improved code quality 2. Improved comments quality * [MI-2337]: Review fixes done 1. Improved code quality * [MI-2384]: Converted class component to functional component of Comment visibility filter (#20) * [MI-2384]: Converted class component to functional component of comment visibility filter * [MI-2384]: Review fixes done 1. Improved code quality 2. Fixed lint errors * [MI-2384]: Review fixes done 1. Improved code quality * [MI-2384]: Logged the error properly * [MI-2337]: Done the review fixes of PR mattermost#894 1. Made a constant 2. Improved code quality 3. Changed few names
* [MI-2337]: Supported filtering on comment visibility for subscriptions * [MI-2337]: Review fixes done 1. Improved code quality 2. Improved quality of comments * [MI-2337]: Review fixes done 1. Improved code quality 2. Changed few names * [MI-2337]: Review fixes done 1. Improved code quality * [MI-2337]: Review fixes done 1. Improved code quality 2. Improved comments quality * [MI-2337]: Review fixes done 1. Improved code quality * [MI-2384]: Converted class component to functional component of Comment visibility filter (#20) * [MI-2384]: Converted class component to functional component of comment visibility filter * [MI-2384]: Review fixes done 1. Improved code quality 2. Fixed lint errors * [MI-2384]: Review fixes done 1. Improved code quality * [MI-2384]: Logged the error properly * [MI-2337]: Done the review fixes of PR mattermost#894 1. Made a constant 2. Improved code quality 3. Changed few names * [MI-2337]: Fixed CI errors and few review comments of PR mattermost#894 * [MI-2337]: Review fixes done 1. Improved code quality
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
@mickmister Head up that the PR is ready for your review |
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #894 +/- ##
==========================================
- Coverage 33.37% 29.41% -3.97%
==========================================
Files 53 52 -1
Lines 8008 7861 -147
==========================================
- Hits 2673 2312 -361
- Misses 5112 5351 +239
+ Partials 223 198 -25 ☔ View full report in Codecov by Sentry. |
Also this will need to be tested on Jira Cloud and Jira Server |
1. Removed extra API call for getting comment visibility details 2. Removed unnecessary commentVisibility attribute
@mickmister Fixed the review comments added by you. |
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
/update-branch |
We don't have permissions to update this PR, please contact the submitter to apply the update. |
@raghavaggarwal2308 can you shepherd this through the outstanding comments? |
@wiggin77 There are two unresolved comments above:
|
@esarafianou Can you please give this PR a review? |
@esarafianou Gentle reminder for review |
Summary
Added "Comment Visibility" field to subscription modal to filter notifications in the channel.
Ticket Link
Fixes #626