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

Remove usage of model.AppError #364

Merged
merged 6 commits into from
Apr 17, 2023
Merged

Conversation

srkgupta
Copy link
Contributor

Summary

Remove usage of model.AppError in Gitlab plugin

Ticket Link

https://mattermost.atlassian.net/browse/MM-50986

@srkgupta srkgupta added 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels Mar 13, 2023
@srkgupta srkgupta requested a review from hanzei March 13, 2023 13:21
@codecov
Copy link

codecov bot commented Mar 13, 2023

Codecov Report

Patch coverage: 11.92% and project coverage change: +0.11 🎉

Comparison is base (2b10e7c) 32.17% compared to head (c7080b6) 32.29%.

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

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #364      +/-   ##
==========================================
+ Coverage   32.17%   32.29%   +0.11%     
==========================================
  Files          21       21              
  Lines        3468     3437      -31     
==========================================
- Hits         1116     1110       -6     
+ Misses       2242     2217      -25     
  Partials      110      110              
Impacted Files Coverage Δ
server/cluster.go 0.00% <0.00%> (ø)
server/configuration.go 35.38% <0.00%> (-1.13%) ⬇️
server/telemetry.go 0.00% <0.00%> (ø)
server/api.go 23.09% <4.76%> (+0.04%) ⬆️
server/command.go 23.56% <5.88%> (ø)
server/plugin.go 15.84% <15.55%> (+0.15%) ⬆️
server/webhook.go 40.11% <22.22%> (ø)
server/subscriptions.go 56.15% <33.33%> (+0.33%) ⬆️

... and 2 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@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 👍

Copy link
Contributor

@m1lt0n m1lt0n left a comment

Choose a reason for hiding this comment

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

Looks good! Only comment: there is an occurrence of model.AppError in command.go in the ExecuteCommand, is this possible to be updated too or not?

@srkgupta
Copy link
Contributor Author

Looks good! Only comment: there is an occurrence of model.AppError in command.go in the ExecuteCommand, is this possible to be updated too or not?

Thanks @m1lt0n. Nice catch. I have updated the occurrence in ExecuteCommand function too.

Copy link
Collaborator

@hanzei hanzei left a comment

Choose a reason for hiding this comment

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

Nice work, @srkgupta 👍

I left a few comments below. The most important item is to check if the slash command still works.

go.mod Outdated Show resolved Hide resolved
server/command.go Outdated Show resolved Hide resolved
server/plugin.go Outdated Show resolved Hide resolved
server/subscriptions.go Outdated Show resolved Hide resolved
@hanzei
Copy link
Collaborator

hanzei commented Mar 23, 2023

Nit pick:

iconData, err := command.GetIconData(p.API, "assets/icon.svg")
can be updated to iconData, err := command.GetIconData(&p.client.System, "assets/icon.svg") so p.API is used even less.

@srkgupta srkgupta requested a review from hanzei March 27, 2023 15:19
@srkgupta
Copy link
Contributor Author

Hi @hanzei

I have made all the changes based on your feedback. Requesting your re-review on this.

Thanks

@hanzei hanzei removed the request for review from spirosoik March 30, 2023 09:38
Copy link
Collaborator

@hanzei hanzei left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

server/plugin.go Show resolved Hide resolved
@hanzei hanzei removed the 2: Dev Review Requires review by a core committer label Mar 30, 2023
@hanzei hanzei added this to the v1.7.0 milestone Mar 30, 2023
@hanzei
Copy link
Collaborator

hanzei commented Apr 5, 2023

@DHaussermann Heads up that this PR is ready for your review

Copy link

@DHaussermann DHaussermann 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 passed

  • Setup and smoke tested GitLab
  • Connect and disconnect from browser and desktop
  • Various commands to retrieve data
  • Created subscription and ensured deliveries are working
  • RHS works to show connection and subscribe options
  • Lists of work items open in RHS as expected
  • No changes in behavior found
  • Nothing unusual in the logs

LGTM!

@DHaussermann DHaussermann removed the 3: QA Review Requires review by a QA tester label Apr 13, 2023
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.

None yet

5 participants