-
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
[GH-773]: Fixed Issue Jira's autolink should support issue links that contain a comment link in the URL #871
base: master
Are you sure you want to change the base?
Conversation
#2) * [MI-2119]: Jira's autolink should issue links that contain a comment link in the URL * [MI-2119]: Review fixes 1. Chnaged the name of few variables * [MI-2119]:Review fixes 1. Changed the name of a variable
Hello @Kshitij-Katiyar, 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. |
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.
Let me know when you can review this!
* [MI-2119]: Jira's autolink should issue links that contain a comment link in the URL * [MI-2119]: Review fixes 1. Chnaged the name of few variables * [MI-2119]:Review fixes 1. Changed the name of a variable * [MI-2199]: Review fixes done 1. Added constants * [MI-2199]:Review fixes 1. Added constants properly * [MI-2119]: Review fixes done 1. Changed the name of the variable * [MI-2119]: Review fixes done 1.Improved code quality * [MI-2119]:Review Fixes 1. Changed the name of variable
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.
Thank you very much for the effort!
Could you post a video on how to use this new change? Something like this so it's easier to QA. Thank you! |
Vedio link for this PR: |
Can't see the video, could you please check if you can upload a compatible format with Drive? Thank you @Nityanand13 ! |
Vedio link for this PR: I think now it should be visible |
@Kshitij-Katiyar I'm thinking we should have tests in the autolink repo to test these regex changes, like mattermost-community/mattermost-plugin-autolink#189. Please let me know your thoughts on this 👍 |
@mickmister Test cases for these regex changes have already been written and it is even merged in the master as well. You can look at here: #L121. And there is no any changes in regex after that |
Thanks @Nityanand13! Do you know the behavior of backwards compatibility for this feature? If I have existing autolinks present from previous versions of the Jira plugin, what is the result when I upgrade the plugin? Do I have any duplicate autolink entries? |
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
If I have an existing autolink present from the previous versions of the Jira plugin and when I upgrade the plugin with this feature then it is not working. To see this feature, we should remove the |
@Nityanand13 The feature needs to be backwards compatible if possible. If there are breaking changes, we need to be clear with release notes about what the admin needs to do manually to have the plugin operating as intended. We'll also need to release the plugin as a new major version |
@Nityanand13 What is the behavior if the admin does not remove the entries from |
@mickmister In the |
@Nityanand13 So in the case of not removing the entries in
As long as the link operations are done correctly in both cases, it's fine to have both in the config. Other than general housekeeping, is there a reason why the admin would want to remove the existing autolinks? Also mentioned this here mattermost-community/mattermost-plugin-autolink#189 (comment) |
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
@mickmister In case we are not removing the |
@Nityanand13 This is not an option for Mattermost Cloud instances. We'll need to automate this somehow. Maybe the Autolink plugin needs to support an endpoint to delete them or something. There's also complications with HA and multiple instances of the plugin attempting these operations simultaneously. @hanzei @levb What do you think about this issue? |
If the autolink plugin would support a propper CRUD methods in its client, the JIRA plugin could fix the link issues programmatically. Maybe it's worth updating the autolink plugin, prepackaging the new version and then updating the links programmatically via JIRA. |
Opened mattermost-community/mattermost-plugin-autolink#207 for Brightscout |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #871 +/- ##
==========================================
- Coverage 31.46% 31.22% -0.24%
==========================================
Files 49 49
Lines 5982 6027 +45
==========================================
Hits 1882 1882
- Misses 3911 3956 +45
Partials 189 189 ☔ View full report in Codecov by Sentry. |
[MI-2949]:Added a check to remove pre existing autolinks
[MM-183] Add lock to avoid race conditions while performing operations on autolink
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.
Let me know when this is ready - I'm removing from my queue for now.
Summary
Issue