-
Notifications
You must be signed in to change notification settings - Fork 52
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
Added Git Servies tab to the User Preferences #687
Conversation
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-687 |
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-687 |
@@ -19,6 +20,9 @@ export async function retryableExec<T>(callback: () => Promise<T>, maxAttempt = | |||
return await callback(); | |||
} catch (e) { | |||
error = e; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be a useless variable assignment. Don't you mind getting rid of it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need this variable out of the loop because we can have several errors until rejecting the last one.
packages/dashboard-frontend/src/pages/UserPreferences/GitServicesTab/index.tsx
Outdated
Show resolved
Hide resolved
...ashboard-frontend/src/pages/UserPreferences/GitServicesTab/Modals/RevokeGitServicesModal.tsx
Outdated
Show resolved
Hide resolved
...ashboard-frontend/src/pages/UserPreferences/GitServicesTab/Modals/RevokeGitServicesModal.tsx
Outdated
Show resolved
Hide resolved
...ashboard-frontend/src/pages/UserPreferences/GitServicesTab/Modals/RevokeGitServicesModal.tsx
Outdated
Show resolved
Hide resolved
packages/dashboard-frontend/src/pages/UserPreferences/GitServicesTab/index.tsx
Outdated
Show resolved
Hide resolved
packages/dashboard-frontend/src/pages/UserPreferences/GitServicesTab/index.tsx
Outdated
Show resolved
Hide resolved
packages/dashboard-frontend/src/pages/UserPreferences/GitServicesTab/index.tsx
Outdated
Show resolved
Hide resolved
packages/dashboard-frontend/src/pages/UserPreferences/GitServicesTab/index.tsx
Outdated
Show resolved
Hide resolved
packages/dashboard-frontend/src/pages/UserPreferences/GitServicesTab/index.tsx
Outdated
Show resolved
Hide resolved
packages/dashboard-frontend/src/pages/UserPreferences/GitServicesTab/index.tsx
Outdated
Show resolved
Hide resolved
packages/dashboard-frontend/src/pages/UserPreferences/index.tsx
Outdated
Show resolved
Hide resolved
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-687 |
Codecov Report
@@ Coverage Diff @@
## main #687 +/- ##
==========================================
+ Coverage 62.69% 63.41% +0.71%
==========================================
Files 290 288 -2
Lines 9004 8585 -419
Branches 1453 1349 -104
==========================================
- Hits 5645 5444 -201
+ Misses 3118 2918 -200
+ Partials 241 223 -18
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@@ -15,7 +15,7 @@ import { FastifyInstance } from 'fastify'; | |||
export function addAuthorizationHooks(server: FastifyInstance) { | |||
server.addHook('onResponse', (request, reply, done) => { | |||
if ( | |||
(request.url.startsWith('/api/') || request.url.startsWith('/dashboard/api/')) && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@olexii4 could you please clarify why do we need this change, as I recall api
was added explicitly to prevent some redirection issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code is only for a local run.
It removes the local environment variable CLUSTER_ACCESS_TOKEN when a response from '{CHE-Server}/api/' or '/dashboard/api/' has status code '401'.
I added the following changes
(request.url.startsWith('/api/') || request.url.startsWith('/dashboard/api/')) &&
->
request.url.startsWith('/dashboard/api/') &&
because I already have a code that can return status code '401' from CHE-Server API:
{CHE-Server}/api/oauth/token?oauth_provider=...
@olexii4 during verification I got the following error when deleting the GitHub Service:
|
...references/GitServicesTab/Modals/__tests__/__snapshots__/RevokeRegistriesModal.spec.tsx.snap
Outdated
Show resolved
Hide resolved
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-687 |
@ibuziuk I have fixed it. |
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-687 |
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-687 |
1 similar comment
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-687 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@olexii4 great job 👍
works like a charm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: akurinnoy, ibuziuk, olexii4 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 |
Signed-off-by: Oleksii Orel oorel@redhat.com
What does this PR do?
Added Git Servies tab to the User Preferences.
It depends on eclipse-che/che-workspace-client#87 and eclipse-che/che#21890
What issues does this PR fix or reference?
fixes Add "Git Servies" tab to the User Preferences
Is it tested? How?
This PR depends on eclipse-che/che-server#408