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

[GH-271] Updated logic for sidebar header to show assigned MRs instead of opened MRs #394

Merged
merged 3 commits into from
Dec 19, 2023

Conversation

raghavaggarwal2308
Copy link
Contributor

@raghavaggarwal2308 raghavaggarwal2308 commented Aug 22, 2023

Summary

Changes:

  1. Get assigned MRs instead of the user's MRs.
  2. Updated the name in the tooltip of the sidebar buttons.
  3. Updated API paths.
  4. Updated variable and function names.
  5. Updated icons in the sidebar.
  6. Updated documentation.

Screenshots

Before:
image

After:
image

Ticket Link

Fixes #271

…how assigned MRs instead of opened MRs (#39)

* [MI-3405] Get proper data in sidebar buttons:
1. Get assigned PRs instead of the user's PRs.
2. Updated the name of sidebar buttons.
3. Updated API path.
4. Updated the name of API functions.
5. Updated the name of unreads to todos in the code.

* [MI-3405] Updated name of variables and functions

* [MI-3405] Updated icons in sidebar

* [MI-3405] Updated documentation

* [MI-3405] Reverted package-lock file changes

* [MI-3405] Review fixes
@codecov
Copy link

codecov bot commented Aug 22, 2023

Codecov Report

Attention: 34 lines in your changes are missing coverage. Please review.

Comparison is base (b5184fa) 33.21% compared to head (b8d0516) 32.91%.
Report is 3 commits behind head on master.

❗ Current head b8d0516 differs from pull request most recent head 80be9e6. Consider uploading reports for the commit 80be9e6 to get more accurate results

Files Patch % Lines
server/plugin.go 0.00% 18 Missing ⚠️
server/api.go 17.64% 14 Missing ⚠️
server/command.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #394      +/-   ##
==========================================
- Coverage   33.21%   32.91%   -0.31%     
==========================================
  Files          22       22              
  Lines        3977     4017      +40     
==========================================
+ Hits         1321     1322       +1     
- Misses       2525     2564      +39     
  Partials      131      131              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hanzei hanzei added 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels Aug 22, 2023
@Kshitij-Katiyar Kshitij-Katiyar added this to the v1.8.0 milestone Sep 28, 2023
@hanzei
Copy link
Collaborator

hanzei commented Nov 29, 2023

@raghavaggarwal2308 Would you please resolve the conflicts?

@hanzei hanzei added the Awaiting Submitter Action Blocked on the author label Nov 29, 2023
@raghavaggarwal2308
Copy link
Contributor Author

@hanzei Resolved conflicts

@hanzei hanzei removed the Awaiting Submitter Action Blocked on the author label Nov 29, 2023
@hanzei
Copy link
Collaborator

hanzei commented Nov 29, 2023

@hanzei @spirosoik Ready for your review

Copy link
Contributor

@mickmister mickmister left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Let's make sure we do a major version bump on this release, and mention this change in the release notes

@avas27JTG avas27JTG added 3: QA Review Requires review by a QA tester and removed 3: QA Review Requires review by a QA tester labels Dec 5, 2023
@hanzei hanzei removed the request for review from spirosoik December 11, 2023 11:08
@hanzei hanzei removed the 2: Dev Review Requires review by a core committer label Dec 11, 2023
Copy link

@AayushChaudhary0001 AayushChaudhary0001 left a comment

Choose a reason for hiding this comment

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

Tested and approved
Working fine for the below conditions:

  • Assigned MR's instead of open MR's
  • Updated names of the buttons in sidebar
  • Updated icons in the sidebar.

LGTM

@hanzei hanzei added 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester labels Dec 19, 2023
@hanzei
Copy link
Collaborator

hanzei commented Dec 19, 2023

@mickmister Do we want this PR in v1.8.0?

@mickmister mickmister merged commit 8130d66 into mattermost:master Dec 19, 2023
7 checks passed
@raghavaggarwal2308 raghavaggarwal2308 deleted the fix_issues_271 branch December 20, 2023 08:46
mickmister added a commit that referenced this pull request Jan 23, 2024
…pt (#438)

* sidebar_button converted in Typescript

* updated import

* Some changes based on comments

* Unnecessary imports removed

* Updated imports

* Reset the node-version to 14.21.1

* revert changes to package-lock.json

---------

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>
@mickmister mickmister mentioned this pull request Jan 25, 2024
raghavaggarwal2308 added a commit to Brightscout/mattermost-plugin-gitlab that referenced this pull request Feb 14, 2024
…how assigned MRs instead of opened MRs (#39) (mattermost#394)

* [MI-3405] Get proper data in sidebar buttons:
1. Get assigned PRs instead of the user's PRs.
2. Updated the name of sidebar buttons.
3. Updated API path.
4. Updated the name of API functions.
5. Updated the name of unreads to todos in the code.

* [MI-3405] Updated name of variables and functions

* [MI-3405] Updated icons in sidebar

* [MI-3405] Updated documentation

* [MI-3405] Reverted package-lock file changes

* [MI-3405] Review fixes
mickmister added a commit that referenced this pull request Feb 20, 2024
* Remove check for client secret length (#419)

* support client secrets longer than 64 chars

* remove length check

* change client secret length check to assume at least 64 chars

* change wording of error message

* [GH-321]:Fixed issue #321 'Wrong notification in case of assigned prs' (#395)

Co-authored-by: Abhishek Verma <abhishek.verma@brightscout.com>
Co-authored-by: ayusht2810 <ayush.thakur@brightscout.com>

* [MI-3405] Fix issues #271: Sidebar header MR count should show assigned MRs instead of opened MRs (#39) (#394)

* [MI-3405] Get proper data in sidebar buttons:
1. Get assigned PRs instead of the user's PRs.
2. Updated the name of sidebar buttons.
3. Updated API path.
4. Updated the name of API functions.
5. Updated the name of unreads to todos in the code.

* [MI-3405] Updated name of variables and functions

* [MI-3405] Updated icons in sidebar

* [MI-3405] Updated documentation

* [MI-3405] Reverted package-lock file changes

* [MI-3405] Review fixes

* [MM-42] Fix CI error: implicit memory aliasing (#429)

* [MI-3588] Fix issue: Image attachment breaking in comment notification (#406)

* [MI-3719] Send the users an ephemeral message if they try to connect their account via MM desktop app (#416)

* [MI-3719] Send the users an ephemeral message if they try to connect their account via MM desktop app

* [MI-3713] Handles the following cases as well for desktop app:
1. Connecting using the button from the teams sidebar.
2. Connecting using the button from RHS.

* [MI-3719] Review fixes

* [MI-3719] Review fixes

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>

* [MI-3719] Fix lint error

---------

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>

* Fix lint errors

* Update plugin version

---------

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>
Co-authored-by: kshitij katiyar <90389917+Kshitij-Katiyar@users.noreply.github.com>
Co-authored-by: Abhishek Verma <abhishek.verma@brightscout.com>
Co-authored-by: ayusht2810 <ayush.thakur@brightscout.com>
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sidebar header MR count should show assigned MRs instead of opened MRs
6 participants