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

Use token name instead of provider name to check if the token is generated from oAuth #1267

Closed
wants to merge 1 commit into from

Conversation

vinokurig
Copy link
Contributor

@vinokurig vinokurig commented Nov 27, 2024

What does this PR do?

Use token name instead of provider name to check if the token is generated from oAuth

Screenshot/screencast of this PR

What issues does this PR fix or reference?

fixes eclipse-che/che#23241

Is it tested? How?

  1. Apply the dashboard pull request image: quay.io/eclipse/che-dashboard:pr-1267
  2. Go to User Preferences -> Personal Access Tokens tab and add a GitHub token.
  3. Go to to the Git Services tab and see that the list is empty.

Release Notes

With this fix, the dashboard User Preferences Git Services tab does not list git services by manually added Personal Access Tokens.

Docs PR

@che-bot
Copy link
Contributor

che-bot commented Nov 27, 2024

Click here to review and test in web IDE: Contribute

Copy link

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1267

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1267", name: che-dashboard}]}}]"

Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.52%. Comparing base (5f2169d) to head (41eb64d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1267      +/-   ##
==========================================
- Coverage   91.67%   91.52%   -0.15%     
==========================================
  Files         497      497              
  Lines       45501    45501              
  Branches     3167     3166       -1     
==========================================
- Hits        41712    41646      -66     
- Misses       3759     3826      +67     
+ Partials       30       29       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

openshift-ci bot commented Nov 27, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: akurinnoy, vinokurig

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@vinokurig vinokurig closed this Nov 28, 2024
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.

GitHub Authorization doesn't work properly
3 participants