Skip to content
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

Closed
wants to merge 12 commits into from
Closed

Add "reporter" and "assignee" fields in subscription filters #890

wants to merge 12 commits into from

Conversation

shigalovalexs
Copy link

@shigalovalexs shigalovalexs commented Nov 17, 2022

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
image
image

Ticket Link

Fixes #891

mickmister and others added 7 commits October 31, 2022 08:02
* bump version 3.2.1

* MM-47046/MM-47052 Use version of React DOM provided by web app (#868)

* add ReactDOM to webpack externals

* npm install --verbose

* use git insteadOf

* Fix linter issues (#878)

* remove git config change

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
@mattermod
Copy link
Contributor

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?
Once you have signed the CLA, please comment with /check-cla and confirm that the CLA check is green.

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.

@mickmister mickmister linked an issue Nov 17, 2022 that may be closed by this pull request
Copy link
Contributor

@mickmister mickmister left a 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

.github/workflows/build-plugin-jira.yml Outdated Show resolved Hide resolved
@mattermod
Copy link
Contributor

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

@hanzei hanzei requested a review from mickmister November 29, 2022 14:09
@hanzei hanzei added 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester and removed Lifecycle/1:stale labels Nov 29, 2022
@hanzei hanzei requested a review from javaguirre November 29, 2022 14:09
@@ -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';
Copy link
Contributor

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)) ||
Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Contributor

@mickmister mickmister Dec 1, 2022

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

@mattermod
Copy link
Contributor

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

@hanzei
Copy link
Collaborator

hanzei commented Feb 21, 2023

/update-branch

@hanzei
Copy link
Collaborator

hanzei commented Feb 21, 2023

@shigalovalexs Is the target branch here really correct?

@hanzei hanzei requested review from trilopin and srkgupta and removed request for trilopin, srkgupta and DHaussermann February 21, 2023 09:35
@hanzei
Copy link
Collaborator

hanzei commented Feb 22, 2023

@shigalovalexs Are you open to signing the CLA?

@hanzei hanzei added the Awaiting Submitter Action Blocked on the author label Feb 22, 2023
@shigalovalexs
Copy link
Author

@hanzei Hi, yes, I`m agree to sign the CLA

@hanzei
Copy link
Collaborator

hanzei commented Feb 28, 2023

@shigalovalexs Could you please sign the form at https://mattermost.com/mattermost-contributor-agreement/?

@hanzei hanzei changed the base branch from release-3.2.1 to master February 28, 2023 15:29
@hanzei
Copy link
Collaborator

hanzei commented Feb 28, 2023

Secondly, the PR should target master. I've changed the target branch. You need to rebase on master. Sorry for the inconvenience.

"icon_path": "assets/icon.svg",
"version": "3.2.0",
"version": "3.2.1",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated change?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not resolved

server/manifest.go Show resolved Hide resolved
@mattermost-build
Copy link
Contributor

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

@hanzei
Copy link
Collaborator

hanzei commented Mar 30, 2023

/update-branch

@hanzei hanzei added Work In Progress Not yet ready for review and removed 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels May 21, 2023
@shigalovalexs shigalovalexs closed this by deleting the head repository Mar 26, 2024
@mattermost-build mattermost-build removed Awaiting Submitter Action Blocked on the author Work In Progress Not yet ready for review labels Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "reporter" and "assignee" fields in subscription filters
6 participants