Skip to content
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

V1.8.0 dev to main #438

Merged
merged 128 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
adb4b0b
add multiple labels
Philip-Carneiro-KX Aug 21, 2024
3fdd77e
Merge pull request #411 from KxSystems/ee-doc
ecmel Aug 22, 2024
b01de28
Merge pull request #416 from KxSystems/v1.7.0-dev-to-main
natalietanner Aug 22, 2024
06337de
Merge pull request #415 from KxSystems/main
Philip-Carneiro-KX Aug 23, 2024
72bac9a
Merge branch 'dev' into KXI-52582
Philip-Carneiro-KX Aug 23, 2024
4710784
small fix for multiple labels
Philip-Carneiro-KX Aug 23, 2024
b214b64
update version
Philip-Carneiro-KX Aug 23, 2024
97f78e3
add edit tests
Philip-Carneiro-KX Aug 23, 2024
6c4f9c3
add tests
Philip-Carneiro-KX Aug 23, 2024
03323e6
Merge pull request #418 from KxSystems/KXI-52582
Philip-Carneiro-KX Aug 23, 2024
6e6ae02
allow user to disable installl kdb popup
Philip-Carneiro-KX Sep 2, 2024
367378b
add tests
Philip-Carneiro-KX Sep 2, 2024
746b67c
remove obsolete vars
Philip-Carneiro-KX Sep 2, 2024
b95f6eb
add more tests
Philip-Carneiro-KX Sep 2, 2024
e82910b
add tests
Philip-Carneiro-KX Sep 2, 2024
25810fc
add more tests
Philip-Carneiro-KX Sep 2, 2024
c8f5fe3
improve code coverage
Philip-Carneiro-KX Sep 2, 2024
5f38dde
[KXI-34231] results tab not changing when connected
Philip-Carneiro-KX Sep 2, 2024
73cb64c
Merge pull request #419 from KxSystems/KXI-30428
Philip-Carneiro-KX Sep 3, 2024
5cb38d3
add import/export options to elipse icon
Philip-Carneiro Sep 4, 2024
63a4973
centralized all connections in one place
Philip-Carneiro Sep 4, 2024
d34718f
open json from exported connections
Philip-Carneiro Sep 4, 2024
e1d6c33
add export method to the extension
Philip-Carneiro Sep 5, 2024
16339d9
add tests
Philip-Carneiro Sep 5, 2024
0a2e240
Merge pull request #420 from Philip-Carneiro/KXI-52687
Philip-Carneiro-KX Sep 5, 2024
aba63d8
add auth for exported connections
Philip-Carneiro Sep 5, 2024
4296441
add tests
Philip-Carneiro Sep 5, 2024
0abeb0a
[KXI-52687] - add tests
Philip-Carneiro Sep 5, 2024
52cf42d
Merge pull request #421 from Philip-Carneiro/KXI-52687
Philip-Carneiro-KX Sep 6, 2024
0a4c3dc
add import connections method
Philip-Carneiro Sep 6, 2024
0e39866
add tests
Philip-Carneiro Sep 6, 2024
1c4dbc2
add tests and one more validation
Philip-Carneiro Sep 6, 2024
dc676b2
add tests and improve code quality
Philip-Carneiro Sep 8, 2024
90e21c0
improve code and add tests
Philip-Carneiro Sep 8, 2024
801153a
improve code quality
Philip-Carneiro Sep 8, 2024
c8a4334
add change to improve code coverage
Philip-Carneiro Sep 8, 2024
3c4f6f5
Merge pull request #422 from KxSystems/KXI-52817
Philip-Carneiro-KX Sep 9, 2024
b6c64b1
update packages and remove unused package
Philip-Carneiro Sep 9, 2024
dc6443d
Merge branch 'dev' into update-packages2
Philip-Carneiro Sep 9, 2024
9f0e64a
add icons
Philip-Carneiro Sep 9, 2024
921f383
linting svg
Philip-Carneiro Sep 9, 2024
e464390
Merge pull request #423 from KxSystems/update-packages2
Philip-Carneiro-KX Sep 9, 2024
5e939ca
fix icons colors
Philip-Carneiro Sep 11, 2024
093da59
add new command and icon
Philip-Carneiro Sep 11, 2024
469f0a4
add connlabel to tree obj
Philip-Carneiro Sep 11, 2024
9479eef
fix query history
Philip-Carneiro Sep 11, 2024
001e772
fix rerunquery
Philip-Carneiro Sep 11, 2024
2cd6c6c
update tests
Philip-Carneiro Sep 11, 2024
186cd89
[KXI-53468] - fix all icons
Philip-Carneiro Sep 12, 2024
d51a950
remove unused command
Philip-Carneiro Sep 12, 2024
40035fe
fix icons
Philip-Carneiro Sep 12, 2024
09394a7
remove useless icons
Philip-Carneiro Sep 12, 2024
f1daf81
remove console.log
Philip-Carneiro Sep 13, 2024
f0daa6c
add tests remove console.log
Philip-Carneiro Sep 13, 2024
f00ea17
Merge pull request #424 from KxSystems/KXI-36435
Philip-Carneiro-KX Sep 13, 2024
ca88117
add changes for future reset scratchpad
Philip-Carneiro Sep 20, 2024
e436e04
fix tests
Philip-Carneiro Sep 23, 2024
e2334cf
add more tests
Philip-Carneiro Sep 23, 2024
1465b4b
Merge pull request #425 from KxSystems/KXI-38269-2
Philip-Carneiro-KX Sep 23, 2024
a9880ac
add logic for rowLimit logic for DS
Philip-Carneiro Sep 24, 2024
d23ded5
fix bug and tests
Philip-Carneiro Sep 25, 2024
7a09ec9
refactory the results panel
Philip-Carneiro Sep 30, 2024
ae3e11e
implemented mult file server features
ecmel Sep 30, 2024
cd9ad5c
add tests
Philip-Carneiro Oct 1, 2024
da84b42
Merge pull request #426 from KxSystems/KXI-53885
Philip-Carneiro-KX Oct 1, 2024
a8bbd85
Merge branch 'dev' into KXI-52581
Philip-Carneiro Oct 1, 2024
7eddb41
Merge remote-tracking branch 'origin/dev' into ee-multi
ecmel Oct 1, 2024
af70d50
do not skip tests
ecmel Oct 1, 2024
87552e2
Merge pull request #427 from KxSystems/ee-multi
ecmel Oct 1, 2024
3e167eb
Merge branch 'dev' into KXI-52581
Philip-Carneiro Oct 1, 2024
626406e
changelog updates
ecmel Oct 1, 2024
8d0ac92
improve code
Philip-Carneiro Oct 1, 2024
6397931
quick-fix
Philip-Carneiro Oct 1, 2024
48de3f9
improve code quality
Philip-Carneiro Oct 1, 2024
ada1c71
Merge pull request #429 from KxSystems/quick-fix-results-tab
Philip-Carneiro-KX Oct 1, 2024
7e22c92
Merge branch 'dev' into KXI-52581
Philip-Carneiro Oct 1, 2024
046cfdb
fix the params
Philip-Carneiro Oct 1, 2024
93a4d5c
fixed show call hierarchy recursive display
ecmel Oct 1, 2024
659a467
add query history changes
Philip-Carneiro Oct 1, 2024
607a16d
Merge pull request #430 from KxSystems/ee-fixes
ecmel Oct 1, 2024
e493385
fix tests
Philip-Carneiro Oct 1, 2024
f761242
fix the logic to the endpoint
Philip-Carneiro Oct 1, 2024
ed6be55
add tests
Philip-Carneiro Oct 1, 2024
ff949ba
add more tests
Philip-Carneiro Oct 1, 2024
051a620
add tests
Philip-Carneiro Oct 1, 2024
9129cbf
add more tests
Philip-Carneiro Oct 1, 2024
f6e30c8
improve tests
Philip-Carneiro Oct 1, 2024
bff563c
add more tests
Philip-Carneiro Oct 1, 2024
b321340
improve tests
Philip-Carneiro Oct 1, 2024
ec3918b
fix tests
Philip-Carneiro Oct 1, 2024
0981cf3
add ignore where is needed
Philip-Carneiro Oct 1, 2024
3e2e279
Merge pull request #431 from KxSystems/KXI-52581
Philip-Carneiro-KX Oct 1, 2024
68d76c2
added import option to overwrite connections
ecmel Oct 1, 2024
3d31acb
added test
ecmel Oct 2, 2024
33e7ae3
fixed typo
ecmel Oct 2, 2024
660b5aa
fixed ls feature
ecmel Oct 2, 2024
1500b58
implemented core functionality
ecmel Oct 2, 2024
5a5932d
Merge pull request #432 from KxSystems/KXI-53789
ecmel Oct 2, 2024
ad1c967
added setting
ecmel Oct 2, 2024
1eddc0c
added tests
ecmel Oct 3, 2024
7fa4584
fixed test
ecmel Oct 3, 2024
49055da
increase coverage
ecmel Oct 3, 2024
93b06b7
fixed test
ecmel Oct 3, 2024
4a7a582
fixed test on win
ecmel Oct 3, 2024
1de899c
coverage fix
ecmel Oct 3, 2024
5018d88
Merge pull request #433 from KxSystems/KXI-54104
ecmel Oct 3, 2024
f2a1eb0
added import export and new setting
ecmel Oct 3, 2024
11acf0b
Cleaned up the Import/Export Connection section and adding a row to D…
vcalescu Oct 4, 2024
d282e67
Merge pull request #435 from vcalescu/Import-Export-and-Add-Limit-to-…
ecmel Oct 4, 2024
51a439f
added refactoring
ecmel Oct 4, 2024
beb053b
applied review changes
ecmel Oct 4, 2024
2b3a4f9
applied review changes
ecmel Oct 4, 2024
95aa421
Merge pull request #428 from KxSystems/KXI-53850
ecmel Oct 4, 2024
767e5ba
Merge pull request #434 from KxSystems/KXI-54187
ecmel Oct 4, 2024
8e45d0b
fixed windows bug
ecmel Oct 7, 2024
7f24feb
fixed test setup
ecmel Oct 7, 2024
b9c970e
fix windows test setup
ecmel Oct 7, 2024
0c222ac
Merge pull request #436 from KxSystems/ee-fixes
ecmel Oct 7, 2024
db2696b
fix errors found in e2e tests
Philip-Carneiro Oct 11, 2024
e47155d
add tests
Philip-Carneiro Oct 11, 2024
456f4c2
improve code quality
Philip-Carneiro Oct 11, 2024
d3fd871
remove dummy info
Philip-Carneiro Oct 11, 2024
88cda4c
Merge pull request #439 from KxSystems/KXI-54216
Philip-Carneiro-KX Oct 13, 2024
5f2df58
Update CHANGELOG.md
vcalescu Oct 15, 2024
fa559bd
Update CHANGELOG.md
vcalescu Oct 15, 2024
0346c2e
Update CHANGELOG.md
vcalescu Oct 15, 2024
3067ad3
Update CHANGELOG.md
vcalescu Oct 15, 2024
35092eb
Update CHANGELOG.md
vcalescu Oct 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.8.0

### Enhancements

- Added the ability to add multiple labels to a single connection
- Show KDB+ process explorer item content when clicked
- Added the ability to export and import connections
- All the files in the workspace are considered when using language server features
- Show call hierarchy is implemented in language server
- Query history shows an ellipsis of the query execution text to the available line length
- Added limit option to datasource for 1.11 + versions of Insights Enterprise connections

### Fixes

- Fixed KDB results columns resizing back to default sizes every time a datasource was run
- Fixed KDB results for large data sets

# v1.7.0

### Enhancements
Expand Down
54 changes: 47 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,34 @@ When editing a **Insights** connection, you can edit the following properties:

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

### Import/Export Connection Configuration

The **Import/Export Connection** config allows you to import and export connections in JSON format from the VSCode IDE without having to create them manually.

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

To import a connection:

1. Open the Command Palette (Ctrl+Shift+P) and type the command to open the connection configuration for the installed database extension **OR** click the three dots (…) next to the Refresh button in the Connections window.
2. Select **Import Connections**.
3. Navigate to the location of the configuration file, such as a JSON file that contains the connection details, and select it.
4. Review the imported connection for accuracy.
5. Confirm the import.

To connect to the database, select the newly imported connection from the list of available connections and initiate the connection to the database. You can run a simple query or command to verify the connection is successful.

Note: If the imported connection has the same name as an existing connection, you will see a notification in the bottom right corner prompting you to either duplicate, overwrite, or cancel the import.

To export a connection:

1. Open the Command Palette (Ctrl+Shift+P) and type the command to manage connection configurations for the installed database extension **OR** click the three dots (…) next to the Refresh button in the Connections window.
2. Select **Export Connections**.
3. Choose the connection(s) you want to export.
4. Specify the format and location for the exported configuration file. For example, JSON, YAML.
5. Confirm the export action.

To verify the export is successful navigate to the saved location and open the configuration file to check its contents.

## 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.
Expand Down Expand Up @@ -427,13 +455,14 @@ To create a data source and run it against a specific connection:
1. Ensure you have at least one folder open in VS Code.
1. In the **DATASOURCES** view, click **+** and specify the parameters defined in the following table:

| Property | Description |
| ----------------------- | ---------------------------------------------------------------- |
| **Connection** | Select a Connection from the **Connection** dropdown. |
| **Select API** | Choose **getData** from the **Select API** dropdown. |
| **Table** | Choose the table you wish to query from the **Tables** dropdown. |
| **Start Time/End Time** | Select the **Start Time** and **End Time** for the query. |
| Additional Parameters | You can choose from the additional parameters as required. |
| Property | Description |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------- |
| **Connection** | Select a Connection from the **Connection** dropdown. |
| **Select API** | Choose **getData** from the **Select API** dropdown. |
| **Table** | Choose the table you wish to query from the **Tables** dropdown. |
| **Start Time/End Time** | Select the **Start Time** and **End Time** for the query. |
| **Row Limit** | Add a limit to the number of queries executed to reduce the number of Out of Memory (OOM) issues or failed queries. |
| Additional Parameters | You can choose from the additional parameters as required. |

1. Click **Save** to store the settings you have chosen, for reuse later. When you save a data source; query parameters and the connection details are stored. The data source icon is green if it is associated with a connection and grey if there is no association.

Expand Down Expand Up @@ -586,9 +615,20 @@ To update kdb VS Code settings, search for **kdb** from _Preferences_ > _Setting
| **Hide subscription to newsletter after first install** | yes/no; default no |
| **Insights Enterprise Connections for Explorer** | [edit JSON settings](#insights-enterprise-connections-for-explorer) |
| **Linting** | Enable linting for q and quke files |
| **Refactoring** | Choose refactoring scope |
| **QHOME directory for q runtime** | Display location path of q installation |
| **Servers** | [edit JSON settings](#servers) |

### Refactoring

By default, refactorings like renaming are applied to all files in the workspace. You can preview the changes before applying them and select specific files to apply the refactoring by pressing the **ctrl** or **command** key before executing the action.

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

If you only need to apply the refactorings to the currently opened files, you can select **Window** instead of **Workspace** for the refactoring option:

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

### kdb Insights Enterprise Connections for Explorer

```JSON
Expand Down
Binary file added img/impex.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/outline.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/preview.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/refactoring.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading