Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

[MM-47814] - Refactor deleteTeamsCmdF function error handling #589

Merged

Conversation

enderahmetyurt
Copy link
Contributor

Summary
This PR makes necessary changes for deleteTeamsCmdF function to return an error in case of a failure

Ticket Link
Fixes mattermost/mattermost#21472
JIRA: https://mattermost.atlassian.net/browse/MM-47814

@mattermod
Copy link
Contributor

Hello @enderahmetyurt,

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.

Per the Mattermost Contribution Guide, we need to add you to the list of approved contributors for the Mattermost project.

Please help complete the Mattermost contribution license agreement?
Once you have signed the CLA, please comment with /check-cla and confirm that the CLA check is green.

This is a standard procedure for many open source projects.

Please let us know if you have any questions.

We are very happy to have you join our growing community! If you're not yet a member, please consider joining our Contributors community channel to meet other contributors and discuss new opportunities with the core team.

@noxer
Copy link
Contributor

noxer commented Oct 24, 2022

/check-cla

Copy link
Contributor

@noxer noxer left a 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 your contribution @enderahmetyurt. I'd like to request a few changes. Also don't forget to sign the CLA, otherwise we'll be unable to merge.

commands/team.go Outdated Show resolved Hide resolved
commands/team.go Outdated Show resolved Hide resolved
commands/team.go Outdated Show resolved Hide resolved
commands/team_test.go Outdated Show resolved Hide resolved
@isacikgoz isacikgoz self-requested a review October 25, 2022 06:16
Copy link
Member

@isacikgoz isacikgoz left a comment

Choose a reason for hiding this comment

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

This looks good overall, thanks for the contribution @enderahmetyurt 🚀 You'll need to do a small change to make tests pass :) Suggested below 👇

commands/team.go Outdated Show resolved Hide resolved
@enderahmetyurt enderahmetyurt force-pushed the delete_teams_command_error_handle branch from c896405 to 03fe56b Compare October 26, 2022 10:58
@enderahmetyurt enderahmetyurt requested review from isacikgoz and noxer and removed request for isacikgoz October 26, 2022 16:58
Copy link
Contributor

@noxer noxer left a 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 your contribution @enderahmetyurt. I'd like to request a small change. Otherwise this looks good.

commands/team.go Outdated Show resolved Hide resolved
@isacikgoz
Copy link
Member

Apart from @noxer's comment, you'll need to update the commands/team_e2e_test.go:137 to reflect the changes you've made. After that this is good to go @enderahmetyurt 🚀

@enderahmetyurt enderahmetyurt force-pushed the delete_teams_command_error_handle branch from 368f1fc to 37a5c61 Compare October 28, 2022 08:35
Copy link
Contributor

@noxer noxer left a comment

Choose a reason for hiding this comment

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

Great work. Thank you very much @enderahmetyurt.

Copy link
Member

@isacikgoz isacikgoz left a comment

Choose a reason for hiding this comment

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

Awesome!

@isacikgoz isacikgoz added the 4: Reviews Complete All reviewers have approved the pull request label Oct 31, 2022
@isacikgoz isacikgoz merged commit ca3d584 into mattermost:master Oct 31, 2022
@enderahmetyurt enderahmetyurt deleted the delete_teams_command_error_handle branch October 31, 2022 19:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4: Reviews Complete All reviewers have approved the pull request Hacktoberfest hacktoberfest-accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mmctl: Review deleteTeamsCmdF function to return an error in case of a failure
4 participants