Skip to content

Commit

Permalink
Merge pull request #385 from KxSystems/readme-changelog-1.7
Browse files Browse the repository at this point in the history
docs update
  • Loading branch information
Philip-Carneiro-KX authored Aug 15, 2024
2 parents 8883693 + 1063e78 commit 62a1deb
Show file tree
Hide file tree
Showing 19 changed files with 133 additions and 1 deletion.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@

All notable changes to the **kdb VS Code extension** are documented in this file.

# v1.7.0

### Enhancements

- Now it's possible to edit existing connections
- Dialog offering to reconnect to connection that was edited (if the connection was connected)
- Added labels for connections
- Ability to connect Insights servers with self signed SSL certificate

### Fixes

- https is prefixed for unschemed Insights server urls
- Use the custom editor to open datasource when renaming or deleting
- Removed unnecessary buttons in walkthrough
- Fixed toggle parameter cache doesn't work in workbooks
- Fixed files can't be executed from entity tree

# v1.6.1

### Fixes
Expand Down
117 changes: 116 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ When you select **Bundled q** as the connection type and set the following prope
| Server Name | The name is already set as **local**. |
| The connection address | This is already be set as `127.0.0.1` which corresponds to your **localhost**. |
| Port | Set the port for the kdb server. Ensure the port used doesn't conflict with any other running q process; e.g. 5002. [Read here for more about setting a q port](https://code.kx.com/q/basics/ipc/) |
| Label Name | Select the label you want to assign the connection to |

1. Click **Create Connection** and the connection appears under **CONNECTIONS** in the primary sidebar..

Expand All @@ -166,8 +167,9 @@ Set the following properties:
| Username | If authentication is needed, fill in the username otherwise, leave **blank** |
| Password | If authentication is needed, fill in the password otherwise, leave **blank** |
| Enable TLS Encryption | Check the box is TLS is enabled. Learn more [about TLS encryption](https://code.kx.com/q/kb/ssl/). |
| Label Name | Select the label you want to assign the connection to |

![setendpoint](https://github.com/KxSystems/kx-vscode/blob/main/img/myq.png?raw=true).
![setendpoint](https://github.com/KxSystems/kx-vscode/blob/main/img/myq.png?raw=true)

1. Click **Create Connection** and the connection appears under **CONNECTIONS** in the primary sidebar.

Expand All @@ -185,6 +187,7 @@ Set the following properties:
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| Server Name | The server name / alias. This can be any name, aside from `local`, which is used by [Bundled q connection](#bundled-q) |
| The connection address | This is the remote address of your **kdb Insights Enterprise** deployment: e.g. `https://mykdbinsights.cloudapp.azure.com` |
| Label Name | Select the label you want to assign the connection to |

![connecttoinsights](https://github.com/KxSystems/kx-vscode/blob/main/img/insightsconnection.png?raw=true)

Expand Down Expand Up @@ -226,6 +229,118 @@ The 'meta' node contains a child node for each of the child sections in the json

You can refresh the meta data view at any time by choosing **Refresh meta data** from the right-click menu of an Insights connection.

## Edit Connections

To edit an existing connection, simply right-click the connection you wish to edit and select the **Edit connection** option.

![Edit connection option](https://github.com/KxSystems/kx-vscode/blob/main/img/select-edit-connection.png?raw=true)

> NOTE: Editing an **active connection** may require you to **restart** the connection. If so, you will be prompted to reconnect after saving your changes.
![Edit connected connection dialog](https://github.com/KxSystems/kx-vscode/blob/main/img/edit-connected-connection-dialog.png?raw=true)

### Edit Bundle q connection

When you select to edit an **Bundled q** connection, you can edit the following properties:

| Property | Description |
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Server Name | The name is already set as **local** and **cannot be edited**. |
| The connection address | This is already be set as `127.0.0.1` which corresponds to your **localhost** and **cannot be edited**. |
| Port | Set the port for the kdb server. Ensure the port used doesn't conflict with any other running q process; e.g. 5002. [Read here for more about setting a q port](https://code.kx.com/q/basics/ipc/) |
| Label Name | Select the label you want to assign the connection to |

![Edit Bundle q connection](https://github.com/KxSystems/kx-vscode/blob/main/img/edit-bundle-q-conn-form.png?raw=true)

### Edit My q connection

When you select to edit an **My q** connection, you can edit the following properties:

| Property | Description |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Server Name | The server name / alias. The server name selected cannot be **local** or **insights**, as these are reserved for use by [Bundled q connections](#bundled-q) and [Insights connections](#insights-connection), respectively; e.g. dev |
| The connection address | Set to the IP address of the kdb server; e.g. **localhost**. |
| Port | Enter the port used by the kdb server; e.g. 5001. Learn more about [setting a q port](https://code.kx.com/q/basics/ipc/) . |
| Edit Auth options | Check the box if you wish to change **Auth options**. If you want to **remove the Auth** for this connection, select this checkbox and leave the **Username** and **Password** fields in **blank** |
| Username | If authentication is needed, fill in the username otherwise, leave **blank** |
| Password | If authentication is needed, fill in the password otherwise, leave **blank** |
| Enable TLS Encryption | Check the box is TLS is enabled. Learn more [about TLS encryption](https://code.kx.com/q/kb/ssl/). |
| Label Name | Select the label you want to assign the connection to |

![Edit My q connection](https://github.com/KxSystems/kx-vscode/blob/main/img/edit-my-q-conn-form.png?raw=true)

### Edit Insights connection

When you select to edit an **Insights** connection, you can edit the following properties:

| Property | Description |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Server Name | The server name / alias. This can be any name, aside from `local`, which is used by [Bundled q connection](#bundled-q) |
| The connection address | This is the remote address of your **kdb Insights Enterprise** deployment: e.g. `https://mykdbinsights.cloudapp.azure.com` |
| Define Realm | Specify the Keycloak realm for authentication. Usually the realm is set to `insights`, which is the default value used by the extension. You only need to change this field if a different realm has been configured on your server. |
| Label Name | Select the label you want to assign the connection to |

![Edit Insights connection](https://github.com/KxSystems/kx-vscode/blob/main/img/edit-insights-conn-form.png?raw=true)

## Connection Labels

Connection Labels allow you to categorize and organize your connections by assigning them distinct names and colors, making it easier to manage and locate specific connections within the application.

![Connection Tree With Labels](https://github.com/KxSystems/kx-vscode/blob/main/img/conn-labels-tree.png?raw=true)

### Create New Label

To create a Label, start by **editing** or **creating** a connection. At the **bottom of the form**, you'll see a **Create New Label** button.

![Create New Label Button](https://github.com/KxSystems/kx-vscode/blob/main/img/create-new-label-btn.png?raw=true)

Clicking this button will open a **dialog** where you can enter a **Label name** and choose a **Label color** for it. You can then create the Label by clicking 'Create' or cancel the process by clicking 'Cancel.'

| Property | Description |
| ----------- | --------------------------------------------------------- |
| Label Name | Enter a name for the label. |
| Label color | Select the color in the list of colors for the new label. |

![Create New Label](https://github.com/KxSystems/kx-vscode/blob/main/img/create-new-label-dialog.png?raw=true)

### Add Label to a connection

To add a Label to a connection, start by **editing** or **creating** a connection. At the **bottom of the form**, you'll see a **Label Name** dropdown to select a Label, select the Label and click in **Edit or Create Connection**.

| Property | Description |
| ---------- | ------------------------------------ |
| Label Name | Select Label from the list of Labels |

![Select Label](https://github.com/KxSystems/kx-vscode/blob/main/img/conn-labels.png?raw=true)

### Rename Label

Right-click the label at Connection Tree and select **Rename label**.

![Rename Label Opt](https://github.com/KxSystems/kx-vscode/blob/main/img/labels-rename-opt.png?raw=true)

A prompt will be displayed at the top of the screen with the field to edit the name of the Label.

![Rename Label](https://github.com/KxSystems/kx-vscode/blob/main/img/labels-rename.png?raw=true)

### Edit Label Color

Right-click the label at Connection Tree and select **Edit label color**.

![Edit Label Color Opt](https://github.com/KxSystems/kx-vscode/blob/main/img/labels-edit-color-opt.png?raw=true)

A prompt will be displayed at the top of the screen with the field to edit the color of the Label.

![Edit Label Color](https://github.com/KxSystems/kx-vscode/blob/main/img/labels-edit-color.png?raw=true)

### Delete Label

Right-click the label at Connection Tree and select **Delete label**.

![Delete Label Opt](https://github.com/KxSystems/kx-vscode/blob/main/img/labels-delete-opt.png?raw=true)

> The connections assign to the Label will **not be deleted**.
## kdb language server

A kdb language server is bundled with the kdb VS Code extension. It offers various common features to aid in the development of kdb code, including:
Expand Down
Binary file modified img/bundleqform.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/conn-labels-tree.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/conn-labels.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/create-new-label-btn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/create-new-label-dialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/edit-bundle-q-conn-form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/edit-connected-connection-dialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/edit-insights-conn-form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/edit-my-q-conn-form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/insightsconnection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/labels-delete-opt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/labels-edit-color-opt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/labels-edit-color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/labels-rename-opt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/labels-rename.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/myq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/select-edit-connection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 62a1deb

Please sign in to comment.