mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-07-28 05:43:33 +02:00
Minor Confluence Fixes for Robustification (#2349)
* add connector config * update confluence connector
This commit is contained in:
@@ -23,7 +23,7 @@ class ConfluenceRateLimitError(Exception):
|
|||||||
|
|
||||||
def make_confluence_call_handle_rate_limit(confluence_call: F) -> F:
|
def make_confluence_call_handle_rate_limit(confluence_call: F) -> F:
|
||||||
def wrapped_call(*args: list[Any], **kwargs: Any) -> Any:
|
def wrapped_call(*args: list[Any], **kwargs: Any) -> Any:
|
||||||
max_retries = 10
|
max_retries = 5
|
||||||
starting_delay = 5
|
starting_delay = 5
|
||||||
backoff = 2
|
backoff = 2
|
||||||
max_delay = 600
|
max_delay = 600
|
||||||
|
@@ -514,6 +514,7 @@ export default function AddConnector({
|
|||||||
{isPaidEnterpriseFeaturesEnabled && (
|
{isPaidEnterpriseFeaturesEnabled && (
|
||||||
<>
|
<>
|
||||||
<IsPublicGroupSelector
|
<IsPublicGroupSelector
|
||||||
|
removeIndent
|
||||||
formikProps={formikProps}
|
formikProps={formikProps}
|
||||||
objectName="Connector"
|
objectName="Connector"
|
||||||
/>
|
/>
|
||||||
|
@@ -16,11 +16,13 @@ export const IsPublicGroupSelector = <T extends IsPublicGroupSelectorFormType>({
|
|||||||
formikProps,
|
formikProps,
|
||||||
objectName,
|
objectName,
|
||||||
publicToWhom = "Users",
|
publicToWhom = "Users",
|
||||||
|
removeIndent = false,
|
||||||
enforceGroupSelection = true,
|
enforceGroupSelection = true,
|
||||||
}: {
|
}: {
|
||||||
formikProps: FormikProps<T>;
|
formikProps: FormikProps<T>;
|
||||||
objectName: string;
|
objectName: string;
|
||||||
publicToWhom?: string;
|
publicToWhom?: string;
|
||||||
|
removeIndent?: boolean;
|
||||||
enforceGroupSelection?: boolean;
|
enforceGroupSelection?: boolean;
|
||||||
}) => {
|
}) => {
|
||||||
const { data: userGroups, isLoading: userGroupsIsLoading } = useUserGroups();
|
const { data: userGroups, isLoading: userGroupsIsLoading } = useUserGroups();
|
||||||
@@ -74,6 +76,7 @@ export const IsPublicGroupSelector = <T extends IsPublicGroupSelectorFormType>({
|
|||||||
<>
|
<>
|
||||||
<BooleanFormField
|
<BooleanFormField
|
||||||
name="is_public"
|
name="is_public"
|
||||||
|
removeIndent={removeIndent}
|
||||||
label={
|
label={
|
||||||
publicToWhom === "Curators"
|
publicToWhom === "Curators"
|
||||||
? `Make this ${objectName} Curator Accessible?`
|
? `Make this ${objectName} Curator Accessible?`
|
||||||
|
@@ -255,9 +255,10 @@ Selecting the "Index Recursively" checkbox will index the specified page and all
|
|||||||
{
|
{
|
||||||
type: "checkbox",
|
type: "checkbox",
|
||||||
query: "Should index pages recursively?",
|
query: "Should index pages recursively?",
|
||||||
label:
|
label: "Index Recursively",
|
||||||
"Index Recursively (if this is set and the Wiki Page URL leads to a page, we will index the page and all of its children instead of just the page)",
|
|
||||||
name: "index_recursively",
|
name: "index_recursively",
|
||||||
|
description:
|
||||||
|
"If this is set and the Wiki Page URL leads to a page, we will index the page and all of its children instead of just the page. This is set by default for Confluence connectors without a page ID specified.",
|
||||||
optional: false,
|
optional: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user