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 6 additions and 7 deletions

View File

@@ -164,6 +164,7 @@ export class InputTypeaheadComponent extends React.Component<
<TextField
multiline={useTextarea}
rows={1}
id="input"
defaultValue={defaultValue}
ariaLabel="Input query"
placeholder={placeholder}

View File

@@ -14,6 +14,7 @@ exports[`inputTypeahead renders <input /> 1`] = `
<StyledTextFieldBase
ariaLabel="Input query"
className="input-type-head-text-field"
id="input"
multiline={false}
onChange={[Function]}
onFocus={[Function]}
@@ -40,6 +41,7 @@ exports[`inputTypeahead renders <textarea /> 1`] = `
<StyledTextFieldBase
ariaLabel="Input query"
className="input-type-head-text-field"
id="input"
multiline={true}
onChange={[Function]}
onFocus={[Function]}

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",
];