Skip to content

Commit

Permalink
fixup! feat: add an ability to show provider info into a sample
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Orel <oorel@redhat.com>
  • Loading branch information
olexii4 committed Oct 23, 2024
1 parent aaff418 commit 2cb0555
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions .deps/EXCLUDED/prod.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ This file lists dependencies that do not need CQs or auto-detection does not wor
| `fast-uri@2.4.0` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/fast-uri/2.4.0) |
| `fastify@5.0.0` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/fastify/5.0.0) |
| `glob@11.0.0` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/glob/11.0.0) |
| `hast-util-to-jsx-runtime@2.3.2` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/hast-util-to-jsx-runtime/2.3.2) |
| `jsep@1.3.9` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/jsep/1.3.9) |
| `real-require@0.2.0` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/real-require/0.2.0) |
| `light-my-request@6.0.0` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/light-my-request/6.0.0) |
7 changes: 1 addition & 6 deletions packages/dashboard-backend/src/routes/api/editors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@
*/

import { FastifyInstance, FastifyReply, FastifyRequest } from 'fastify';
import { dump, load } from 'js-yaml';
import { dump } from 'js-yaml';

import { baseApiPath } from '@/constants/config';
import { devWorkspaceResourcesExample } from '@/constants/examples';
import { authenticationHeaderSchema } from '@/constants/schemas';
import { EditorNotFoundError } from '@/devworkspaceClient/services/editorsApi';
import { isLocalRun } from '@/localRun';
import { IEditorsDevfileParams } from '@/models/restParams';
import { getDevWorkspaceClient } from '@/routes/api/helpers/getDevWorkspaceClient';
import { getServiceAccountToken } from '@/routes/api/helpers/getServiceAccountToken';
Expand All @@ -28,9 +26,6 @@ const tags = ['Editor Definitions'];
export function registerEditorsRoutes(instance: FastifyInstance) {
instance.register(async server => {
server.get(`${baseApiPath}/editors`, getSchema({ tags }), async () => {
if (isLocalRun()) {
return [load(devWorkspaceResourcesExample.editorContent)];
}
const token = getServiceAccountToken();
const { editorsApi } = getDevWorkspaceClient(token);

Expand Down
2 changes: 1 addition & 1 deletion scripts/yarn/old_version/.deps/EXCLUDED/prod.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ This file lists dependencies that do not need CQs or auto-detection does not wor
| --- | --- |
| `@fastify/cors@10.0.1` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/@fastify/cors/10.0.1) |
| `@hapi/hoek@10.0.1` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/@hapi/hoek/10.0.1) |
| `hast-util-to-jsx-runtime@2.3.2` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/hast-util-to-jsx-runtime/2.3.2) |
| `@patternfly/react-core@4.278.0` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/@patternfly/react-core/4.278.0) |
| `@patternfly/react-icons@4.93.7` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/@patternfly/react-icons/4.93.7) |
| `@patternfly/react-table@4.113.6` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/@patternfly/react-table/4.113.6) |
Expand All @@ -14,6 +13,7 @@ This file lists dependencies that do not need CQs or auto-detection does not wor
| `fast-uri@2.4.0` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/fast-uri/2.4.0) |
| `fastify@5.0.0` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/fastify/5.0.0) |
| `glob@11.0.0` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/glob/11.0.0) |
| `hast-util-to-jsx-runtime@2.3.2` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/hast-util-to-jsx-runtime/2.3.2) |
| `jsep@1.3.9` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/jsep/1.3.9) |
| `real-require@0.2.0` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/real-require/0.2.0) |
| `light-my-request@6.0.0` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/light-my-request/6.0.0) |

0 comments on commit 2cb0555

Please sign in to comment.