Skip to content

Make links in todo messages consistent - #192

Merged
levb merged 15 commits into
mattermost:masterfrom
checkaayush:consistentTodoLinks
Mar 19, 2020
Merged

levb merged 15 commits into
mattermost:masterfrom
checkaayush:consistentTodoLinks

Conversation

@checkaayush

@checkaayush checkaayush commented Feb 16, 2020 •

Copy link
Copy Markdown
Contributor

Summary

Makes links in todo messages consistent.

Issue Link

#178

@jasonblais jasonblais added 1: PM Review Requires review by a product manager 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels Feb 16, 2020
@checkaayush checkaayush changed the title Consistent todo links Make links in todo messages consistent Feb 17, 2020
Comment thread server/utils.go Resolved
Comment thread server/utils_test.go
{Full: "", BaseURL: "", ExpectedOwner: "", ExpectedRepo: ""},
{Full: "mattermost/mattermost/invalid_repo_url", BaseURL: "", ExpectedOwner: "", ExpectedRepo: ""},
{Full: "https://github.com/mattermost/mattermost/invalid_repo_url", BaseURL: "", ExpectedOwner: "", ExpectedRepo: ""},
{Full: "mattermost/mattermost/invalid_repo_url", BaseURL: "", ExpectedOwner: "mattermost", ExpectedRepo: "mattermost"},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

0/5 would be awesome to add tests for ... shortening

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Are you suggesting something like this:

{Full: "mattermost/...server", BaseURL: "", ExpectedOwner: "mattermost", ExpectedRepo: "...server"},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes, exactly

@jfrerich

jfrerich commented Feb 18, 2020 •

Copy link
Copy Markdown
Contributor

Thanks for the submission, @checkaayush! I deployed your branch locally and will paste my todo items for reference. I see a couple of formatting issues. Otherwise, awesome work!

  • Unread Messages have links https:/ that are incorrect
  • each bulleted line needs an `\n' appended
  • each heading needs to start on it's own line.

image

@jfrerich

Copy link
Copy Markdown
Contributor

@aaronrothschild, @levb - what do y'all think about condensing the Header Message and the submessages? They are kind of redundant.

Examples

Unread Messages

You have 2 unread Messages:

Review Requests

You ahve 10 pull requests awaiting your review:

@jfrerich jfrerich left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great, @checkaayush! I left some comments regarding formatting changes.

@checkaayush

Copy link
Copy Markdown
Contributor Author

Looks great, @checkaayush! I left some comments regarding formatting changes.

Made the suggested changes.

Also, +1 for the idea of condensing header message and sub-messages. It looks way cleaner that way.

@checkaayush
checkaayush requested review from jfrerich and levb February 19, 2020 05:20
@jfrerich

Copy link
Copy Markdown
Contributor

Thanks, @checkaayush! For reference, I've updated to your commit and here is the result on my GH account
image

@jfrerich

jfrerich commented Feb 25, 2020 •

Copy link
Copy Markdown
Contributor

@checkaayush, there are several items I think need feedback from @levb and @aaronrothschild. I like your implementation, but from a UI/UX, I think we are still a bit lacking. Perhaps this is for another ticket too. You don't need to implement these right now, but I would like to get feedback while in this ticket.

  1. I feel like the GH organization piece of the link is quite redundant. Perhaps we could sort the tickets and add a level of bullet indentation for the organization, repo, ticket title
  2. Perhaps add a - between repo and ticket title? It's hard to differentiate. Bolding is another option.

This is very subjective, but maybe we can get a quorum in this ticket. What do you think, @checkaayush?

@checkaayush

checkaayush commented Feb 27, 2020 •

Copy link
Copy Markdown
Contributor Author

@checkaayush, there are several items I think need feedback from @levb and @aaronrothschild. I like your implementation, but from a UI/UX, I think we are still a bit lacking. Perhaps this is for another ticket too. You don't need to implement these right now, but I would like to get feedback while in this ticket.

  1. I feel like the GH organization piece of the link is quite redundant. Perhaps we could sort the tickets and add a level of bullet indentation for the organization, repo, ticket title
  2. Perhaps add a - between repo and ticket title? It's hard to differentiate. Bolding is another option.

This is very subjective, but maybe we can get a quorum in this ticket. What do you think, @checkaayush?

Hmm, great input. How about we get rid of the sub-message, combine entries for the same repo together and sort them in descending order of number of items? No need to abridge repo names with ellipsis. For example, the Review Requests section might look like this:


Review Requests

@aaronrothschild

aaronrothschild commented Feb 28, 2020 •

Copy link
Copy Markdown
Contributor

Thanks @checkaayush One minor change:

Review Requests (11)

  • note: added the "11" for the count of review requests pending, and "2 days" to indicate age of the item
  • Sort order: When you come back from a week of vacation, do you see a wall of reviews waiting but can't figure out which ones to tackle first? Should we show the "last updated" date next to each item perhaps?

@checkaayush

Copy link
Copy Markdown
Contributor Author

@levb How do you feel about the suggested changes? Should I go ahead with them?

@jfrerich

jfrerich commented Mar 2, 2020

Copy link
Copy Markdown
Contributor

@checkaayush, I was on vacation since last Thursday, but back today. I Like your proposed changes for several reasons:

  • there is now a link to the repo, not just the individual ticket links
  • the full title is shown
  • tickets grouped by repo

If you also implement the changes suggest by @aaronrothschild, I believe this format is a winner! Thank you so much for the new implementation.

@levb levb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@checkaayush great stuff, love it.

A personal preference would be to keep the PR # in the title, maybe "#231 the PR headline". @aaronrothschild ?

Comment thread server/utils_test.go
{Full: "", BaseURL: "", ExpectedOwner: "", ExpectedRepo: ""},
{Full: "mattermost/mattermost/invalid_repo_url", BaseURL: "", ExpectedOwner: "", ExpectedRepo: ""},
{Full: "https://github.com/mattermost/mattermost/invalid_repo_url", BaseURL: "", ExpectedOwner: "", ExpectedRepo: ""},
{Full: "mattermost/mattermost/invalid_repo_url", BaseURL: "", ExpectedOwner: "mattermost", ExpectedRepo: "mattermost"},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes, exactly

@checkaayush

Copy link
Copy Markdown
Contributor Author

A personal preference would be to keep the PR # in the title, maybe "#231 the PR headline"?

@levb Just curious, any particular reason for this?

@levb

levb commented Mar 3, 2020

Copy link
Copy Markdown
Contributor

@levb Just curious, any particular reason for this?

not really, just used to see it, like in
image

@hanzei hanzei removed the 2: Dev Review Requires review by a core committer label Mar 7, 2020

@DHaussermann DHaussermann left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Tested and passed

  • Checked Unread Messages, Review Requests, Open Pull Requests and Assignments
  • Display is consistent and repo is visible
  • No issues found
    LGTM!
    Thanks @checkaayush for this improvement!

@DHaussermann DHaussermann added QA Review Done PR has been approved by QA and removed 3: QA Review Requires review by a QA tester labels Mar 10, 2020
@checkaayush

Copy link
Copy Markdown
Contributor Author

@jfrerich I took a small vacation and am yet to implement the suggested UX improvements. Although, it seems the changes till now have already been approved and tested. Were the suggested changes not in the scope of this issue? cc: @levb

@jfrerich

Copy link
Copy Markdown
Contributor

/update-branch

@codecov-io

codecov-io commented Mar 11, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #192 into master will increase coverage by 0.42%.
The diff coverage is 51.51%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #192      +/-   ##
==========================================
+ Coverage   16.00%   16.43%   +0.42%     
==========================================
  Files          10       10              
  Lines        2181     2197      +16     
==========================================
+ Hits          349      361      +12     
- Misses       1820     1824       +4     
  Partials       12       12              
Impacted Files Coverage Δ
server/command.go 9.72% <0.00%> (ø)
server/plugin.go 1.14% <0.00%> (-0.02%) ⬇️
server/subscriptions.go 3.75% <0.00%> (-0.03%) ⬇️
server/webhook.go 0.00% <0.00%> (ø)
server/utils.go 62.63% <100.00%> (+2.63%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b98a5f...be8a4d7. Read the comment docs.

@jfrerich

Copy link
Copy Markdown
Contributor

Welcome back from your vacation, @checkaayush! I hope you had a great time. @levb has already approved, so I think you have successfully completed the PR request. 🎉

Pinging @aaronrothschild for final review

@hanzei

hanzei commented Mar 19, 2020

Copy link
Copy Markdown
Contributor

@aaronrothschild Any objections on merge this PR as it is?

@aaronrothschild aaronrothschild removed the 1: PM Review Requires review by a product manager label Mar 19, 2020
@levb
levb merged commit 6350167 into mattermost:master Mar 19, 2020
@hanzei hanzei added the 4: Reviews Complete All reviewers have approved the pull request label Mar 24, 2020
@hanzei hanzei added this to the v0.14.0 milestone Mar 24, 2020
ayusht2810 pushed a commit that referenced this pull request Feb 1, 2024
#192)

* Revert "Update main.go (#154)"

This reverts commit be4a281d0cc791d10e6e5ae917b325b2f054e475.

* Revert "[MM-33506] Use embed package to include plugin manifest (#145)"

This reverts commit ca9ee3c17c6920a636a33f378e17395afd6f329f.

* Revert "Don't generate manifest.ts (#127)"

This reverts commit 18d30b50bc7ba800c9f05bfd82970781db0aea3e.

* install-go-tools target, adopt gotestsum

* bring back make apply + automatic versioning

* Update build/manifest/main.go

Co-authored-by: Michael Kochell <[email protected]>

* suppress git describe error when no tags match

* make version/release notes opt-in

* fix whitespace in Makefile

* document version management options

---------

Co-authored-by: Michael Kochell <[email protected]>
mickmister added a commit that referenced this pull request Feb 15, 2024
* Make use of github.com/mattermost/mattermost/server/public

* [MM-36] Update plugin with respect to phase 1 upgrades

* [MM-36] Update makefile command for testcases

* Sync with playbooks: install-go-tools, gotestsum, and dynamic versions (#192)

* Revert "Update main.go (#154)"

This reverts commit be4a281d0cc791d10e6e5ae917b325b2f054e475.

* Revert "[MM-33506] Use embed package to include plugin manifest (#145)"

This reverts commit ca9ee3c17c6920a636a33f378e17395afd6f329f.

* Revert "Don't generate manifest.ts (#127)"

This reverts commit 18d30b50bc7ba800c9f05bfd82970781db0aea3e.

* install-go-tools target, adopt gotestsum

* bring back make apply + automatic versioning

* Update build/manifest/main.go

Co-authored-by: Michael Kochell <[email protected]>

* suppress git describe error when no tags match

* make version/release notes opt-in

* fix whitespace in Makefile

* document version management options

---------

Co-authored-by: Michael Kochell <[email protected]>

* Fetch plugin logs from server (#193)

Co-authored-by: Jesse Hallam <[email protected]>

* [MM-36] Update plugin.json file

---------

Co-authored-by: Ben Schumacher <[email protected]>
Co-authored-by: Mattermost Build <[email protected]>
Co-authored-by: Jesse Hallam <[email protected]>
Co-authored-by: Michael Kochell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4: Reviews Complete All reviewers have approved the pull request QA Review Done PR has been approved by QA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants