* Commenting or deleting UI references to Query Advisor
* Removing (commenting out) QueryTabComponent from two views
* Added new splash screen button, commented out copilot prompt bar
* Fixing unit test
* Refactor logic for determining if we should use data plane RBAC to a
common function.
* Support RBAC for gremlin API.
* Refactor to use common function.
* Fix unit tests.
* Move test function inside test scope.
* Minor clean ups.
* Reinstate utf8ToB64 function in case this breaks a corner case.
* master pull
* Added export to json button
* Update .npmrc
* Update settings.json
* Update .npmrc
* Update .npmrc
* revert .npmrc file
* Added export to csv
* Prettier run
* Disable react/prop-types ESLint check
* Changed to download icon
* Added titles
* Switched to download icon already present
* Fixed download title
* Added check for all unique headers and added seperator header for excel only
* Moved to inline dropdown under download button
* Capitalized CSV and JSON
* Fixed where format wasn't updating before exporting
* removed testing console log
* Removed unnecessary async
* Added csv escaping
* Removing unnecessary escape character
* Separated into different functions for better organization and readability
* Fixed any value
* [accessibility-2278267]:[Supporting the platform - Azure Cosmos DB - Data Explorer]: All the controls present under 'Data Explorer' page are truncated after setting the viewport to 320*256 pixel.
* feat: implement zoom level hook and update components for responsive design.
* Format fixed.
* feat: add conditionalClass utility and refactor className assignments for improved readability.
---------
Co-authored-by: Satyapriya Bai <v-satybai@microsoft.com>
* fix partition key missing not being able to load the document
* Implement E2E tests for documents with different partitionkeys
* Implement E2E tests for documents with different partitionkeys
* Implement E2E tests for documents with different partitionkeys
* Updated snapshot
* Updated tests for MongoRU and add create/delete tests
* Fixing system partition key showing up in Data Explorer
* Add standin region selection to settings menu.
* Retrieve read and write regions from user context and populate dropdown menu. Update local storage value.
Need to now connect with updating read region of primary cosmos client.
* Change to only selecting region for cosmos client. Not setting up separate read and write clients.
* Add read and write endpoint logging to cosmos client.
* Pass changing endpoint from settings menu to client. Encountered token issues using new endpoint in client.
* Rough implementation of region selection of endpoint for cosmos client. Still need to:
1 - Use separate context var to track selected region. Directly updating database account context throws off token generation by acquireMSALTokenForAccount
2 - Remove href overrides in acquireMSALTokenForAccount.
* Update region selection to include global endpoint and generate a unique list of read and write endpoints.
Need to continue with clearing out selected endpoint when global is selected again.
Write operations stall when read region is selected even though 403 returned when region rejects operation.
Need to limit feature availablility to nosql, table, gremlin (maybe).
* Update cosmos client to fix bug.
Clients continuously generate after changing RBAC setting.
* Swapping back to default endpoint value.
* Rebase on client refresh bug fix.
* Enable region selection for NoSql, Table, Gremlin
* Add logic to reset regional endpoint when global is selected.
* Fix state changing when selecting region or resetting to global.
* Rough implementation of configuring regional endpoint when DE is loaded in portal or hosted with AAD/Entra auth.
* Ininitial attempt at adding error handling, but still having issues with errors caught at proxy plugin.
* Added rough error handling in local requestPlugin used in local environments. Passes new error to calling code.
Might need to add specific error handling for request plugin to the handleError class.
* Change how request plugin returns error so existing error handling utility can process and present error.
* Only enable region selection for nosql accounts.
* Limit region selection to portal and hosted AAD auth. SQL accounts only. Could possibly enable on table and gremlin later.
* Update error handling to account for generic error code.
* Refactor error code extraction.
* Update test snapshots and remove unneeded logging.
* Change error handling to use only the message rather than casting to any.
* Clean up debug logging in cosmos client.
* Remove unused storage keys.
* Use endpoint instead of region name to track selected region. Prevents having to do endpoint lookups.
* Add initial button state update depending on region selection.
Need to update with the API and react to user context changes.
* Disable CRUD buttons when read region selected.
* Default to write enabled in react.
* Disable query saving when read region is selected.
* Patch clientWidth error on conflicts tab.
* Resolve merge conflicts from rebase.
* Make sure proxy endpoints return in all cases.
* Remove excess client logging and match main for ConflictsTab.
* Cleaning up logging and fixing endpoint discovery bug.
* Fix formatting.
* Reformatting if statements with preferred formatting.
* Migrate region selection to local persistence. Fixes account swapping bug.
TODO: Inspect better way to reset interface elements when deleteAllStates is called. Need to react to regional endpoint being reset.
* Relocate resetting interface context to helper function.
* Remove legacy state storage for regional endpoint selection.
* Laurent suggestion updates.
* fix partition key missing not being able to load the document
* Implement E2E tests for documents with different partitionkeys
* Implement E2E tests for documents with different partitionkeys
* Implement E2E tests for documents with different partitionkeys
* Updated snapshot
* Hide connection strings and keys by default. Move URI above pivot since common across tabs. Matches frontend. Need to add scrolling of keys when window is small. Possibly reduce URI width.
* Add vertical scrolling when window size reduces.
* Adding missing semicolon at end of connection strings.
* Fix input element pattern matching and add validation reporting for
cases where the element is not within a form element.
* Update test snapshots.
* Remove old code and fix trigger error message.
* Move id validation to a util class.
* Add unit tests, fix standalone function, rename constants.
* Moved button to upper right
* Reverted background color
* Updated test snapshot
* Added hidding refresh button on overflow
* Ran prettier and updated snapshot
* Implement fabric native path
* Fix default values to work with current fabric clients
* Fix Fabric native mode
* Fix unit test
* export Fabric context
* Dynamically close Home tab for Mirrored databases in Fabric rather than conditional init (which doesn't work for Native)
* For Fabric native, don't show "Delete Database" in context menu and reading databases should return the database from the context.
* Update to V3 messaging
* For data plane operations, skip ARM for Fabric native. Refine the tests for fabric to make the distinction between mirrored key, mirrored AAD and native. Fix FabricUtil to strict compile.
* Add support for refreshing access tokens
* Buf fix: don't wait for refresh is async
* Fix format
* Fix strict compile issue
---------
Co-authored-by: Laurent Nguyen <languye@microsoft.com>
* Default to new backend endpoint if the endpoint in current context does not match existing set in constants.
* Remove some env references.
* Added comments with reasoning for selecting new backend by default.
* Update comment.
* Remove all references to useNewPortalBackendEndpoint now that old backend is disabled in all environments.
* Resolve lint issues.
* Removed references to old backend from Cassandra and Mongo Apis
* fix unit tests
---------
Co-authored-by: Asier Isayas <aisayas@microsoft.com>
* Added throughput bucketing
* fix bugs
* enable/disable per autoscale selection
* Added logic
* change query bucket to group
* Updated to a tab
* Fixed unit tests
* Edit package-lock
* Compile build fix
* fix unit tests
* moving the throughput bucket flag to the client generation level
* Rename MongoProxy development endpoint constant to be consistent with other
endpoints.
* Update Playwright version to latest release due to test setup break.
* Persist query multiple query texts
* Save multiple query tab histories
* Save and restore states for QueryTab and DocumentsTab for SQL and Mongo
* Enable Collection Scale/Settings restore
* Persist documents tab current filter
* Fix DocumentsTab conflict resolve mistake
* Remove unused variable
* Fix e2e test
* Fix e2e localStorage reference
* Try clearing local storage via playwright page
* Clear local storage after opening page
* Move restore flag behind feature flag. Whitelist restorable tabs in for Fabric. Restore e2e tests.
* Fix typo
* Fix: avoid setting undefined for preferredSize for the <Allotment.Pane>
* Add comments
* Move restore tabs after knockout configure step from Explorer constructor (which could be called multiple times)
* Replaced monaco editor on Container Vector Policy tab with controls same as on create container ux
* Adds vector embedding policy to container management. Adds FullTextSearch to both add container and container management.
* Fixing unit tests and formatting issues
* More fixes
* Updating full text controls based on feedback
* Minor updates
* Editing test to fix compile issue
* Minor fix
* Adding paths for jest to ignore transform due to recent changes in upstream dependencies
* Adding mock to temporarily get unit tests to pass
* Hiding FTS feature behind the new EnableNoSQLFullTextSearch capability
* Rework Input and dropdown in DocumentsTab
* Improve input: implement Escape and add clear button
* Undo body :focus outline, since fluent UI has a nicer focus style
* Close dropdown if last element is tabbed
* Fix unit tests
* Fix theme and remove autocomplete
* Load theme inside rendering function to fix using correct colors
* Remove commented code
* Add aria-label to clear filter button
* Fix format
* Fix keyboard navigation with tab and arrow up/down. Clear button becomes down button.
---------
Co-authored-by: Laurent Nguyen <languye@microsoft.com>
* Migrate copilot persistence to AppState
* Migrate persistence of toggle and history to new infra
* Save toggle value as boolean
* Fix compile bug
* Fix unit tests
* allow DE to provide clearer error messages for certain conditions
* allow rendeering a "help" link for an error
* use TableCellLayout where possible
* remove RU Threshold banner, now that we have a clearer error
* refmt
* fix QueryError test
* change "RU Threshold" to "RU Limit"
* Implement retry on throttling for nosql
* Clean up code
* Produce specific error for throttling error in mongoProxy bulk delete. Clean up code.
* Fix throttling doc url
* Fix mongo error wording
* Fix unit test
* Unit test cleanup
* Fix format
* Fix unit tests
* Fix format
* Fix unit test
* Fix format
* Improve comments
* Improve error message wording. Fix URL and add specific URL for Mongo and NoSql.
* Fix error messages. Add console errors.
* Clean up selection of various delete fct
* Fix error display
* Reapply "Enable column selection and sorting in DocumentsTab (with persistence) (#1881)" (#1960)
This reverts commit fe9730206e.
* Fix logic bug: always include defaultQueryFields in query.
* Show resize column option outside of feature flag
* Improve prevention of no selected columns
* Add more unit tests
* Fix styling on table
* Update test snapshots
* Remove "sortable" property on table which makes the header cell focusable (user sorts by selecting menu item, not by clicking on cell)