-
Notifications
You must be signed in to change notification settings - Fork 147
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-124 Improve "Attach to Issue" function #162
Conversation
…permalink in github issue.
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.
@DHaussermann how can I get a spinwick to test out this contribution?
@aaronrothschild I will deploy this to a test server and ping you credentials. |
This issue has been automatically labelled "stale" because it hasn't had recent activity. /cc @jasonblais @hanzei |
@aaronrothschild / @DHaussermann quick reminder to help with reviews after the holidays. Thank you! |
Hi @hector2, Sorry for the delay on this. Thanks for the round of improvements. The feedback that the comment has been added really makes this nicer to use! I've done some testing on this and have a couple questions:
|
Hey @DHaussermann ! 1 - Yes, before these changes you could only list the issues in which the user it's the asignee. I did that because I though that was desired, but maybe I'm wrong, let me know! :D -> his design is limited to adding comments where the user is the assignee. There would also be value in adding comments to other issues as well. Would we need a more complex design to handle cases where you select an issue and don't have permissions to comment? 2 - What do you mean by "the text seems top justified"? I looked at the post menu but it seemed fine. The options are aligned to the left. And yes I can make those improvements of course! |
|
@DHaussermann hey, I think the alignment problem is related to mattermost/mattermost-plugin-jira#407 . Let me check if I can do the same in this case. EDIT: I did a change and now it should be aligned like in the jira plugin. |
@hector2 Thanks for fixing the alignment issues! I had a couple follow up questions about error cases... A. When the user does not have permission to make the comment, it's great that we return allot of info but, the error looks a bit cryptic. B. When a conversation becomes locked in GitHub I noticed that the issue becomes non-selectable in the UI. The user's pointer changes to a crossed out circle. Just curious if there is a reason this is different rather than have the user select the option and see an error in the modal @aaronrothschild to clarify my comment from above, the UX of opening the search and seeing issues from countless different projects to search for would only be the case if the plugin is not locked to an organization or a users' work space. When locked it only returns issues from within these repos in the issue search results. Please confirm you're okay with this design. |
Edit: This comment isn't relevant anymore, ignore it. @asaadmahmood Any thoughts on this? I think ideally we can "scope" the search to only include repositories they own or belong to at first. It becomes pretty unwieldy. Perhaps a radio button select: [ ] My/MyOrg's Repositories [ ] All Public Github Repos. OR alternatively should we break the search into two parts: ask for the repo keywords first, then allow search by keywords through issues in that repo. You start to realize how commonly used some words are in issues and it becomes almost impossible to find the relevant issue unless you add the keyword of the gituhub repo name, then it becomes more manageable. I think the UI should encourage that behavior perhaps - by splitting the search box into two fields, one for the repo name and one for the keywords being searched within that repo. I'm 2/5 though. cc @DHaussermann ? I'm not suggesting we make a heavy interface like this, but I like how Gitbook's Github Repo selection allows me to choose based on which repos are related to me: Just an example when you use some words that are unusual it reduces the results set, but I had a hard time finding some of the issues I was expecting to be able to find easily. |
@DHaussermann @hector2 OK, that's great and ideal then. Ignore my comment above, I had half-written it earlier today and just finished typing it when I saw Dylan's note. |
Okay Thanks @aaronrothschild I'd be curious how common it is for people to use the plugin not locked to an organization. There may be a worthwhile story in the future IF we get feedback that it would be valuable to restrict attachment functionality. |
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
- Tested to ensure post is created with link to github issue
- Tested various error cases for attach (User permission, thread locked, issues disabled)
- Tested to ensure that when locked the attach search only returns issue from that Organization or Wrokspace
- Ensured issues are hidden for appropriate users if repo is made private
- Post menu option has been fixed
Added necessary steps to release testing.
LGTM! Thanks @hector2 for the work on this!
Will follow up with Aaron to see if future changes are needed for error UX
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.
Great work @hector2! Just one request about style
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.
LGTM, thanks @hector2!!
Summary
Issue link
Fixes #124