mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-05-02 14:33:52 +01:00
Add some TODO's
This commit is contained in:
parent
98c4d31717
commit
37940fb297
@ -112,7 +112,6 @@ const DocumentsTabComponent: React.FunctionComponent<{
|
|||||||
]);
|
]);
|
||||||
const [documentIds, setDocumentIds] = useState<DocumentId[]>([]);
|
const [documentIds, setDocumentIds] = useState<DocumentId[]>([]);
|
||||||
const [isExecuting, setIsExecuting] = useState<boolean>(false); // TODO isExecuting is a member of TabsBase. We may need to update this field.
|
const [isExecuting, setIsExecuting] = useState<boolean>(false); // TODO isExecuting is a member of TabsBase. We may need to update this field.
|
||||||
const [dataContentsGridScrollHeight, setDataContentsGridScrollHeight] = useState<string>(undefined);
|
|
||||||
|
|
||||||
// Query
|
// Query
|
||||||
const [documentsIterator, setDocumentsIterator] = useState<{
|
const [documentsIterator, setDocumentsIterator] = useState<{
|
||||||
@ -120,11 +119,11 @@ const DocumentsTabComponent: React.FunctionComponent<{
|
|||||||
applyFilterButtonPressed: boolean;
|
applyFilterButtonPressed: boolean;
|
||||||
}>(undefined);
|
}>(undefined);
|
||||||
const [queryAbortController, setQueryAbortController] = useState<AbortController>(undefined);
|
const [queryAbortController, setQueryAbortController] = useState<AbortController>(undefined);
|
||||||
const [resourceTokenPartitionKey, setResourceTokenPartitionKey] = useState<string>(undefined);
|
const [resourceTokenPartitionKey, setResourceTokenPartitionKey] = useState<string>(undefined); // TODO: Make this a constant is setter getting called
|
||||||
const [isQueryCopilotSampleContainer, setIsQueryCopilotSampleContainer] = useState<boolean>(false);
|
const [isQueryCopilotSampleContainer, setIsQueryCopilotSampleContainer] = useState<boolean>(false); // TODO: Make this a constant is setter getting called
|
||||||
const [cancelQueryTimeoutID, setCancelQueryTimeoutID] = useState<NodeJS.Timeout>(undefined);
|
const [cancelQueryTimeoutID, setCancelQueryTimeoutID] = useState<NodeJS.Timeout>(undefined);
|
||||||
|
|
||||||
const [isExecutionError, setIsExecutionError] = useState<boolean>(false);
|
const [isExecutionError, setIsExecutionError] = useState<boolean>(false); // TODO: Where is this used?
|
||||||
const [onLoadStartKey, setOnLoadStartKey] = useState<number>(props.onLoadStartKey);
|
const [onLoadStartKey, setOnLoadStartKey] = useState<number>(props.onLoadStartKey);
|
||||||
|
|
||||||
const [initialDocumentContent, setInitialDocumentContent] = useState<string>(undefined);
|
const [initialDocumentContent, setInitialDocumentContent] = useState<string>(undefined);
|
||||||
@ -271,6 +270,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
|
|||||||
visible: true,
|
visible: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// TODO: Where is this used?
|
||||||
const documentContentsContainerId = `documentContentsContainer${props.tabId}`;
|
const documentContentsContainerId = `documentContentsContainer${props.tabId}`;
|
||||||
const documentContentsGridId = `documentContentsGrid${props.tabId}`;
|
const documentContentsGridId = `documentContentsGrid${props.tabId}`;
|
||||||
|
|
||||||
@ -828,6 +828,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
|
|||||||
return documentsIterator.iterator.fetchNext().then((response) => response.resources);
|
return documentsIterator.iterator.fetchNext().then((response) => response.resources);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// TODO: use this when generating column headers
|
||||||
const showPartitionKey = (() => {
|
const showPartitionKey = (() => {
|
||||||
if (!props.collection) {
|
if (!props.collection) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user