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
5 changed files with 13 additions and 8 deletions

View File

@@ -29,6 +29,7 @@ describe("Table query select Panel", () => {
it("Should checked availableCheckbox by default", () => {
const wrapper = mount(<TableQuerySelectPanel {...props} />);
expect(wrapper.find("#availableCheckbox").first().props()).toEqual({
ariaPositionInSet: 0,
id: "availableCheckbox",
label: "Available Columns",
checked: true,

View File

@@ -128,8 +128,9 @@ export const TableQuerySelectPanel: FunctionComponent<TableQuerySelectPanelProps
label="Available Columns"
checked={isAvailableColumnChecked}
onChange={availableColumnsCheckboxClick}
ariaPositionInSet={0}
/>
{columnOptions.map((column) => {
{columnOptions.map((column, index) => {
return (
<Checkbox
label={column.columnName}
@@ -137,6 +138,7 @@ export const TableQuerySelectPanel: FunctionComponent<TableQuerySelectPanelProps
key={column.columnName}
checked={column.selected}
disabled={!column.editable}
ariaPositionInSet={index + 1}
/>
);
})}

View File

@@ -37,12 +37,14 @@ exports[`Table query select Panel should render Default properly 1`] = `
className="column-select-view"
>
<StyledCheckboxBase
ariaPositionInSet={0}
checked={true}
id="availableCheckbox"
label="Available Columns"
onChange={[Function]}
>
<CheckboxBase
ariaPositionInSet={0}
checked={true}
id="availableCheckbox"
label="Available Columns"
@@ -328,6 +330,7 @@ exports[`Table query select Panel should render Default properly 1`] = `
<input
aria-checked="true"
aria-label="Available Columns"
aria-posinset={0}
checked={true}
className="input-55"
data-ktp-execute-target={true}
@@ -646,6 +649,7 @@ exports[`Table query select Panel should render Default properly 1`] = `
</CheckboxBase>
</StyledCheckboxBase>
<StyledCheckboxBase
ariaPositionInSet={1}
checked={true}
disabled={false}
key=""
@@ -653,6 +657,7 @@ exports[`Table query select Panel should render Default properly 1`] = `
onChange={[Function]}
>
<CheckboxBase
ariaPositionInSet={1}
checked={true}
disabled={false}
label=""
@@ -939,6 +944,7 @@ exports[`Table query select Panel should render Default properly 1`] = `
aria-checked="true"
aria-disabled={false}
aria-label=""
aria-posinset={1}
checked={true}
className="input-55"
data-ktp-execute-target={true}

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