Skip to content

[SYNPY-1896] Add SearchIndex to operations/utility_operations.py - #1445

Merged
BryanFauble merged 2 commits into
developfrom
SYNPY-1896
Aug 18, 2026
Merged

[SYNPY-1896] Add SearchIndex to operations/utility_operations.py#1445
BryanFauble merged 2 commits into
developfrom
SYNPY-1896

Conversation

@BryanFauble

Copy link
Copy Markdown
Member

Summary

  • SearchIndex was already wired into store_operations.py, delete_operations.py, and factory_operations.py, but missing from utility_operations.py.
  • Adds it alongside VirtualTable/MaterializedView in the TYPE_CHECKING import and Union type hints for find_entity_id, onweb, and print_entity (sync + async), plus matching docstrings.

Test plan

  • black/ruff clean on the changed file
  • Module imports successfully

Jira: https://sagebionetworks.jira.com/browse/SYNPY-1896

Registers SearchIndex alongside VirtualTable/MaterializedView in the
find_entity_id, onweb, and print_entity Union type hints and
TYPE_CHECKING import, completing its rollout across the operations/
factory layer.
@BryanFauble
BryanFauble requested a review from a team as a code owner August 14, 2026 17:38
Copilot AI lite review requested due to automatic review settings August 14, 2026 17:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates synapseclient.operations.utility_operations to recognize the SearchIndex model anywhere the module already accepts other table-like entities (e.g., VirtualTable / MaterializedView), aligning utility APIs with existing wiring elsewhere in operations/.

Changes:

  • Adds SearchIndex to TYPE_CHECKING imports from synapseclient.models.
  • Extends the Union[...] type hints for find_entity_id / onweb / print_entity (and async variants) to include SearchIndex.
  • Updates the corresponding docstrings to document SearchIndex as an accepted entity type.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@andrewelamb andrewelamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I had a few questions, but LGTM!

Comment thread synapseclient/operations/utility_operations.py
Comment thread synapseclient/operations/utility_operations.py
Comment thread synapseclient/operations/utility_operations.py
@BryanFauble
BryanFauble merged commit b40c3a9 into develop Aug 18, 2026
26 of 32 checks passed
@BryanFauble
BryanFauble deleted the SYNPY-1896 branch August 18, 2026 18:28
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.

3 participants