Skip to content

Commit

Permalink
chore: add Tech-Preview tag to editors' definitions (#1901)
Browse files Browse the repository at this point in the history
Signed-off-by: Valeriy Svydenko <[email protected]>
  • Loading branch information
svor committed Mar 26, 2024
1 parent ccdf42d commit 41c2fe8
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CONTRIBUTE.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ Here is the expected format of a [`che-editors.yaml`](./che-editors.yaml) editor
displayName: Jupyter Notebook
description: Jupyter Notebook for Eclipse Che
icon: /images/notebook.svg
tags:
- Tech-Preview
attributes:
publisher: ws-skeleton
version: 5.7.0
Expand Down Expand Up @@ -77,6 +79,9 @@ Here are all the supported values, including optional ones:
description: Run Editor Foo on top of Eclipse Che
# Editor's icon. The icon should be located in /images folder.
icon: /images/editor_icon.svg
# (OPTIONAL) Array of tags of the current editor. Tech-Preview means it's considered experimental and is not recommended for production environments. While it can include new features and improvements, it may still contain bugs or undergo significant changes before reaching a stable version.
tags:
- Tech-Preview
# (OPTIONAL) Additional attributes
attributes:
title: This is my editor
Expand Down
22 changes: 22 additions & 0 deletions che-editors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ editors:
displayName: Jupyter Notebook
description: Jupyter Notebook for Eclipse Che
icon: /images/notebook.svg
tags:
- Tech-Preview
attributes:
publisher: ws-skeleton
version: 5.7.0
Expand Down Expand Up @@ -37,6 +39,8 @@ editors:
displayName: Eclipse Dirigible
description: Eclipse Dirigible for Eclipse Che
icon: /images/dirigible.svg
tags:
- Tech-Preview
attributes:
publisher: dirigiblelabs
version: 3.4.0
Expand Down Expand Up @@ -86,6 +90,8 @@ editors:
displayName: Eclipse IDE with Broadway
description: Eclipse IDE (in browser using Broadway) for Eclipse Che
icon: /images/eclipse-ide.svg
tags:
- Tech-Preview
attributes:
publisher: ws-skeleton
version: 4.9.0
Expand Down Expand Up @@ -115,6 +121,8 @@ editors:
description: An open source distribution of Visual Studio Code (code-server)
for Eclipse Che
icon: /images/vscode.svg
tags:
- Tech-Preview
attributes:
publisher: cdr
version: 3.6.2
Expand Down Expand Up @@ -150,6 +158,8 @@ editors:
description: Microsoft Visual Studio Code - Open Source IDE for Eclipse Che
- Insiders build
icon: /images/vscode.svg
tags:
- Tech-Preview
attributes:
publisher: che-incubator
version: insiders
Expand Down Expand Up @@ -325,6 +335,8 @@ editors:
displayName: IntelliJ IDEA Community
description: JetBrains IntelliJ IDEA Community IDE for Eclipse Che - next
icon: /images/intellij-idea.svg
tags:
- Tech-Preview
attributes:
publisher: che-incubator
version: next
Expand Down Expand Up @@ -431,6 +443,8 @@ editors:
displayName: IntelliJ IDEA Community
description: JetBrains IntelliJ IDEA Community IDE for Eclipse Che
icon: /images/intellij-idea.svg
tags:
- Tech-Preview
attributes:
publisher: che-incubator
version: latest
Expand Down Expand Up @@ -537,6 +551,8 @@ editors:
displayName: JetBrains PyCharm Community
description: JetBrains PyCharm Community IDE for Eclipse Che - next
icon: /images/pycharm.svg
tags:
- Tech-Preview
attributes:
publisher: che-incubator
version: next
Expand Down Expand Up @@ -643,6 +659,8 @@ editors:
displayName: JetBrains PyCharm Community
description: JetBrains PyCharm Community IDE for Eclipse Che
icon: /images/pycharm.svg
tags:
- Tech-Preview
attributes:
publisher: che-incubator
version: latest
Expand Down Expand Up @@ -749,6 +767,8 @@ editors:
displayName: IntelliJ IDEA Ultimate (desktop)
description: JetBrains IntelliJ IDEA Ultimate dev server for Eclipse Che - next
icon: /images/intellij-idea.svg
tags:
- Tech-Preview
attributes:
publisher: che-incubator
version: next
Expand Down Expand Up @@ -815,6 +835,8 @@ editors:
displayName: IntelliJ IDEA Ultimate (desktop)
description: JetBrains IntelliJ IDEA Ultimate dev server for Eclipse Che - latest
icon: /images/intellij-idea.svg
tags:
- Tech-Preview
attributes:
publisher: che-incubator
version: latest
Expand Down
1 change: 1 addition & 0 deletions tools/build/src/devfle-yaml/index-writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export class IndexWriter {
links: {
devfile: `/v3/plugins/${id}/devfile.yaml`,
},
tags: metadata.tags,
name: name,
publisher: publisher,
type: this.CHE_EDITOR_TYPE,
Expand Down
4 changes: 3 additions & 1 deletion tools/build/tests/devfile-yaml/index-writer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ describe('Test IndexWriter', () => {
displayName: 'display-name',
description: 'my-description',
icon: '/images/idea.svg',
tags: ['my-tag', 'Tech-Preview'],
attributes: {
tags: ['my-tag'],
icon: 'my-icon',
category: 'my-category',
version: 'latest',
Expand Down Expand Up @@ -107,6 +107,8 @@ describe('Test IndexWriter', () => {
expect(jsonOutput[1].type).toBe('Che Editor');
expect(jsonOutput[1].version).toBe('latest');
expect(jsonOutput[1].icon).toBe('/v3/images/idea.svg');
expect(jsonOutput[1].tags[0]).toBe('my-tag');
expect(jsonOutput[1].tags[1]).toBe('Tech-Preview');

expect(jsonOutput[2].id).toBe('my-publisher/my-name/latest');
expect(jsonOutput[2].description).toBe('my-description');
Expand Down

0 comments on commit 41c2fe8

Please sign in to comment.