mattermost / mattermost/mattermost-plugin-gitlab

Fix logs and error response for all functions in instance.go

Open
#615 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
152
Forks
97
Avg merge
1d 14h
Merged PRs (30d)
8

Description

Some functions in instance.go log errors and return generic messages like “instance config map is empty.” We should clean this up so each function returns a clear error and a user-friendly message, without duplicating logs.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading instance.go and inventorying each function that logs an error or returns generic text. Trace the existing error paths, then verify that each function exposes a clear, user-friendly message without duplicate logging; the issue provides no test file to run, so validate the affected functions through the existing project checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.