You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
elifspace:
# if no cql_query is provided, we will use the space to fetch the pagescql_page_query+=f" and space='{quote(space)}'"elifpage_id:
ifindex_recursively:
cql_page_query+=f" and ancestor='{page_id}'"else:
# if neither a space nor a cql_query is provided, we will use the page_id to fetch the pagecql_page_query+=f" and id='{page_id}'"
Potential fix
Considering this point, we should swap the elifs so that space is ignored if a specific page_id is provided.
This would also ensure that the current code state reflects what is present in the documentation which states:
Page ID (optional): Specific page ID to index - leave empty to index the entire space (e.g., 131368 for a specific page)
implying that in order to index the entire space, you should leave the page_id field empty (which conversely implies that if you do not leave it empty, it will not parse the entire space).
The text was updated successfully, but these errors were encountered:
Bug Summary
Current logic in
confluence/connector.py
makes it sopage_id
is not considered whenspace
is provided, effectively indexing the entire space.The code in question is here.
The logic in place
Potential fix
Considering this point, we should swap the
elifs
so thatspace
is ignored if a specificpage_id
is provided.This would also ensure that the current code state reflects what is present in the documentation which states:
implying that in order to index the entire space, you should leave the page_id field empty (which conversely implies that if you do not leave it empty, it will not parse the entire space).
The text was updated successfully, but these errors were encountered: