1468 Commits

Author SHA1 Message Date
Craig Boger (from Dev Box)
7b650fd58a Resolve merge conflicts from rebase. 2025-02-24 17:01:02 -08:00
Craig Boger (from Dev Box)
19bb1011b6 Patch clientWidth error on conflicts tab. 2025-02-24 16:08:27 -08:00
Craig Boger (from Dev Box)
dc7f712636 Disable query saving when read region is selected. 2025-02-24 16:08:27 -08:00
Craig Boger (from Dev Box)
995917784b Default to write enabled in react. 2025-02-24 16:08:27 -08:00
Craig Boger (from Dev Box)
a30d080e55 Disable CRUD buttons when read region selected. 2025-02-24 16:08:27 -08:00
Craig Boger (from Dev Box)
702afd2bb5 Add initial button state update depending on region selection.
Need to update with the API and react to user context changes.
2025-02-24 16:08:27 -08:00
Craig Boger (from Dev Box)
cf5609ef0c Use endpoint instead of region name to track selected region. Prevents having to do endpoint lookups. 2025-02-24 16:08:27 -08:00
Craig Boger (from Dev Box)
a6e023ecdf Remove unused storage keys. 2025-02-24 16:08:27 -08:00
Craig Boger (from Dev Box)
b5095d0e8c Clean up debug logging in cosmos client. 2025-02-24 16:08:27 -08:00
Craig Boger (from Dev Box)
c654ecb92c Change error handling to use only the message rather than casting to any. 2025-02-24 16:08:27 -08:00
Craig Boger (from Dev Box)
abaa5a0743 Update test snapshots and remove unneeded logging. 2025-02-24 16:08:27 -08:00
Craig Boger (from Dev Box)
f390577e89 Refactor error code extraction. 2025-02-24 16:08:27 -08:00
Craig Boger (from Dev Box)
554b49fd19 Update error handling to account for generic error code. 2025-02-24 16:08:27 -08:00
Craig Boger (from Dev Box)
7e289854b4 Limit region selection to portal and hosted AAD auth. SQL accounts only. Could possibly enable on table and gremlin later. 2025-02-24 16:08:24 -08:00
Craig Boger (from Dev Box)
a3b2a90640 Only enable region selection for nosql accounts. 2025-02-24 16:03:56 -08:00
Craig Boger (from Dev Box)
e568d3f578 Change how request plugin returns error so existing error handling utility can process and present error. 2025-02-24 16:03:54 -08:00
Craig Boger (from Dev Box)
066ebf52d8 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.
2025-02-24 16:03:38 -08:00
Craig Boger (from Dev Box)
1e9b706d8f Ininitial attempt at adding error handling, but still having issues with errors caught at proxy plugin. 2025-02-24 16:03:01 -08:00
Craig Boger (from Dev Box)
8f4d7fc498 Rough implementation of configuring regional endpoint when DE is loaded in portal or hosted with AAD/Entra auth. 2025-02-24 16:03:01 -08:00
Craig Boger (from Dev Box)
d8f6fd9d23 Fix state changing when selecting region or resetting to global. 2025-02-24 16:03:01 -08:00
Craig Boger (from Dev Box)
6a1ec98dfb Add logic to reset regional endpoint when global is selected. 2025-02-24 16:03:01 -08:00
Craig Boger (from Dev Box)
55de76d302 Enable region selection for NoSql, Table, Gremlin 2025-02-24 16:03:01 -08:00
Craig Boger (from Dev Box)
96281697fc Rebase on client refresh bug fix. 2025-02-24 16:03:01 -08:00
Craig Boger (from Dev Box)
99276ae276 Swapping back to default endpoint value. 2025-02-24 16:03:00 -08:00
Craig Boger (from Dev Box)
c803b56a7a Update cosmos client to fix bug.
Clients continuously generate after changing RBAC setting.
2025-02-24 16:03:00 -08:00
Craig Boger (from Dev Box)
e39dec5dc6 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).
2025-02-24 16:03:00 -08:00
Craig Boger (from Dev Box)
b40f60cfb4 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.
2025-02-24 16:03:00 -08:00
Craig Boger (from Dev Box)
b4ca9bd910 Pass changing endpoint from settings menu to client. Encountered token issues using new endpoint in client. 2025-02-24 16:03:00 -08:00
Craig Boger (from Dev Box)
4f70b1dc36 Add read and write endpoint logging to cosmos client. 2025-02-24 16:03:00 -08:00
Craig Boger (from Dev Box)
bc92cb91eb Change to only selecting region for cosmos client. Not setting up separate read and write clients. 2025-02-24 16:03:00 -08:00
Craig Boger (from Dev Box)
17b0c59f5b 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.
2025-02-24 16:02:57 -08:00
Craig Boger (from Dev Box)
b56ae71df6 Add standin region selection to settings menu. 2025-02-24 16:02:21 -08:00
jawelton74
a04eaff6be
Add Tables to missing api type checks for dataplane RBAC. (#2060)
* Add Tables to missing api type checks for dataplane RBAC.

* Comment out test that is broken due to invalid hook call error.
2025-02-20 08:15:53 -08:00
jawelton74
51a412e2c0
Change value of the example SelfServeType enum to match name of (#2062)
localization file.
2025-02-20 07:06:25 -08:00
SATYA SB
3fcbdf6152
[accessibility-3739790-3739677]:[Forms and Validation - Azure Cosmos DB- Data Explorer - New Vertex]: Visual Label is not defined for Key, Value and Type input fields under 'New Vertex' pane. (#2040)
Co-authored-by: Satyapriya Bai <v-satybai@microsoft.com>
2025-02-19 11:26:15 +05:30
SATYA SB
8da078579e
[accessibility-3739618]:[Screen Reader - Azure Cosmos DB- Data Explorer - Graphs]: Screen Reader announces both expanded and collapsed information simultaneously for expand/collapse button in bottom notification region under 'Data Explorer' pane. (#2048)
Co-authored-by: Satyapriya Bai <v-satybai@microsoft.com>
2025-02-19 11:25:44 +05:30
vchske
4ac41031e6
Fixing SelfServeType enum to work in MPAC (#2057) 2025-02-18 09:59:51 -08:00
jawelton74
d7923db108
Add Tables as an API type that supports dataplane RBAC. (#2056) 2025-02-18 09:29:53 -08:00
SATYA SB
0170c9e1cc
[accessibility-3739182]:[Visual Requirement - Azure Cosmos DB - Add Row]: Ensures the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds. (#2054)
Co-authored-by: Satyapriya Bai <v-satybai@microsoft.com>
2025-02-14 11:53:01 +05:30
bogercraig
2730da7ab6
Backend Migration - Remove Use of Legacy Backend from DE (#2043)
* 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>
2025-02-12 18:12:59 -08:00
sunghyunkang1111
de2449ee25
Adding throughput bucket settings in Data Explorer (#2044)
* 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
2025-02-12 13:10:07 -06:00
sunghyunkang1111
99378582ce
Remove blocking await on sample database (#2047)
* Remove blocking await on sample database

* Remove compress flag to reduce bundle size

* Fix typo in webpack config comment date
2025-02-12 13:09:52 -06:00
SATYA SB
bd592d07af
[accessibility-1217621]: Keyboard focus gets lost on the page which opens after activating "Data Explorer" menu item present under 'Overview' page. (#1927)
Co-authored-by: Satyapriya Bai <v-satybai@microsoft.com>
2025-02-12 11:31:30 +05:30
asier-isayas
644f5941ec
Set default throughput based on account's workload type (#2021)
* assign default throughput based on workload type

* combined common logic

* fix unit tests

* add tests

* update tests

* npm run format

* Update ci.yml

---------

Co-authored-by: Asier Isayas <aisayas@microsoft.com>
2025-02-11 17:47:55 -05:00
jawelton74
9fb006a996
Restore DisplayNPSSurvey message type enum which was removed in a prior (#2046)
change.
2025-02-11 06:58:44 -08:00
jawelton74
c2b98c3e23
Modify E2E cleanup script to use @azure/identity for AZ credentials. (#2051) 2025-02-10 08:48:26 -08:00
Nishtha Ahuja
76d49d86d4
Added emulator checks in settings pane fields (#2041)
* added emulator checks

* created macro

* conditions as const

---------

Co-authored-by: Nishtha Ahuja <nishthaahuja@microsoft.com>
2025-02-10 11:52:56 +05:30
Laurent Nguyen
7893b89bf7
Do not open first container if a tab is already open (#2045)
Co-authored-by: Laurent Nguyen <languye@microsoft.com>
2025-02-06 21:58:38 +01:00
JustinKol
5945e3cb6b
Removed NPS Survey from DE since it has been moved to the Overview Blade (#2027)
* Removed NPS Survey from DE since it has been moved to the Overview Blade

* Added ExplorerBindings back

* Moved applyExplorerBindings back to original place
2025-02-05 13:30:03 -05:00
Laurent Nguyen
213d1c68fe
Remove feature switch on restore tabs (#2039) 2025-02-03 17:59:00 +01:00