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

Query Editor (NoSQL + Mongo) #2318

Draft
wants to merge 49 commits into
base: main
Choose a base branch
from
Draft

Query Editor (NoSQL + Mongo) #2318

wants to merge 49 commits into from

Conversation

bk201-
Copy link
Contributor

@bk201- bk201- commented Sep 16, 2024

Tasks:

  • Fix Packaging
  • Fix Debugging with VS Code
  • Apply vCore feature flag for vCore commands

bk201- and others added 30 commits August 6, 2024 13:43
* feat(webview): Adds new command to show QueryEditor
- New Webview panels: QueryEditor, Result
- Adds webpack config for React components
- Adds new transport between VSCode and Webview
- Adds index.tsx as a base for all webview panels

* feat(webview): Adds new command to show QueryEditor
- New Webview panels: QueryEditor, Result
- Adds webpack config for React components
- Adds new transport between VSCode and Webview
- Adds index.tsx as a base for all webview panels

* feat(webview): Adds new command to show QueryEditor
- New Webview panels: QueryEditor, Result
- Adds webpack config for React components
- Adds new transport between VSCode and Webview
- Adds index.tsx as a base for all webview panels

* feat(webview): Adds new command to show QueryEditor
- New Webview panels: QueryEditor, Result
- Adds webpack config for React components
- Adds new transport between VSCode and Webview
- Adds index.tsx as a base for all webview panels

* feat(webview): Adds new command to show QueryEditor
- New Webview panels: QueryEditor, Result
- Adds webpack config for React components
- Adds new transport between VSCode and Webview
- Adds index.tsx as a base for all webview panels
* feat(webview): Adds new command to show QueryEditor
- New Webview panels: QueryEditor, Result
- Adds webpack config for React components
- Adds new transport between VSCode and Webview
- Adds index.tsx as a base for all webview panels
…2298)

* added Fluent UI 9 + a demo webview

* package.json sorted its commands.
* feat(webview): Adds dynamic theme provider
- Bumps floating-ui package
- Adds css loader
- Fixes task runner
- Migrated codebase from another repository.
- Enabled MongoDB cluster support in Azure Resources.
- Implemented work-in-progress updates for:
  - Slickgrid integration and styling.
  - Table, tree, and JSON views with auto-resizing.
  - Improved table and treeview stability.
  - Basic error handling and query editing.
- Upgraded dependencies and fixed various bugs:
  - Slickgrid-react upgraded to version 5.5.1.
  - Resolved webview activation issues for MongoDB clusters.
  - Language service loading error fixed.
- Introduced 'jest' testing framework, maintaining legacy 'mocha' tests.
- Ran Prettier across the entire codebase.
- Refactored and relocated slickgrid utilities.
- Final updates to package.json and dependencies.
* feat(webview): Adds context

* feat(webview): Implements Connect/Disconnect buttons
- Refactor CollectionView to use useContext for state management
- add 'loading' state support, and disable toolbar buttons.
- Fixed issues with clusters lacking multi-user support,
- unique ID generation in slickgrid utils, and page number formatting.
- Enhanced cluster configuration discovery and improved UX.
- Added queryResults message handling to the webview panel and fixed import typo.
# Conflicts:
#	src/webviews/QueryEditor/ResultPanel/ResultTab.tsx
…oClusters development

- Update launch.json and tasks.json to include a new configuration for watching and running the extension, webview, and host without extensions profile
- Remove unnecessary scripts from package.json
Fixed the following error:

Error: failed to handle: base_dir(`./`) must be absolute. Please ensure that `jsc.baseUrl` is specified correctly. This cannot be deduced by SWC itself because SWC is a transpiler and it does not try to resolve project details. In other words, SWC does not know which directory should be used as a base directory. It can be deduced if `.swcrc` is used, but if not, there are many candidates. e.g. the directory containing `package.json`, or the current working directory. Because of that, the caller (typically the developer of the JavaScript package) should specify it. If you see this error, please report an issue to the package author.
- Eslint has been updated
- Prettier has been updated
- Code has been updated using new rules
bk201- and others added 19 commits September 10, 2024 14:15
- Eslint has been updated
- Prettier has been updated
- Code has been updated using new rules
This commit renames the class CredentialsStore to CredentialCache in the mongoClusters module. The purpose of this change is to provide a more accurate and descriptive name for the class that stores and retrieves credentials for connecting to MongoDB clusters. The renaming is done to improve code readability and maintain consistency within the module.

The following changes were made:
- Renamed src/mongoClusters/CredentialsStore.ts to src/mongoClusters/CredentialCache.ts
- Updated import statements and references to the renamed class in other files

No functional changes were made in this commit.
* chore: Adds new package script

* chore: Removes old build
- Fixes production webpack config
- Fixes package script
- State changes correctly in SQL editor
- Refactoring: moving functions that transform query result data to the utils directory
# Conflicts:
#	.eslintrc.js
#	gulpfile.ts
#	package-lock.json
#	package.json
#	src/docdb/commands/connectNoSqlContainer.ts
#	src/docdb/registerDocDBCommands.ts
#	src/docdb/tree/DocDBAccountTreeItemBase.ts
#	src/docdb/tree/DocDBDocumentsTreeItem.ts
#	src/docdb/tree/DocDBStoredProcedureTreeItem.ts
#	src/docdb/tree/DocDBTriggersTreeItem.ts
#	src/extension.ts
#	src/extensionVariables.ts
#	src/mongo/MongoCommand.ts
#	src/mongo/MongoShell.ts
#	src/mongo/languageClient.ts
#	src/mongo/mongoConnectionStrings.ts
#	src/mongo/services/completionItemProvider.ts
#	src/mongo/services/schemaService.ts
#	src/mongo/tree/MongoCollectionTreeItem.ts
#	src/mongo/tree/MongoDocumentTreeItem.ts
#	src/postgres/abstract/models.ts
#	src/postgres/commands/createPostgresServer/steps/PostgresServerCreateStep.ts
#	src/resolver/AppResolver.ts
#	src/tree/SubscriptionTreeItem.ts
#	src/utils/array.ts
#	src/utils/azureClients.ts
* JSON Schema analyzer for MongoDB BSON documents
* Refactor test file paths for better organization
* Refactor import statements to use default imports (as a consequence of a previous tsconfig update of "esModuleInterop": true)
* Refactor import statements and update value display in slickgrid table and tree. Using unified toString functions
* Refactor, simplify function names, add comments.
feat: Implementing paginator
- Fixes prettier issues
- Uses own build steps
- Fixes prettier issues
- Uses own build steps
- Fixes prettier issues
- Uses own build steps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants