Skip to content

Commit

Permalink
feat: added Git Servies tab to the User Preferences
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Orel <oorel@redhat.com>
  • Loading branch information
olexii4 committed Dec 28, 2022
1 parent 4ac5618 commit 2071656
Show file tree
Hide file tree
Showing 25 changed files with 785 additions and 418 deletions.
2 changes: 2 additions & 0 deletions packages/common/src/dto/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

import { V220DevfileComponents } from '@devfile/api';

export type GitOauthProvider = 'github' | 'gitlab' | 'bitbucket';

export interface IPatch {
op: string;
path: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
*/

import { delay } from '../../../services/helpers';
import { helpers } from '@eclipse-che/common';

export async function retryableExec<T>(callback: () => Promise<T>, maxAttempt = 5): Promise<T> {
let error: unknown;
Expand All @@ -19,6 +20,9 @@ export async function retryableExec<T>(callback: () => Promise<T>, maxAttempt =
return await callback();
} catch (e) {
error = e;
if (helpers.errors.isKubeClientError(error) && error.statusCode === 404) {
return Promise.reject(error);
}
console.error(e);
}
await delay(1000);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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/')) &&
request.url.startsWith('/dashboard/api/') &&
request.method === 'GET' &&
reply.statusCode === 401
) {
Expand Down
2 changes: 1 addition & 1 deletion packages/dashboard-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@eclipse-che/che-code-devworkspace-handler": "1.74.0-dev-e701cae",
"@eclipse-che/che-theia-devworkspace-handler": "0.0.1-1667484092",
"@eclipse-che/devfile-converter": "0.0.1-d624e3e",
"@eclipse-che/workspace-client": "0.0.1-1663851810",
"@eclipse-che/workspace-client": "0.0.1-1671716979",
"@patternfly/react-core": "4.120.0",
"@patternfly/react-icons": "^4.3.5",
"@patternfly/react-table": "^4.5.7",
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 2071656

Please sign in to comment.