Skip to content

datetime index selection over-fetching on end_datetime filter#608

Open
Gomez324 wants to merge 7 commits intomainfrom
CAT-1800
Open

datetime index selection over-fetching on end_datetime filter#608
Gomez324 wants to merge 7 commits intomainfrom
CAT-1800

Conversation

@Gomez324
Copy link
Collaborator

Dixed two bugs: application logs were not visible when running via uvicorn due to uvicorn overriding the logging setup, resolved by adding force=True to logging.basicConfig. Additionally, fixed datetime-based index selection that was returning too many indexes when filtering by end_datetime, which could lead to unnecessary indexes being included in search queries.

PR Checklist:

  • Code is formatted and linted (run pre-commit run --all-files)
  • Tests pass (run make test)
  • Documentation has been updated to reflect changes, if applicable
  • Changes are added to the changelog

@Gomez324 Gomez324 requested a review from jonhealy1 February 20, 2026 14:35
Copy link
Collaborator

@jonhealy1 jonhealy1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. One minor request.

if gte and value_end < gte:
return False
if start_value_begin:
if lte and start_value_begin > lte < value_begin:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we change to something like this: if lte and (start_value_begin > lte and value_begin > lte): for better readability.

@jonhealy1 jonhealy1 self-requested a review February 24, 2026 11:30
Copy link
Collaborator

@jonhealy1 jonhealy1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Gomez324 Nice work here

@jonhealy1
Copy link
Collaborator

@Gomez324 Some conflicts, from the type hints update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants