-
Notifications
You must be signed in to change notification settings - Fork 29
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
fix(KTO-441): option to display the ID instead of the description as … #1221
Conversation
c6f877c
to
76507ba
Compare
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.
Thanks @tplevko for taking care of this, unfortunately, in order to make it work in VSCode, we need to provide a settings adapter that handles VSCode settings as well. Is it ok for you to hold this PR for a bit until we create that first?
sure, let's wait for the VSCode settings adapter |
At the moment, the Kaoto settings are passed individually to VSCode, meaning that in case we want to add new settings, we need to pass individual parameters to the `KaotoEditorApp` class. This commit provides a SettingsAdapter so every new setting will be added directly to the adapter. relates: https://issues.redhat.com/browse/KTO-441 relates: KaotoIO#1221
At the moment, the Kaoto settings are passed individually to VSCode, meaning that in case we want to add new settings, we need to pass individual parameters to the `KaotoEditorApp` class. This commit provides a SettingsAdapter so every new setting will be added directly to the adapter. relates: https://issues.redhat.com/browse/KTO-441 relates: KaotoIO#1221
This commit adds a new `getVSCodeKaotoSettings` method to the `VSCodeKaotoEditorChannelApi` class to build the Settings model. It also deprecates the existing `getCatalogURL` method as the new way to go is using the settings adapter from now on. relates: https://issues.redhat.com/browse/KTO-441 relates: KaotoIO/kaoto#1221 relates: KaotoIO/kaoto#1264
At the moment, the Kaoto settings are passed individually to VSCode, meaning that in case we want to add new settings, we need to pass individual parameters to the `KaotoEditorApp` class. This commit provides a SettingsAdapter so every new setting will be added directly to the adapter. relates: https://issues.redhat.com/browse/KTO-441 relates: KaotoIO#1221
At the moment, the Kaoto settings are passed individually to VSCode, meaning that in case we want to add new settings, we need to pass individual parameters to the `KaotoEditorApp` class. This commit provides a SettingsAdapter so every new setting will be added directly to the adapter. relates: https://issues.redhat.com/browse/KTO-441 relates: #1221
This commit adds a new `getVSCodeKaotoSettings` method to the `VSCodeKaotoEditorChannelApi` class to build the Settings model. It also deprecates the existing `getCatalogURL` method as the new way to go is using the settings adapter from now on. relates: https://issues.redhat.com/browse/KTO-441 relates: KaotoIO/kaoto#1221 relates: KaotoIO/kaoto#1264
This commit adds a new `getVSCodeKaotoSettings` method to the `VSCodeKaotoEditorChannelApi` class to build the Settings model. It also deprecates the existing `getCatalogURL` method as the new way to go is using the settings adapter from now on. relates: https://issues.redhat.com/browse/KTO-441 relates: KaotoIO/kaoto#1221 relates: KaotoIO/kaoto#1264
This commit adds a new `getVSCodeKaotoSettings` method to the `VSCodeKaotoEditorChannelApi` class to build the Settings model. It also deprecates the existing `getCatalogURL` method as the new way to go is using the settings adapter from now on. relates: https://issues.redhat.com/browse/KTO-441 relates: KaotoIO/kaoto#1221 relates: KaotoIO/kaoto#1264
This commit adds a new `getVSCodeKaotoSettings` method to the `VSCodeKaotoEditorChannelApi` class to build the Settings model. It also deprecates the existing `getCatalogURL` method as the new way to go is using the settings adapter from now on. relates: https://issues.redhat.com/browse/KTO-441 relates: KaotoIO/kaoto#1221 relates: KaotoIO/kaoto#1264
@tplevko, I think we can rebase this PR and merge it, as VSCode is in a middle ground and we still have things to polish before making it available to the public. |
f3d33a7
to
88ab60a
Compare
@@ -9,6 +10,7 @@ export interface AbstractSettingsAdapter { | |||
|
|||
export class SettingsModel implements ISettingsModel { | |||
catalogUrl: string = ''; | |||
nodeLabel: string = 'description'; |
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.
I think this should be an enum
, we can take care of it at another time.
This commit adds a new `getVSCodeKaotoSettings` method to the `VSCodeKaotoEditorChannelApi` class to build the Settings model. It also deprecates the existing `getCatalogURL` method as the new way to go is using the settings adapter from now on. relates: https://issues.redhat.com/browse/KTO-441 relates: KaotoIO/kaoto#1221 relates: KaotoIO/kaoto#1264
This commit adds a new `getVSCodeKaotoSettings` method to the `VSCodeKaotoEditorChannelApi` class to build the Settings model. It also deprecates the existing `getCatalogURL` method as the new way to go is using the settings adapter from now on. relates: https://issues.redhat.com/browse/KTO-441 relates: KaotoIO/kaoto#1221 relates: KaotoIO/kaoto#1264
This commit adds a new `getVSCodeKaotoSettings` method to the `VSCodeKaotoEditorChannelApi` class to build the Settings model. It also deprecates the existing `getCatalogURL` method as the new way to go is using the settings adapter from now on. relates: https://issues.redhat.com/browse/KTO-441 relates: KaotoIO/kaoto#1221 relates: KaotoIO/kaoto#1264
This commit adds a new `getVSCodeKaotoSettings` method to the `VSCodeKaotoEditorChannelApi` class to build the Settings model. It also deprecates the existing `getCatalogURL` method as the new way to go is using the settings adapter from now on. relates: https://issues.redhat.com/browse/KTO-441 relates: KaotoIO/kaoto#1221 relates: KaotoIO/kaoto#1264
This commit adds a new `getVSCodeKaotoSettings` method to the `VSCodeKaotoEditorChannelApi` class to build the Settings model. It also deprecates the existing `getCatalogURL` method as the new way to go is using the settings adapter from now on. relates: https://issues.redhat.com/browse/KTO-441 relates: KaotoIO/kaoto#1221 relates: KaotoIO/kaoto#1264
This commit adds a new `getVSCodeKaotoSettings` method to the `VSCodeKaotoEditorChannelApi` class to build the Settings model. It also deprecates the existing `getCatalogURL` method as the new way to go is using the settings adapter from now on. relates: https://issues.redhat.com/browse/KTO-441 relates: KaotoIO/kaoto#1221 relates: KaotoIO/kaoto#1264
This commit wires up the `nodeLabel` setting so the user can choose what label a node shows. relates: https://issues.redhat.com/browse/KTO-441 relates: KaotoIO/kaoto#1221 relates: KaotoIO/kaoto#1264
This commit wires up the `nodeLabel` setting so the user can choose what label a node shows. relates: https://issues.redhat.com/browse/KTO-441 relates: KaotoIO/kaoto#1221 relates: KaotoIO/kaoto#1264
This commit wires up the `nodeLabel` setting so the user can choose what label a node shows. relates: https://issues.redhat.com/browse/KTO-441 relates: KaotoIO/kaoto#1221 relates: KaotoIO/kaoto#1264
This commit wires up the `nodeLabel` setting so the user can choose what label a node shows. relates: https://issues.redhat.com/browse/KTO-441 relates: KaotoIO/kaoto#1221 relates: KaotoIO/kaoto#1264
This commit wires up the `nodeLabel` setting so the user can choose what label a node shows. relates: https://issues.redhat.com/browse/KTO-441 relates: KaotoIO/kaoto#1221 relates: KaotoIO/kaoto#1264
…step label
fixes https://issues.redhat.com/browse/KTO-441
The option was added to the settings page:
The ID is used either when selected, or in case the "description" is selected, but not yet specified in the node form.