Skip to content

Update support for GetSchema - #601

Merged
luisremis merged 9 commits into
developfrom
support_new_schema_format
Aug 6, 2025
Merged

luisremis merged 9 commits into
developfrom
support_new_schema_format

Conversation

@luisremis luisremis changed the title automatic commit message Update support for GetSchema Aug 4, 2025

This comment was marked as outdated.

@luisremis
luisremis requested a review from Copilot August 5, 2025 15:30

This comment was marked as outdated.

@luisremis
luisremis requested a review from Copilot August 5, 2025 16:08

This comment was marked as outdated.

@luisremis
luisremis requested a review from Copilot August 5, 2025 16:35

This comment was marked as outdated.

@luisremis
luisremis requested a review from Copilot August 5, 2025 17:36

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 refactors the schema parsing logic to improve support for GetSchema operations, specifically handling different schema formats for connections and replacing magic numbers with named constants throughout the codebase.

  • Refactored schema index extraction into separate methods for entities and connections
  • Added support for connection schemas that can be either dictionaries or lists of variants
  • Replaced hardcoded values with named constants for better maintainability

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
aperturedb/ParallelLoader.py Refactored get_existing_indices method and added new methods for parsing entity/connection schemas with improved documentation
aperturedb/Connector.py Replaced magic numbers with named constants for protocol values, timeouts, and status codes

Comment thread aperturedb/ParallelLoader.py Resolved
Comment thread aperturedb/ParallelLoader.py Resolved
Comment thread aperturedb/ParallelLoader.py Resolved
@luisremis
luisremis marked this pull request as ready for review August 6, 2025 14:51

@gsaluja9 gsaluja9 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.

Thanks !

@luisremis
luisremis merged commit b469ac2 into develop Aug 6, 2025
@luisremis
luisremis deleted the support_new_schema_format branch August 6, 2025 21:12
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