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

[issue-174] Add Jira Autolink Issue With Comment Test Case #189

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sibasankarnayak
Copy link
Contributor

Fixing some of the left over suggestion on the PR #185

Ticket Here
Fixes #174

@sibasankarnayak sibasankarnayak requested a review from levb as a code owner April 2, 2022 14:42
@mattermod
Copy link
Contributor

Hello @sibasankarnayak,

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.

@codecov-commenter
Copy link

codecov-commenter commented Apr 2, 2022

Codecov Report

Patch and project coverage have no change.

Comparison is base (0d3ca5f) 40.79% compared to head (98b5427) 40.79%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #189   +/-   ##
=======================================
  Coverage   40.79%   40.79%           
=======================================
  Files           6        6           
  Lines         679      679           
=======================================
  Hits          277      277           
  Misses        382      382           
  Partials       20       20           

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 at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

server/autolink/lib_jira_test.go Outdated Show resolved Hide resolved
server/autolink/lib_jira_test.go Show resolved Hide resolved
@hanzei hanzei added the 2: Dev Review Requires review by a core committer label Apr 6, 2022
@hanzei hanzei added the Awaiting Submitter Action Blocked on the author label Apr 14, 2022
@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!

@mickmister
Copy link
Contributor

I'd also like to emphasize the importance of backwards compatibility here. We'll need to test with an existing MM server that is connected to Jira Cloud with at least one project. Then make sure there are not duplicate autolinks present, or at least not duplicate autolink operations being done on the posts.

@hanzei
Copy link
Contributor

hanzei commented Nov 22, 2022

@levb Gentle reminder to review this PR

@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 srkgupta February 21, 2023 10:18
@hanzei hanzei added 3: QA Review Requires review by a QA tester and removed Lifecycle/1:stale labels Feb 21, 2023
},
"Welcome https://mattermost.atlassian.net/browse/MM-12345?focusedCommentId=10210 should link!",
"Welcome [MM-12345 With Comment #10210](https://mattermost.atlassian.net/browse/MM-12345?focusedCommentId=10210) should link!",
"Welcome [MM-12345 (comment)](https://mattermost.atlassian.net/browse/MM-12345?focusedCommentId=10210) should link!",
}, {
"Comment url replacement multiple times",
autolink.Autolink{
Pattern: "(https://mattermost.atlassian.net/browse/)(?P<project_id>\\w+)(-)(?P<jira_id>\\d+)[?](focusedCommentId)(=)(?P<comment_id>\\d+)",
Template: "[${project_id}-${jira_id} With Comment #${comment_id}](https://mattermost.atlassian.net/browse/${project_id}-${jira_id}?focusedCommentId=${comment_id})",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change:

Template: "[${project_id}-${jira_id} (comment)](https://mattermost.atlassian.net/browse/${project_id}-${jira_id}?focusedCommentId=${comment_id})",

"Welcome https://mattermost.atlassian.net/browse/MM-12345?focusedCommentId=10210. should link https://mattermost.atlassian.net/browse/MM-12346?focusedCommentId=10210 !",
"Welcome [MM-12345 With Comment #10210](https://mattermost.atlassian.net/browse/MM-12345?focusedCommentId=10210). should link [MM-12346 With Comment #10210](https://mattermost.atlassian.net/browse/MM-12346?focusedCommentId=10210) !",
"Welcome https://mattermost.atlassian.net/browse/MM-12345?focusedCommentId=10210. should link https://mattermost.atlassian.net/browse/MM-12346?focusedCommentId=10210!",
"Welcome [MM-12345 With Comment #10210](https://mattermost.atlassian.net/browse/MM-12345?focusedCommentId=10210). should link [MM-12346 With Comment #10210](https://mattermost.atlassian.net/browse/MM-12346?focusedCommentId=10210)!",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change:

"Welcome [MM-12345 (comment)](https://mattermost.atlassian.net/browse/MM-12345?focusedCommentId=10210). should link [MM-12346 (comment)](https://mattermost.atlassian.net/browse/MM-12346?focusedCommentId=10210)!",

Copy link
Contributor

@srkgupta srkgupta left a comment

Choose a reason for hiding this comment

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

Hi @sibasankarnayak

Requested some changes here. Can you please take a look at it and change this across the test. There are also some additional places in this file which has the pattern like [MM-12345 With Comment #10210], apart from the lines you have changed, which also needs to be changed across to keep things consistent and clean. Thanks.

@hanzei hanzei removed the request for review from levb February 23, 2023 20:42
@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 hanzei added the Awaiting Submitter Action Blocked on the author label Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester Awaiting Submitter Action Blocked on the author Lifecycle/1:stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Jira Autolink Issue With Comment Test Case
7 participants