victor-meng
66421ad276
Add headers to unblock merge private preview customers ( #1190 )
2022-01-13 11:35:20 -08:00
victor-meng
529202ba7e
Add support for date type to cassandra column types ( #1176 )
2021-12-16 14:51:18 -08:00
victor-meng
ada95eae1f
Fix execute sproc pane textfield focus issue ( #1170 )
...
* Fix execute sproc pane textfield focus issue
* Update snapshot
2021-12-08 15:41:27 -08:00
victor-meng
5d235038ad
Properly update table headers ( #1166 )
2021-11-30 15:36:35 -08:00
victor-meng
94a03e5b03
Add Timestamp type to cassandra column types and wrap Timestamp value inside single quotes when creating queries ( #1163 )
2021-11-19 09:55:10 -08:00
victor-meng
1155557af1
Check for -1 throughput cap value ( #1159 )
2021-11-10 21:43:04 -08:00
victor-meng
a3d88af175
Fix throughputcap check ( #1156 )
2021-11-05 10:23:21 -07:00
victor-meng
e3d5ad2ce8
Fix ARM api version ( #1154 )
2021-11-02 12:23:48 -07:00
victor-meng
64f36e2d28
Add throughput cap error message ( #1151 )
2021-10-30 19:45:16 -07:00
victor-meng
55837db65b
Revert "Fix keyboard focus does not retain on 'New Database' button a… ( #1139 )
...
* Revert "Fix keyboard focus does not retain on 'New Database' button after closing the 'New Database' blade via ESC key (#1109 )"
This reverts commit f7e7240010 .
* Revert "Fix ally database panel open issue (#1120 )"
This reverts commit ed1ffb692f .
2021-10-15 17:36:48 -07:00
victor-meng
9f27cb95b9
Only use the SET keyword once in the update query ( #1138 )
2021-10-15 12:33:59 -07:00
victor-meng
1c54459708
If unsharded is checked, set partition key to undefined ( #1128 )
2021-10-11 12:09:38 -07:00
victor-meng
af0dc3094b
Temporarily lower test coverage threshold ( #1084 )
2021-09-15 16:38:51 -07:00
victor-meng
665270296f
Fix throughput cost estimate in add collection panel ( #1070 )
2021-09-15 13:05:55 -07:00
victor-meng
8eeda41021
Move synapse link out of advanced section in add collection panel ( #989 )
2021-08-19 12:18:21 -07:00
victor-meng and Steve Faulkner
ee4404c439
Fix enable synapse link error ( #918 )
...
* Fix enable synapse error
* Default all ARM requests to JSON
Co-authored-by: Steve Faulkner <[email protected] >
2021-08-02 21:11:42 -05:00
victor-meng
56699ccb1b
Fix new resource tree ( #962 )
2021-07-30 16:23:36 -07:00
victor-meng
042f980b89
Replace window.confirm and window.alert with modal dialog ( #965 )
2021-07-30 10:27:27 -07:00
victor-meng
a66fc06dad
Turn off react resource tree ( #963 )
2021-07-28 21:29:45 -07:00
victor-meng
a8bc821dec
Add initializeGitHubRepos function in useNotebooks store ( #957 )
2021-07-23 18:44:24 -07:00
victor-meng
1394aae944
Fix validateCollectionId for new tables account ( #958 )
2021-07-23 18:44:16 -07:00
victor-meng
fecac5625a
Migrate resource tree for resource token to react ( #956 )
2021-07-22 17:11:19 -07:00
victor-meng
dc21032d69
Clean up EditTableEntityPanel ( #955 )
2021-07-22 16:18:48 -07:00
victor-meng
401660ae15
Fix connect to github ( #951 )
2021-07-21 17:47:55 -07:00
victor-meng
913fec4e69
Improve e2e stability ( #949 )
2021-07-21 16:22:31 -07:00
victor-meng
6d46e48490
Migrate resource tree to react ( #941 )
2021-07-20 11:40:04 -07:00
victor-meng
afacde4041
Fix AddTableEntityPanel ( #945 )
...
* Fix AddTableEntityPanel
* Add CSS
* Fix snapshot
2021-07-19 22:00:33 -07:00
victor-meng
8d6ccf8356
import ComponentRegisterer in Explorer ( #935 )
2021-07-13 19:59:39 -05:00
victor-meng
f8ab0a82e0
Move tabs manager to zustand ( #915 )
2021-07-08 21:32:22 -07:00
victor-meng
c486c1193e
Fix scale component not showing in settings tab ( #926 )
2021-07-07 11:22:54 -07:00
victor-meng
db34024259
Move notebook flags to zustand ( #912 )
2021-07-06 15:21:23 -05:00
victor-meng
98d7bb37d5
Move resource token collection to useDatabases zustand store ( #916 )
2021-07-06 14:05:38 -05:00
victor-meng
4d2a6999d4
Move selectedNode to zustand ( #903 )
2021-06-24 13:56:33 -05:00
victor-meng
59655eed5f
Remove route handlers ( #909 )
...
* Remove tab handlers
* Fix tests
2021-06-23 23:54:37 -05:00
victor-meng
738a02a0f3
Replace subscriptions in resource tree with useDatabases hook ( #904 )
2021-06-23 13:45:29 -05:00
victor-meng
96e6bba38b
Move databases to zustand ( #898 )
2021-06-18 13:25:08 -05:00
victor-meng
baa3252ba8
Properly style CassandraAddCollectionPane ( #862 )
2021-06-11 14:25:05 -07:00
victor-meng
b0bbeb188a
Fix query tab/pane related issues ( #879 )
2021-06-10 17:17:11 -07:00
victor-meng
16b09df5fa
Hide provision throughput checkbox for serverless account ( #861 )
2021-06-07 23:05:41 -05:00
victor-meng
7d0be7d355
Show 10k RU instead of unlimited as max RU for unsharded collection ( #845 )
2021-05-28 20:11:31 -05:00
victor-meng
0d79f01304
Update free tier limits and messages ( #786 )
2021-05-24 15:42:54 -05:00
victor-meng
9787a5ce7c
Fix throughput input ( #808 )
2021-05-21 13:12:13 -05:00
victor-meng
d76aaca0dd
Improve lazy load database/collection offer logic ( #768 )
2021-05-12 19:13:15 -05:00
victor-meng
14e58e5519
Batch of small fixes for RightPaneForm and AddDatabasePane components ( #780 )
2021-05-12 19:12:03 -05:00
victor-meng
2f6dbd83f3
Fix throughput input component and add database panel ( #773 )
2021-05-12 13:56:24 -05:00
victor-meng
c5f76ac2a9
Fix isFixedCollectionWithSharedThroughputSupported flag ( #774 )
2021-05-12 09:16:13 -05:00
victor-meng
4ed8fe9e7d
Remove old add collection pane ( #767 )
2021-05-10 20:10:48 -05:00
victor-meng
d62baf327b
Change create wildcard index default value to false for mongo 3.2 ( #759 )
...
* Change create wildcard index default value to false for mongo 3.2
* Update snapshots
2021-05-06 21:27:47 -05:00
victor-meng
5606ef3266
Fix table edit entity bug and add collection panel bug for connection string users ( #757 )
...
* Fix table edit entity bug and add collection panel bug for connection string users
* Remove parseInt for int64
2021-05-06 18:51:22 -05:00
victor-meng and Jordi Bunster
4efacace16
add collection panel improvements ( #630 )
...
Co-authored-by: Jordi Bunster <[email protected] >
2021-04-30 10:23:34 -07:00
victor-meng
9878bf0d5e
Fix table entity boolean and number type property values ( #737 )
2021-04-29 19:23:21 -05:00
victor-meng
a07aff1e8c
resetData should not set isAutoPilotSelected flag ( #708 )
2021-04-21 10:11:33 -05:00
victor-meng
2bccb7885f
Hide TTL in settings tab for Mongo API ( #677 )
...
* Hide ttl for mongo
* Fix typo
* Refine info message
2021-04-15 18:51:59 -05:00
victor-meng
ca7cd139ba
Use window instead of window.parent in extractFeatures function ( #577 )
2021-03-23 17:21:41 -07:00
victor-meng
65c859c835
Move add collection pane to React ( #486 )
...
* Move add collection pane to React
* Add feature flag
* fix unit tests
* FIx merge conflicts and address comments
* Resolve merge conflicts
* Address comments
* Fix e2e test failure
* Update test snapshots
* Update test snapshots
2021-03-18 20:06:13 -05:00
victor-meng
9d63a346e4
Fix issues in the add collection pane ( #501 )
2021-03-09 10:18:40 -08:00
victor-meng
4127d0f522
Fix sample container is not populated with items ( #459 )
2021-03-02 12:41:50 -06:00
victor-meng
3cc1945140
Fix serverless create issue ( #453 )
2021-02-25 19:29:29 -06:00
victor-meng
7cbf7202b0
Fix start with samples in Gremlin API ( #448 )
2021-02-24 12:17:15 -06:00
victor-meng and Steve Faulkner
22d8a7a1be
Move database settings tab to react ( #386 )
...
Co-authored-by: Steve Faulkner <[email protected] >
2021-02-10 16:06:14 -06:00
victor-meng
4210e0752b
Move delete collection confirmation pane to react ( #417 )
2021-02-10 13:44:00 -08:00
victor-meng
81fd442fad
Make getCollectionDataUsageSize call fail gracefully ( #434 )
2021-02-08 16:02:02 -08:00
victor-meng
bd4d8da065
Move notification console to react ( #400 )
2021-01-26 15:32:37 -08:00
victor-meng
9afa29cdb6
Properly construct the query to delete Cassandra row ( #388 )
2021-01-14 16:59:31 -06:00
victor-meng
08e8bf4bcf
Fix two settings tab issues ( #374 )
2021-01-07 15:38:13 -06:00
victor-meng and Steve Faulkner
a55f2d0de9
Free tier improvements in DE ( #348 )
...
Co-authored-by: Steve Faulkner <[email protected] >
2021-01-04 12:56:55 -08:00
victor-meng
f54e8eb692
Move queryDocuments out of DataAccessUtility ( #334 )
2020-12-16 15:27:17 -08:00
victor-meng
31e4b49f11
Only call getCollectionDataUsageSize for AAD users ( #337 )
2020-12-10 14:13:08 -08:00
victor-meng
fd60c9c15e
Remove RUPM ( #328 )
...
Remove all RUPM code
2020-12-01 07:06:38 +00:00
victor-meng
9cbf632577
Get collection usage size with ARM metrics call ( #327 )
...
- Removed `readCollectionQuotaInfo` call. The only data we need is the usage size which we can get via the ARM metrics call instead.
- Added `getCollectionUsageSize` which fetches the `DataUsage` and `IndexUsage` metrics, converts them to KB, and returns the sum as the total usage size
2020-11-20 20:21:16 +00:00
victor-meng
17fd2185dc
Move read offer to RP ( #326 )
2020-11-19 17:13:11 -08:00
victor-meng
a133134b8b
Fix create and delete database ( #317 )
2020-11-09 15:22:51 -08:00
victor-meng
79dec6a8a8
Refactor error handling in data explorer Part 3 ( #315 )
...
- Make sure we pass the error message string instead of an error object when we call `TelemetryProcessor.traceFailure` since TelemetryProcessor will call `JSON.stringify` on the error object which would result in an empty object
- Removed ErrorParserUtility since it only works on specific error types. We can just log the full error message and manually derive information we need from the message.
- Added option to include stack trace in `getErrorMessage`. This is useful for figuring out where the client side script errors are coming from.
- Some minor refactors
2020-11-06 04:02:57 +00:00
victor-meng
5f1f7a8266
Refactor error handling part 2 ( #313 )
2020-11-03 13:40:44 -08:00
victor-meng
3e782527d0
Poll on Location header for operation status ( #309 )
2020-11-02 16:59:08 -08:00
victor-meng
5741802c25
refactor error handling part 1 ( #307 )
...
- created `getErrorMessage` function which takes in an error string or any type of error object and returns the correct error message
- replaced `error.message` with `getErrorMessage` since `error` could be a string in some cases
- merged sendNotificationForError.ts with ErrorHandlingUtils.ts
- some minor refactoring
In part 2, I will make the following changes:
- Make `Logger.logError` function take an error message string instead of an error object. This will reduce some redundancy where the `getErrorMessage` function is being called twice (the error object passed by the caller is already an error message).
- Update every `TelemetryProcessor.traceFailure` call to make sure we pass in an error message instead of an error object since we stringify the data we send.
2020-10-30 22:09:24 +00:00
victor-meng
294270b6aa
Allow users to switch between manual and autoscale for fixed collections ( #299 )
...
- removed the `isFixed` check in both new and old settings tab so that the options to switch between manual and autoscale shows up for fixed collections
- updated the message below the text box to inform the users that the max RU for fixed collections is 10000
- updated validation rule so that the max RU cannot exceed 10000 for fixed collections for both autoscale and manual
2020-10-26 19:00:21 +00:00
victor-meng
703ceacd3f
Remove extra error logging in SettingsComponent ( #296 )
...
Remove extra error logging for `updateOfferThroughputBeyondLimit` in SettingsComponent.
2020-10-23 18:25:32 +00:00
victor-meng
1e19f02fd7
Use SDK calls for stored procedure, trigger, and UDF operations for Gemlin API ( #295 )
...
RP doesn't support stored procedure, trigger, and UDF operations for Gremlin API so we have to use SDK for now.
2020-10-21 21:58:28 +00:00
victor-meng
24b5b754ca
Fix error handling in DE ( #294 )
...
- Replaced `JSON.stringify(error)` with `error.message`
- Created `ErrorHandlingUtils` and moved all error logging actions in there
2020-10-21 21:28:30 +00:00
victor-meng
9a5d46b6e0
Move UDF and trigger operations to RP ( #283 )
...
Move UDF and trigger operations to RP
2020-10-16 19:58:45 +00:00
victor-meng
b9245101bc
Fix two bugs with tables database offer ( #282 )
...
1. After moving read databases call to RP for Tables API, we lose the `_rid` property. Since we are reading Table's database offer with SDK, we need the `_rid` of the database to find its offer. Without `_rid`, we won't be able to find the database offer and the Scale tab would disappear again. The fix is to use SDK to read databases for Table API so we have `_rid`.
2. There's a bug in the non-aad code path for updating offers which prevents users from switching from manual to autoscale and vice versa. The fix is to properly set the option headers.
2020-10-16 19:24:45 +00:00
victor-meng
9d50577800
Move stored procedure operations to RP ( #281 )
...
- move read, delete, create, and update stored procedure calls to RP
- fixed a bug where the console message never clears when reading offers with SDK
2020-10-15 18:10:20 +00:00
victor-meng
39f7ef331a
Use RP to read databases for all API ( #280 )
...
Since I've cleaned up all the places that use `_rid` and `_self` of a database in my previous commit (https://github.com/Azure/cosmos-explorer/commit/d525afa14272ea3c7c90df2c20949aba2f145daa ), we are safe to use RP to read databases for all APIs except Tables.
For Tables API, since RP doesn't support any database level operations, I have to hardcode the read database response. The only property we need in the Tables database is the id which is the string that we display in the resource tree.
2020-10-14 18:10:14 +00:00
victor-meng
9933a4988a
Use SDK calls to read and update shared throughput for Tables API ( #278 )
...
RP does not supporting reading or updating database level throughput for Tables API so we have to switch back to using SDK calls for these operations.
2020-10-13 22:49:30 +00:00
victor-meng
d525afa142
Refactor code that uses the _rid and _self of a database or collection ( #267 )
2020-10-13 13:29:39 -07:00
victor-meng
a698e08638
Remove database offers cache and get offer directly from database ( #268 )
...
Currently we maintain a cache of all database offers which can be stale since we have moved to lazy loading the offers. Instead of reading the offer from the cache, we should just find the selected database and get the offer directly by calling `database.offer()`.
2020-10-12 21:00:47 +00:00
victor-meng
0382628249
Move update offers call to RP
2020-10-07 17:25:21 -05:00
victor-meng
86d3f0d35d
Fix database offers not loaded when add collection pane is opened
2020-10-06 22:22:54 -05:00
victor-meng
0f82ed3749
Add checks for serverless account ( #244 )
2020-10-02 14:44:12 -07:00
victor-meng
23c5d2d7e0
Lazy load collection offer ( #234 )
2020-09-28 12:54:28 -07:00
victor-meng
2e747a1a07
Fix create database for serverless accounts ( #228 )
2020-09-24 14:03:37 -07:00
victor-meng
28ceb18d73
Use SDK for reading database offer for Tables API ( #226 )
2020-09-23 13:32:47 -07:00
victor-meng
666a378b3b
Fix resource tree refresh issue ( #222 )
2020-09-23 13:18:05 -07:00
victor-meng
3f2c67af23
Fix some content becomes hidden after zooming to 200% ( #223 )
2020-09-22 11:59:44 -07:00
victor-meng
1ccffab911
[Accessibility] Add horizontal scroll bar if tooltip box goes outside of panel boundary ( #215 )
2020-09-18 17:01:12 -07:00
victor-meng and zfoster
dc56f7e154
Lazy load database offer in data explorer ( #208 )
...
Co-authored-by: zfoster <[email protected] >
2020-09-18 16:00:21 -07:00
victor-meng
6bc506b81f
Clean up unused utility functions for creating databases and collections ( #181 )
2020-09-03 13:05:22 -07:00
victor-meng
efff26dbe7
Use edge instead of chrome for emulator e2e test ( #178 )
2020-09-02 12:01:32 -07:00
victor-meng
fae59d8754
Move create collection to RP ( #173 )
2020-09-02 10:02:29 -07:00