Compare commits

..

21 Commits

Author SHA1 Message Date
artrejo
423481e90a Merge branch 'master' of https://github.com/Azure/cosmos-explorer into users/artrejo/test 2022-01-26 13:37:24 -08:00
artrejo
8645ed3898 Fix build and move allowedParentOrigins back to ConfigContext 2022-01-24 12:33:59 -08:00
artrejo
b947ed6161 Use updateConfigContext when updating from external configs 2022-01-24 12:08:52 -08:00
artrejo
dc543b5ae3 Make allowedEndpoints a read-only array 2022-01-24 11:08:37 -08:00
artrejo
54cd7a32d8 Log errors 2022-01-21 18:20:22 -08:00
artrejo
16bb03c47c Add missing endpoints 2022-01-21 17:45:47 -08:00
artrejo
e9b168be6d Fix strict build 2022-01-21 17:05:37 -08:00
artrejo
4b01648168 fix e2e tests 2022-01-21 16:54:31 -08:00
artrejo
b67078a310 format 2022-01-21 08:22:32 -08:00
artrejo
3672da1e1d Add allowed endpoints to make unit tests pass 2022-01-21 08:21:47 -08:00
artrejo
899d7459c1 Fix Juno and Phoenix validations 2022-01-21 08:20:29 -08:00
artrejo
1b1371381e fix build .... 2022-01-20 18:32:16 -08:00
artrejo
3e7c5f4b14 Revert changes to package-lock 2022-01-20 18:21:28 -08:00
artrejo
0fc5f070cc build cont .... 2022-01-20 18:07:42 -08:00
artrejo
0ffebc14ca Format 2022-01-20 18:02:41 -08:00
artrejo
1203427537 Fix build cont... 2022-01-20 18:00:24 -08:00
artrejo
6c9176f4ba Firx build cont. 2022-01-20 17:59:56 -08:00
artrejo
3ef992c1af Fix build cont. 2022-01-20 17:53:46 -08:00
artrejo
4af14bc310 Fix build issues 2022-01-20 17:50:06 -08:00
artrejo
ed3fb9e09a Merge branch 'master' of https://github.com/Azure/cosmos-explorer into users/artrejo/MSRC69675 2022-01-20 16:44:48 -08:00
artrejo
167c55a24a Validate endpoints from feature flags 2022-01-20 16:33:25 -08:00
4 changed files with 4 additions and 13 deletions

View File

@@ -194,7 +194,7 @@ export class TreeNodeComponent extends React.Component<TreeNodeComponentProps, T
</div>
{node.children && (
<AnimateHeight duration={TreeNodeComponent.transitionDurationMS} height={this.state.isExpanded ? "auto" : 0}>
<div className="nodeChildren" data-test={node.label} role="tree">
<div className="nodeChildren" data-test={node.label}>
{TreeNodeComponent.getSortedChildren(node).map((childNode: TreeNode) => (
<TreeNodeComponent
key={`${childNode.label}-${generation + 1}-${childNode.timestamp}`}

View File

@@ -100,7 +100,6 @@ exports[`TreeNodeComponent does not render children by default 1`] = `
<div
className="nodeChildren"
data-test="label"
role="tree"
>
<TreeNodeComponent
generation={3}
@@ -251,7 +250,6 @@ exports[`TreeNodeComponent renders a simple node (sorted children, expanded) 1`]
<div
className="nodeChildren"
data-test="label"
role="tree"
>
<TreeNodeComponent
generation={13}
@@ -353,7 +351,6 @@ exports[`TreeNodeComponent renders loading icon 1`] = `
<div
className="nodeChildren"
data-test="label"
role="tree"
/>
</AnimateHeight>
</div>
@@ -466,7 +463,6 @@ exports[`TreeNodeComponent renders sorted children, expanded, leaves and parents
<div
className="nodeChildren"
data-test="label"
role="tree"
>
<TreeNodeComponent
generation={13}
@@ -596,7 +592,6 @@ exports[`TreeNodeComponent renders unsorted children by default 1`] = `
<div
className="nodeChildren"
data-test="label"
role="tree"
>
<TreeNodeComponent
generation={3}

View File

@@ -215,13 +215,13 @@ export default class QueryTabComponent extends React.Component<IQueryTabComponen
{
metric: "Request Charge",
value: this.state.requestChargeDisplayText,
toolTip: "Request Charge",
toolTip: "",
isQueryMetricsEnabled: true,
},
{
metric: "Showing Results",
value: this.state.showingDocumentsDisplayText,
toolTip: "Showing Results",
toolTip: "",
isQueryMetricsEnabled: true,
},
{

View File

@@ -31,7 +31,7 @@ function validateEndpointInternal(
if (!valid) {
throw new Error(
`${endpointToValidate} is not an allowed endpoint. Allowed endpoints are ${allowedEndpoints.toString()}`
`${endpointToValidate} is not an allowed endpoint. Allowed endpoints are ${allowedArmEndpoints.toString()}`
);
}
@@ -48,16 +48,12 @@ export const allowedAadEndpoints: ReadonlyArray<string> = ["https://login.micros
export const allowedBackendEndpoints: ReadonlyArray<string> = [
"https://main.documentdb.ext.azure.com",
"https://main.documentdb.ext.azure.cn",
"https://main.documentdb.ext.azure.us",
"https://localhost:12901",
"https://localhost:1234",
];
export const allowedMongoProxyEndpoints: ReadonlyArray<string> = [
"https://main.documentdb.ext.azure.com",
"https://main.documentdb.ext.azure.cn",
"https://main.documentdb.ext.azure.us",
"https://localhost:12901",
];