◐ Shell
reader mode source ↗
Skip to content

chore: add authentication type to GitlabAuthenticationError#1793

Draft
JohnVillalovos wants to merge 1 commit into
mainfrom
jlvillal/auth_token_type
Draft

chore: add authentication type to GitlabAuthenticationError#1793
JohnVillalovos wants to merge 1 commit into
mainfrom
jlvillal/auth_token_type

Conversation

@JohnVillalovos

Copy link
Copy Markdown
Member

Add the type of authentication used to the GitlabAuthenticationError
exception. Hopefully this will make it easier to help user's debug
authentication issues they run into.

@codecov-commenter

codecov-commenter commented Jan 2, 2022

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.04%. Comparing base (c6d7e9a) to head (cce2202).
⚠️ Report is 1333 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1793      +/-   ##
==========================================
+ Coverage   92.02%   92.04%   +0.01%     
==========================================
  Files          76       76              
  Lines        4790     4801      +11     
==========================================
+ Hits         4408     4419      +11     
  Misses        382      382              
Flag Coverage Δ
cli_func_v4 81.35% <75.00%> (-0.02%) ⬇️
py_func_v4 80.08% <33.33%> (-0.13%) ⬇️
unit 83.25% <100.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
gitlab/client.py 90.66% <100.00%> (+0.11%) ⬆️
gitlab/exceptions.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JohnVillalovos JohnVillalovos force-pushed the jlvillal/auth_token_type branch from 51573dc to f1239fd Compare January 3, 2022 06:41
Add the type of authentication used to the GitlabAuthenticationError
exception. Hopefully this will make it easier to help user's debug
authentication issues they run into.
@JohnVillalovos JohnVillalovos force-pushed the jlvillal/auth_token_type branch from f1239fd to cce2202 Compare January 4, 2022 05:42

@nejch nejch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hide comment

Thanks John! Just a few ideas from my side on this one :) At the beginning I wasn't quite sure about the use case for this, but for authentication errors might be handy with all the job token confusion.

Especially with the job token we could add a link to the endpoints available or something (e.g. have a mapping for the error message).

@JohnVillalovos JohnVillalovos marked this pull request as draft February 12, 2022 16:54
@github-actions

github-actions Bot commented Jul 9, 2025

Copy link
Copy Markdown

This Pull Request (PR) was marked stale because it has been open 90 days with no activity. Please remove the stale label or comment on this PR. Otherwise, it will be closed in 15 days.

@github-actions github-actions Bot added stale and removed stale labels Jul 9, 2025
@github-actions

github-actions Bot commented Oct 9, 2025

Copy link
Copy Markdown

This Pull Request (PR) was marked stale because it has been open 90 days with no activity. Please remove the stale label or comment on this PR. Otherwise, it will be closed in 15 days.

@github-actions github-actions Bot added stale and removed stale labels Oct 9, 2025
@github-actions

github-actions Bot commented Jan 8, 2026

Copy link
Copy Markdown

This Pull Request (PR) was marked stale because it has been open 90 days with no activity. Please remove the stale label or comment on this PR. Otherwise, it will be closed in 15 days.

@github-actions github-actions Bot added the stale label Jan 8, 2026
@JohnVillalovos JohnVillalovos self-assigned this Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants