-
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
Created/Attached to a Jira issue message should include a reference to the Jira plugin #464
Conversation
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 @AGMETEOR, just one request and a comment
Co-Authored-By: Michael Kochell <mjkochell@gmail.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.
Please make the naming consistent.
This commit adds tests to routeToDocsOrConnect There's also need to edit GetPlugin on mocked JIRA Instance to return configured plugin with the API and mocked stores. Consequently, that change also meant that one test in issue_test.go that depends on those mocks also had to be fixed.
Hi @AGMETEOR , Can I get some clarification on the scope of this PR? When creating an issue from a post I can see your change.
I don't see any change when attaching to an issue where the post references the Jira plugin. Should I be seeing this as well? |
Hello @DHaussermann , thanks for the review :) Clicking on the issue key link takes them to jira to view the ticket. I hope I was able to answer properly. |
@AGMETEOR Sorry for being unclear. I was explaining the changes that I'm seeing implemented. Yes, all of that is clear to me :) . But, my remaining question is... Should there also be a change in behavior to mention the plugin in the post created when the Attach to Jira functionality is used? There is mention of changing this as well but, it look the same to me. |
@DHaussermann I see what you mean there. I totally forgot about the scenario when the attach route is used. I have made the necessary changes. |
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.
Tested and passed
- The post for create and attach now contain a link with the text of the issue key that points to the issue rather than the full path.
- The post created now contains "... by mattermost-jira-plugin" which links to the repo
- Tested Create and Attach cases
- Regression tested create and attach from child and root posts
No issues found. LGTM!
Thanks @AGMETEOR for this enhancement.
Thanks @AGMETEOR! Merging this PR now. |
Summary
Created/Attached to a Jira issue message should include a reference to the Jira plugin
Fixes #438