-
Notifications
You must be signed in to change notification settings - Fork 131
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 "reporter" and "assignee" fields in subscription filters #890
Add "reporter" and "assignee" fields in subscription filters #890
Conversation
Hello @shigalovalexs, 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. Per the Mattermost Contribution Guide, we need to add you to the list of approved contributors for the Mattermost project. Please help complete the Mattermost contribution license agreement? This is a standard procedure for many open source projects. Please let us know if you have any questions. We are very happy to have you join our growing community! If you're not yet a member, please consider joining our Contributors community channel to meet other contributors and discuss new opportunities with the core team. |
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.
Thanks for this @shigalovalexs! LGTM 👍 just one suggestion to remove the GitHub actions added in this PR. cc @hanzei for discussion on this
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
@@ -264,6 +276,10 @@ export function isLabelField(field: JiraField | FilterField): boolean { | |||
return field.schema.system === 'labels' || field.schema.custom === 'com.atlassian.jira.plugin.system.customfieldtypes:labels'; | |||
} | |||
|
|||
export function isUserField(field: JiraField | FilterField): boolean { | |||
return field.schema.type === 'user' || field.schema.custom === 'com.atlassian.jira.plugin.system.customfieldtypes:userpicker'; |
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.
Could the string 'com.atlassian.....' be a constant more to the top of the file? It seems some kind of "magic string".
@@ -179,7 +179,7 @@ function isValidFieldForFilter(field: JiraField): boolean { | |||
} | |||
|
|||
return allowedTypes.includes(type) || (custom && acceptedCustomTypesForFilters.includes(custom)) || |
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 find this part a bit difficult to follow and understand, but this would be a future refactor.
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.
also allowedTypes
is a bit confusing, because we have here other types
(option, user) but those aren't in the allowedTypes array, but they're called types
too 🤷 .
But as I said, this is for the future.
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.
@javaguirre Yeah I too think option
and user
should be added to allowedTypes
. I don't see any logic that would break if we did that
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
/update-branch |
@shigalovalexs Is the target branch here really correct? |
@shigalovalexs Are you open to signing the CLA? |
@hanzei Hi, yes, I`m agree to sign the CLA |
@shigalovalexs Could you please sign the form at https://mattermost.com/mattermost-contributor-agreement/? |
Secondly, the PR should target |
"icon_path": "assets/icon.svg", | ||
"version": "3.2.0", | ||
"version": "3.2.1", |
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.
Unrelated change?
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 is not resolved
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
/update-branch |
Summary:
Added "reporter" and "assignee" fields to subscriptions modal to filter notifications in channels by users
Also added a field "reporter" to the issue create dialog if the project supports it
Ticket Link
Fixes #891