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

DA-324 Add Couchbase IQ Support #342

Merged
merged 64 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
36778c0
added configs for iq on left sidebar panel
lokesh-couchbase Nov 3, 2023
8ca1536
Da#3240couchbase iq support react built (#328)
AayushTyagi1 Nov 6, 2023
3e286af
merge main
lokesh-couchbase Nov 8, 2023
9aa9a4d
update webpack
lokesh-couchbase Nov 8, 2023
004d779
added page for login
lokesh-couchbase Nov 8, 2023
e2626e2
added login page with sessions api
lokesh-couchbase Nov 9, 2023
da94bfe
added rest api to get jwt and orgs
lokesh-couchbase Nov 18, 2023
0f602a8
add chatscope module for ui of iq chat
lokesh-couchbase Nov 18, 2023
99264a8
IQ loaded inside UI
lokesh-couchbase Nov 20, 2023
e0ff9f8
add syntax highlighting for code
lokesh-couchbase Nov 22, 2023
5df8b5f
update settings page
lokesh-couchbase Nov 23, 2023
2c83aa5
ci test fix
lokesh-couchbase Nov 23, 2023
7dcb805
add single click sign in and logout
lokesh-couchbase Nov 27, 2023
13c3b51
added organization remember me
lokesh-couchbase Nov 28, 2023
da54ef9
paste now doesn't copies the html formatting
lokesh-couchbase Nov 30, 2023
9677bc7
write cache service
lokesh-couchbase Dec 5, 2023
8f7862f
add schema level prompt engineering
lokesh-couchbase Dec 10, 2023
2fabeef
add chatscope ui kit internally to support more features
lokesh-couchbase Dec 11, 2023
5642584
add action buttons and like or dislike emote
lokesh-couchbase Dec 13, 2023
f3bb464
add secret function to update as per requirement
lokesh-couchbase Dec 13, 2023
771fb36
code theme now changes as soon as vscode theme is changed
lokesh-couchbase Dec 14, 2023
dcd4e0f
some refactor and cache service now supports indexes
lokesh-couchbase Dec 19, 2023
d47374e
add all available actions with their definitions
lokesh-couchbase Dec 19, 2023
e882f25
add code selection and improved collection schema intent
lokesh-couchbase Dec 19, 2023
105074f
add better styling to all components
lokesh-couchbase Dec 21, 2023
b0c46d7
fix not iterable error and mac ci error
lokesh-couchbase Dec 21, 2023
29eab8f
improve css and fix couple bugs
lokesh-couchbase Dec 22, 2023
1fe03cf
replace icons and chnage some prompts
lokesh-couchbase Jan 2, 2024
3f76ff3
update cache service to not use ts maps
lokesh-couchbase Jan 3, 2024
4f2025e
update few prompts
lokesh-couchbase Jan 8, 2024
d549a71
fix react bug and updated logout flow
lokesh-couchbase Jan 8, 2024
2dbac54
improved user_requests mechanism
lokesh-couchbase Jan 9, 2024
8082db5
shift location of + icon to top bar
lokesh-couchbase Jan 9, 2024
7f1332a
add n1ql support and improved error handling
lokesh-couchbase Jan 9, 2024
05db17d
bump extension version
lokesh-couchbase Jan 9, 2024
238069b
merge main branch
lokesh-couchbase Jan 10, 2024
c0ff4a7
DA-346 bump couchbase sdk version to 4.2.8 (#347)
lokesh-couchbase Jan 11, 2024
43790b9
resolved feedback form bug and some text rewrites
lokesh-couchbase Jan 15, 2024
fa495a9
logout and new cha button will only be visible when required
lokesh-couchbase Jan 15, 2024
707972f
fix welcome message in iq chat
lokesh-couchbase Jan 16, 2024
1c7a450
fix height issues in chat, now input bar will be always visible
lokesh-couchbase Jan 17, 2024
8546118
fix iq description at login page
lokesh-couchbase Jan 17, 2024
c0efcdd
fix broken message history
lokesh-couchbase Jan 18, 2024
7eab23d
fix new chat and other error handling
lokesh-couchbase Jan 19, 2024
12745c2
make loader better and added loader to more scenarios
lokesh-couchbase Jan 22, 2024
c2bcfd5
fix scroll to bottom not working bug
lokesh-couchbase Jan 22, 2024
7cc17cc
add code actions for code results
lokesh-couchbase Jan 23, 2024
7d086e3
single line code is now shown in better colors and font
lokesh-couchbase Jan 23, 2024
e02e5a9
name change from couchbase iq to capella
lokesh-couchbase Jan 23, 2024
afb854c
fix markdown white-space bug
lokesh-couchbase Jan 23, 2024
3ecbef3
fix markdown para spacing
lokesh-couchbase Jan 23, 2024
23fd20e
remove markdown para spacing for first and last elements
lokesh-couchbase Jan 23, 2024
2133614
fix incorrect creds login error
lokesh-couchbase Jan 24, 2024
4d9579b
add button to show and hide password
lokesh-couchbase Jan 24, 2024
08d922d
added more points in notes and updated settings markdown
lokesh-couchbase Jan 24, 2024
9ffdd22
fix checkbox location on login page and error message for string
lokesh-couchbase Jan 25, 2024
be3cc49
fix checkbox being shown above dropdown
lokesh-couchbase Jan 25, 2024
3a77988
add timeout to chat
lokesh-couchbase Jan 25, 2024
528d614
improve error handling case if error type is string
lokesh-couchbase Jan 26, 2024
786ded9
fix PR comments
lokesh-couchbase Jan 29, 2024
c28cd4c
fix paste by removing handler
lokesh-couchbase Jan 30, 2024
2ac5a07
Ci secrets security fix (#353)
lokesh-couchbase Feb 6, 2024
e5681f8
update readme
lokesh-couchbase Feb 6, 2024
ce73b92
remove building steps
lokesh-couchbase Feb 6, 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
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env", "@babel/preset-react"]
}
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
node-version: 16
architecture: ${{ matrix.arch }}
cache: 'npm'
- run: echo '${{ secrets.CONFIG_JSON }}' > ${{ github.workspace }}/src/config.json
- uses: ilammy/setup-nasm@v1
- name: windows-specific
shell: pwsh
if: matrix.platform == 'win32'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ dist
node_modules
*.vsix
build/
src/config.json
39 changes: 19 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,7 @@ Welcome to the official Visual Studio Code extension for Couchbase!
This extension is designed to provide a seamless experience for Couchbase Server users who want to work within the popular Visual Studio Code editor.

# Requirements
This extension requires OpenSSL to be installed on your system in order to install successfully.

For Windows:
- Download the version 1.1.x of OpenSSL from https://slproweb.com/products/Win32OpenSSL.html and follow the installation instructions.

For Debian or Ubuntu-based distros::
- Run `sudo apt-get install openssl`

For Red Hat, CentOS or Fedora-based distros:
- Run `sudo dnf install openssl` (on newer Fedora versions), OR `sudo yum install openssl` (on older Fedora/Red Hat/CentOS versions)

For Mac:
- For an Apple device with an M1 chip, you should install OpenSSL version 3 or higher. On the other hand, if your Mac has an Intel (x64) chip, then you should install OpenSSL version 1.1.
- Run `brew install openssl` using Homebrew if your Mac has M1 chip and use `brew install openssl@1.1` if your Mac has an Intel (x64), or download the latest version of OpenSSL from https://www.openssl.org/source/ and follow the installation instructions.

In case you encounter any issues during the installation process, we have provided detailed [Troubleshooting Guidelines](https://docs.google.com/document/d/132jKt2YFGjhzIM0yMUi3l5VjC3FQ-rL5-xUiTRLYKds/edit?usp=sharing) to help you resolve the issues.

To install Couchbase Server, please follow the steps mentioned in [this guide](https://docs.couchbase.com/server/current/install/install-intro.html).

> :warning: **WARNING**: DO NOT upgrade cmake-js to 7.x or it will break Windows builds. Please use 6.x instead.
Most of the requirements are taken care in the build. For Linux users a latest version of glibc may be required depending on the distro.

# Quick Tour

Expand Down Expand Up @@ -61,6 +42,15 @@ Click on Scope to list Collections and Indexes. Open context menu on Collection

<img src="gifs/InteractWithDocuments.gif" height="80%" width="80%" alt="Interact with Documents" />

### Capella iQ
1. Use iQ natively in your extension. Sign in with your capella credentials and choose the iQ enabled org
2. A Chatbot which knows about couchbase and can help you with your SDK Code, Query, and more couchbase related stuff.
3. It knows context of your connected database. And give you more specfic results for your questions
4. Select a code related to couchbase query or SDK to ask more about it.
5. Use actions to open stuff in VSCode. Send feedback to the team for improvements.

<img src="gifs/iQDemo.gif" height="80%" width="80%" alt="Interact with Documents" />

### Open SQL++ Notebook
1. Simply right-click on the Cluster and select the "New SQL++ Notebook" option from the context menu.
2. Once you have opened the notebook, you will be presented with a powerful text editor that allows you to craft your SQL++ queries with ease.
Expand All @@ -75,5 +65,14 @@ Click on Scope to list Collections and Indexes. Open context menu on Collection

<img src="gifs/workbench.gif" height="80%" width="80%" alt="Interact with Documents" />

### Data Export, Import and DDL Export Tools
1. Use Data Export to export particular bucket, scope or collections in your choice of format
2. Use Data Import to import data in your required bucket.
3. Use DDL export to export all bucket and indexes details as Query and run those queries to create a replica
4. Complete bucket cloning is now possible, right from the VSCode. Just do DDL Export and Data Export of the particular bucket. Then run the DDL Export queries for the target bucket and then Data Import to send all data in the newer bucket

<img src="gifs/DataTools.gif" height="80%" width="80%" alt="Interact with Documents" />


## License
Apache Software License Version 2. See individual files for details.
Binary file added gifs/DataTools.gif
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 gifs/iQDemo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading