mattermost / mattermost/mattermost-plugin-gitlab

Disable warning for expired tokens

Open
#360 0 comments 1 reaction 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

Dear team,

first things first: Thank you for working on this great plugin!

In our production setup, logs are filled up with warning about expired tokens similar to:
`{"timestamp":"2023-01-23 11:03:28.651 +01:00","level":"warn","msg":"Unable to list unreads in GitLab API","caller":"app/plugin_api.go:979","plugin_id":"com.github.manland.mattermost-plugin-gitlab","userid":"xxx","gitlab username":"xxx","gitlab userid":"xxx","error":"can't list todo in GitLab api: GET https://gitlab.com/api/v4/todos: 401 {error: invalid_token}, {error_description: Token is expired. You can either do re-authorization or token refresh.}"}`

We would therefore appreciate an option to turn off this and similar notifications which an admin can only do little about. Thanks a lot! :)

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 inspecting app/plugin_api.go around line 979, where the expired-token warning is reported, and trace how similar GitLab API errors are logged. Done means an administrator can disable these expired-token warnings and the setting prevents the reported log noise without hiding unrelated errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.